通过ARM模板创建Azure Blob/文件共享容器
问题描述:
我正在寻找一种在Azure blob&中创建容器的方法.通过ARM模板进行文件共享存储.
I am looking a way to create a container in Azure blob & file-share storage through ARM template.
目前,我具有用于配置存储帐户的ARM模板,但是我也想在ARM中创建容器.
At present I have ARM template to provision the storage accounts, but I want to create containers also in ARM.
{
"name": "[parameters('storageAccountName')]",
"type": "Microsoft.Storage/storageAccounts",
"location": "[resourceGroup().location]",
"apiVersion": "[variables('storageApiVersion')]",
"sku": {
"name": "[variables('storageAccountType')]"
},
"dependsOn": [ ],
"tags": {
"Environment": "[parameters('Environment')]",
"Project": "[parameters('ProjectName')]",
"Contact": "[parameters('ContactName')]"
},
"kind": "Storage",
"properties": {
"encryption": {
"keySource": "Microsoft.Storage",
"services": {
"blob": {
"enabled": true
}
}
}
}
}
答
No, you cant do that, consult this feedback item.
您现在可以创建容器. https://stackoverflow.com/a/51608344/6067741
you can now create containers. https://stackoverflow.com/a/51608344/6067741