I am working to create Azure Storage Account with Container using ARM templates. I have followed azure quick-start templates for reference.
I have used the following lines of code for creating Storage Account with Container.
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-06-01",
"name": "[parameters('storageAccountName')]",
"location": "[parameters('location')]",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "StorageV2",
"properties": {
"accessTier": "Hot"
},
"resources": [
{
"type": "blobServices/containers",
"apiVersion": "2019-06-01",
"name": "[parameters('containerName'))]",
"dependsOn": [
"[parameters('storageAccountName')]"
]
}
]
}
]
After deployment, I can see only the Storage Account but not the Container inside it.
So, can anyone suggest me how to create Container inside Storage Account using ARM templates