通过ARM模板在ADL Gen2中创建文件系统 [英] Creating a File systems in ADL Gen2 via ARM template

查看:68
本文介绍了通过ARM模板在ADL Gen2中创建文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过ARM模板做到这一点?

Is there a way to do that via ARM template?

为了清楚起见,文件系统我指的是"容器"。相当于bolb存储。

Just to be clear, by File systems I'm referring to the "container" equivalent in the bolb storage.

推荐答案

 您好LironLevy,您应该能够在ADL Gen2 ARM模板中集成存储参数,有一个SamaCogan的优秀教程:包括特定于存储的示例(您可能必须将配置添加到现有的ADL模板): 
 Hi LironLevy, You should be able to integrate the storage parameters within the ADL Gen2 ARM template, there's a good tutorial in SamaCogan: including and example specific to storage(you may have to add the config to the existing ADL template): 
{
    "type": "Microsoft.Storage/storageAccounts",
    "apiVersion": "2018-02-01",
    "name": "[parameters('StorageAccountName')]",
    "location": "[resourceGroup().location]",
    "tags": {
        "displayName": "[parameters('StorageAccountName')]"
    },
    "sku": {
        "name": "Standard_LRS"
    },
    "kind": "StorageV2",
    "properties": {},
    "resources": [
        {
            "type": "blobServices/containers",
            "apiVersion": "2018-03-01-preview",
            "name": "[concat('default/', parameters('Container1Name'))]",
            "dependsOn": [
                "[parameters('StorageAccountName')]"
            ],
            "properties": {
                "publicAccess": "Container"
            }
        },
        {
            "type": "blobServices/containers",
            "apiVersion": "2018-03-01-preview",
            "name": "[concat('default/', parameters('Container2Name'))]",
            "dependsOn": [
                "[parameters('StorageAccountName')]"
            ],
            "properties": {
                "publicAccess": "None"
            }
        }
    ]
}


示例来源可以找到
here


这篇关于通过ARM模板在ADL Gen2中创建文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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