Azure BlobClient VS CloudBlobClient
Sep 23
I've been learning Azure recently and I see that there are 2 classes for working with blobs: CloudBlobClient and BlobClient.
CloudBlobClient is fromMicrosoft.Azure.Storage.Blob; namespace, while BlobClient is from Azure.Storage.Blobsnamespace.
What is the difference between them? When would you use one over the other?
1 answer
Accepted answer · original discussion
Sep 23
The package Azure.Storage.Blobs is latest version for azure blob storage, and Microsoft.Azure.Storage.Blob is the older version.
So we suggest that you should always use the BlobClient which is from the latest package. But if you have some old project which is using the old package, then in that case, you can use CloudBlobClient.
Porting guide: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/AzureStorageNetMigrationV12.md
0 question comments
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.