0

I want to upload and download data to Azure Blob containers of different storage accounts. I don't want to store the connection strings. I am passing the connection string to the BlobServiceClient.


                BlobServiceClient blobServiceClient = new BlobServiceClient(connectionString, options);

                string containerName = "nameXYZ";

                BlobContainerClient containerClient = blobServiceClient.GetBlobContainerClient(containerName);

I see a way to do this using a POST call, as shown in this link.

Is there any other way to dynamically get the connection string?

I have the container name and Blob URL.

(I am using Azure.Storage.Blobs V12)

Shabaz
  • 3
  • 2

1 Answers1

0

OAuth is a better option for what you're trying to accomplish. Here's the documentation related to storage specifically: https://learn.microsoft.com/en-us/azure/storage/common/storage-auth-aad-app?tabs=dotnet