微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

我试图使用 ARM 模板部署存储帐户但是,已抛出错误有人可以帮我解决这个问题吗

如何解决我试图使用 ARM 模板部署存储帐户但是,已抛出错误有人可以帮我解决这个问题吗

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#","contentVersion": "1.0.0.0","parameters": {
        "location": {
            "type": "string","defaultValue": "north Europe"
            
        },"storageaccountname": {
            "defaultValue": "storageforarm1910","type": "string"
        },"storageaccounttype": {
            "type": "string","defaultValue": "Standard_GRS"
        }
           
    },"functions": [],"variables": {},"resources": [
        {
            "type": "Microsoft.Storage/storageAccounts","apiVersion": "2021-01-01","location": "[parameters('location')]","name": "[parameters('storageaccountname')]","kind": "FileStorage","sku": "[parameters('storageaccounttype')]","properties": {}
        }
    ],"outputs": {}
}

Error: 
{"code":"InvalidTemplate","message":"Deployment template parse Failed: 'Error converting value \"Standard_GRS\" to type 'Microsoft.WindowsAzure.ResourceStack.Common.Core.DeFinitions.Resources.ResourceSku'. Path ''.'."}

解决方法

如果我们要创建 Azure FileStorage 帐户,sku 必须是 Premium_LRSPremium_ZRS。有关详细信息,请参阅 official documententer image description here

另外请注意,如果我们使用Premium_ZRS,我们只能在某些区域创建存储帐户。关于地区,请参考hereenter image description here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。