Switching from WindowsAzure.Storage to Azure.Storage.Blobs

David Downing 31 Reputation points
2021-04-09T16:52:14.863+00:00

WindowsAzure.Storage is being deprecated, so I'm switching to Azure.Storage.Blobs.

I can't seem to find a way of enumerating the storage containers using this library. Is it possible? If so, is there a sample I can reference online?

Thank you.

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,538 questions
0 comments No comments
{count} votes

Accepted answer
  1. David Downing 706 Reputation points
    2021-04-09T17:11:18.927+00:00

    Found the solution.

            BlobServiceClient client = new BlobServiceClient(connectionString);
            var containers = client.GetBlobContainers();
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.