locked
Azure Storage C# SDK - underlying protocol for file transfer? RRS feed

  • Question

  • I'm using Microsoft.WindowsAzure.Storage CloubBlockBlob method PutBlockAsync to upload files.  Can anyone tell me (or better yet point me to docs) that describe how the underlying file transfer is done?  We need to fill out a security questionnaire.

    Monday, July 1, 2019 9:01 PM

Answers

  • Thanks for following up @DeannaD123, There two ways to activate HTTPS: in portal, it's under the Configuration tab in the storage account: 

    Using the .Net Storage there's an example here :

    /* Include these "using" directives...
    using Microsoft.WindowsAzure.Storage;
    using Microsoft.WindowsAzure.Storage.Blob;
    */
    
    string storageConnectionString = "DefaultEndpointsProtocol=https;"
        + "AccountName=[Storage Account Name]"
        + ";AccountKey=[Storage Account Key]"
        + ";EndpointSuffix=core.windows.net";
    
    CloudStorageAccount account = CloudStorageAccount.Parse(storageConnectionString);
    CloudBlobClient serviceClient = account.CreateCloudBlobClient();
    
    // Create container. Name must be lower case.
    Console.WriteLine("Creating container...");
    var container = serviceClient.GetContainerReference("mycontainer");
    container.CreateIfNotExistsAsync().Wait();
    
    // write a blob to the container
    CloudBlockBlob blob = container.GetBlockBlobReference("helloworld.txt");
    blob.UploadTextAsync("Hello, World!").Wait();

    Let me know if this helps.

    Wednesday, July 10, 2019 3:50 PM
  • Thanks for the follow up, just got a response from the internal team, so currently this method supports Standard rest with both HTTP or HTTPS protocols, depending on what you set as a standard on your application. Let me know if this helps.
    • Proposed as answer by Adam Smith (Azure) Tuesday, July 2, 2019 7:26 PM
    • Marked as answer by DeannaD123 Wednesday, July 10, 2019 11:23 AM
    • Unmarked as answer by DeannaD123 Wednesday, July 10, 2019 11:23 AM
    • Marked as answer by DeannaD123 Wednesday, July 10, 2019 11:24 AM
    Tuesday, July 2, 2019 7:26 PM

All replies

  • Thanks for posting @DeannaD123, the current documentation for that specific method can be found here
    . if the information in this doc doesn't help, what specific information do you need to know, is it encryption or somthing else ? I can reach out to internal team to get more info.

     
    Monday, July 1, 2019 9:12 PM
  • Hi,

    The real question is the underlying transfer protocol.  A colleague believes it is TCP (says he saw it somewhere but can't find it again) but might also be sftp or even https.   

    thanks!

    Tuesday, July 2, 2019 11:25 AM
  • Thanks for the follow up, just got a response from the internal team, so currently this method supports Standard rest with both HTTP or HTTPS protocols, depending on what you set as a standard on your application. Let me know if this helps.
    • Proposed as answer by Adam Smith (Azure) Tuesday, July 2, 2019 7:26 PM
    • Marked as answer by DeannaD123 Wednesday, July 10, 2019 11:23 AM
    • Unmarked as answer by DeannaD123 Wednesday, July 10, 2019 11:23 AM
    • Marked as answer by DeannaD123 Wednesday, July 10, 2019 11:24 AM
    Tuesday, July 2, 2019 7:26 PM
  • @DeannaD123 Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Wednesday, July 10, 2019 6:48 AM
  • @Adam,

    Where is the http vs https setting in the SDK configuration?

    Wednesday, July 10, 2019 1:05 PM
  • Thanks for following up @DeannaD123, There two ways to activate HTTPS: in portal, it's under the Configuration tab in the storage account: 

    Using the .Net Storage there's an example here :

    /* Include these "using" directives...
    using Microsoft.WindowsAzure.Storage;
    using Microsoft.WindowsAzure.Storage.Blob;
    */
    
    string storageConnectionString = "DefaultEndpointsProtocol=https;"
        + "AccountName=[Storage Account Name]"
        + ";AccountKey=[Storage Account Key]"
        + ";EndpointSuffix=core.windows.net";
    
    CloudStorageAccount account = CloudStorageAccount.Parse(storageConnectionString);
    CloudBlobClient serviceClient = account.CreateCloudBlobClient();
    
    // Create container. Name must be lower case.
    Console.WriteLine("Creating container...");
    var container = serviceClient.GetContainerReference("mycontainer");
    container.CreateIfNotExistsAsync().Wait();
    
    // write a blob to the container
    CloudBlockBlob blob = container.GetBlockBlobReference("helloworld.txt");
    blob.UploadTextAsync("Hello, World!").Wait();

    Let me know if this helps.

    Wednesday, July 10, 2019 3:50 PM
  • Is there any update on the issue?

    If the suggested answer helped for your issue, do click on "Mark as Answer" and “Vote as Helpful” on the post that helps you, this can be beneficial to other community members.

    Wednesday, July 24, 2019 11:16 AM