Answered by:
How to create and delete container in azure blob storage?

Question
-
User1464856682 posted
I am new to azure blob storage . Can some one tell me how to create and delete container in azure blob storage to upload files or suggest me some good links to refer?
Thanks in advance
Friday, March 6, 2015 12:46 AM
Answers
-
User197322208 posted
Generic links
https://code.msdn.microsoft.com/windowsazure/
For the problem
https://code.msdn.microsoft.com/windowsazure/Windows-Azure-Multi-Tier-eadceb36
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, March 6, 2015 1:02 AM -
User1918509225 posted
Hi MythicalCoders,
Thanks for your post here.
I suggest that you could try the tutorial in the links below:
http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/
Best Regards,
Kevin Shen.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 10, 2015 4:02 AM
All replies
-
User1071505668 posted
Hi Mythical Coders,
To create container in blob storage you can use Create() or CreateIfNotExists() method of the blobclient class.
// Create a blob container. CloudBlobContainer container = BlobClient.GetContainerReference(containerName); container.Create(); Console.WriteLine("Container Created Successfully..");
To delete container in blob storage you can use delete() method of the blobclient class. But be sure to check the container is available before deleting the container otherwise it will though the exception saying that resource not found.
CloudBlobContainer container = BlobClient.GetContainerReference(containerName); try { //Fetches attributes of container container.FetchAttributes(); Console.WriteLine("Container exists.."); container.Delete(); } catch (StorageClientException e) { }
Check this articles for reference..
Check Container Exists In Azure Blob Storage In C#.Net
Azure Blob Storage Create Container - C#.Net,VB.Net
Thanks.
Friday, March 6, 2015 1:00 AM -
User197322208 posted
Generic links
https://code.msdn.microsoft.com/windowsazure/
For the problem
https://code.msdn.microsoft.com/windowsazure/Windows-Azure-Multi-Tier-eadceb36
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, March 6, 2015 1:02 AM -
User1918509225 posted
Hi MythicalCoders,
Thanks for your post here.
I suggest that you could try the tutorial in the links below:
http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/
Best Regards,
Kevin Shen.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 10, 2015 4:02 AM