这是创建存储帐户的 ARM 模板
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccountType": {
"type": "string",
"defaultValue": "Standard_LRS",
"allowedValues": [
"Standard_LRS",
"Standard_ZRS",
"Standard_GRS",
"Standard_RAGRS",
"Premium_LRS"
],
"metadata": {
"description": "Describes the storage type."
}
}
},
"resources": [
................
{
"apiVersion": "2015-06-15",
"name": "[variables('storageName')]",
"type": "Microsoft.Storage/storageAccounts",
"location": "[resourceGroup().location]",
"dependsOn": [ ],
"tags": {
"displayName": "storage"
},
"properties": {
"accountType": "[parameters('storageAccountType')]"
}
}
]
}
工作得很好,但是当我尝试使用帐户类型 Standard_RAGRS 进行地理复制时,它会返回一个错误:
'名为.....的存储帐户已存在于订阅下。'
我究竟做错了什么?
谢谢