gpt4 book ai didi

azure - 通过ARM模板在存储帐户中部署多个容器

转载 作者:行者123 更新时间:2023-12-03 00:59:29 25 4
gpt4 key购买 nike

是否可以通过 ARM 模板在存储帐户中部署多个 (2) 容器?

"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "",
"apiVersion": "",
"location": "",
"kind": "",
"sku": {
"name": ""
},
"resources": [
{
"name": "[concat('default/', parameters('containerName'))]",
"type": "blobServices/containers"
}
]
}
]

最佳答案

您可能希望将这种简单的方法改为更易于管理的方法:

"variables": [
"blobs": [
"myfirstblob",
"myotherblob"
]
],
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "",
"apiVersion": "",
"location": "",
"kind": "",
"sku": {
"name": ""
},
"resources": [
{
"name": "[concat('default/', variables('blobs')[copyIndex()])]",
"type": "blobServices/containers",
"apiVersion": "",
"copy": {
"name": "blobIterator",
"count": "[length(variables('blobs'))]"
}
}
]
}
]

关于azure - 通过ARM模板在存储帐户中部署多个容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63045958/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com