Answered by:
Adding Blob Container to Azure Storage Account through Resource Group Template

Question
-
Hi, there.
I'm using Azure Resource Group Template to add Blob container to Azure Storage Account. The template I used for this:
https://github.com/Azure/azure-quickstart-templates/tree/master/101-create-storage-account-standard
I succeeded in creating storage account. However, I couldn't add a blob container into it. Here's my code snippet:
https://gist.github.com/justinyoo/1bf1483c8b2bb7e9be5a
As I couldn't find any relevant resource to achieve my goal, I relied on the "trial-and-error" approach. It would be great to give me an advice how to figure this out.
Cheers,
Justin
Friday, July 10, 2015 9:36 PM
Answers
-
I don't think it is possible as of today to add a container in a storage account using Azure Resource Manager API. It currently surfaces management plane (i.e. create, update, read properties, delete operations on a storage account) and not data plane (i.e. create blob containers etc.). You would need to use Azure Storage REST API to create a container.
Hope this helps.
- Marked as answer by justinchronicleMVP Tuesday, July 14, 2015 5:06 AM
Sunday, July 12, 2015 3:22 AM -
Hi Justin,
We are currently researching on this and would keep you updated with any findings.
Appreciate your patience.
Meanwhile you could refer the following links and check if they help:
https://msdn.microsoft.com/en-us/library/azure/dn790564.aspx
https://msdn.microsoft.com/en-us/library/azure/mt163564.aspx- Marked as answer by justinchronicleMVP Tuesday, July 14, 2015 5:06 AM
Saturday, July 11, 2015 9:43 AM
All replies
-
Hi Justin,
We are currently researching on this and would keep you updated with any findings.
Appreciate your patience.
Meanwhile you could refer the following links and check if they help:
https://msdn.microsoft.com/en-us/library/azure/dn790564.aspx
https://msdn.microsoft.com/en-us/library/azure/mt163564.aspx- Marked as answer by justinchronicleMVP Tuesday, July 14, 2015 5:06 AM
Saturday, July 11, 2015 9:43 AM -
I don't think it is possible as of today to add a container in a storage account using Azure Resource Manager API. It currently surfaces management plane (i.e. create, update, read properties, delete operations on a storage account) and not data plane (i.e. create blob containers etc.). You would need to use Azure Storage REST API to create a container.
Hope this helps.
- Marked as answer by justinchronicleMVP Tuesday, July 14, 2015 5:06 AM
Sunday, July 12, 2015 3:22 AM