通过ARM模板创建Azure Blob/文件共享容器 [英] Create Azure blob/fileshare container through ARM template

查看:94
本文介绍了通过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

这篇关于通过ARM模板创建Azure Blob/文件共享容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆