gpt4 book ai didi

azure - 如何使用 ARM 模板在存储帐户内创建 blob 容器

转载 作者:行者123 更新时间:2023-12-02 23:16:25 25 4
gpt4 key购买 nike

我正在努力使用 ARM 模板创建带有容器的 Azure 存储帐户。我已经关注了azure quick-start templates供引用。

我使用以下代码行通过容器创建存储帐户。

"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')]"
]
}
]
}
]

部署后,我只能看到存储帐户,而看不到其中的容器。

那么,有人可以建议我如何使用 ARM 模板在存储帐户内创建容器

最佳答案

当您部署 ARM 模板时,应该会出现错误。 enter image description here

该错误是因为您的 ARM 模板缺少容器名称的一部分。您需要包含以下部分。 enter image description here

关于azure - 如何使用 ARM 模板在存储帐户内创建 blob 容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64220435/

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