Я пытаюсь развернуть SQL SERVER и DATABASE на azure из Visual Studio с шаблоном группы ресурсов azure. Но я всегда получаю эту ошибку: Ошибка развертывания шаблона с использованием сценария PowerShell
Другие ответы на стеке потока были без посторонней помощи. Это код в azuredeploy. json file
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"copydbAdminLogin": {
"type": "string",
"minLength": 1
},
"copydbAdminLoginPassword": {
"type": "securestring"
},
"databasecopyName": {
"type": "string",
"minLength": 1
},
"databasecopyCollation": {
"type": "string",
"minLength": 1,
"defaultValue": "SQL_Latin1_General_CP1_CI_AS"
},
"databasecopyEdition": {
"type": "string",
"defaultValue": "Basic",
"allowedValues": [
"Basic",
"Standard",
"Premium"
]
},
"databasecopyRequestedServiceObjectiveName": {
"type": "string",
"defaultValue": "Basic",
"allowedValues": [
"Basic",
"S0",
"S1",
"S2",
"P1",
"P2",
"P3"
],
"metadata": {
"description": "Describes the performance level for Edition"
}
}},
"variables": {
"copydbName": "[concat('copydb', uniqueString(resourceGroup().id))]"},
"resources": [
{
"name": "[variables('copydbName')]",
"type": "Microsoft.Sql/servers",
"location": "[resourceGroup().location]",
"apiVersion": "2014-04-01-preview",
"dependsOn": [ ],
"tags": {
"displayName": "copydb"
},
"properties": {
"administratorLogin": "[parameters('copydbAdminLogin')]",
"administratorLoginPassword": "[parameters('copydbAdminLoginPassword')]"
},
"resources": [
{
"name": "AllowAllWindowsAzureIps",
"type": "firewallrules",
"location": "[resourceGroup().location]",
"apiVersion": "2014-04-01-preview",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', variables('copydbName'))]"
],
"properties": {
"startIpAddress": "0.0.0.0",
"endIpAddress": "0.0.0.0"
}
},
{
"name": "[parameters('databasecopyName')]",
"type": "databases",
"location": "[resourceGroup().location]",
"apiVersion": "2014-04-01-preview",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', variables('copydbName'))]"
],
"tags": {
"displayName": "databasecopy"
},
"properties": {
"collation": "[parameters('databasecopyCollation')]",
"edition": "[parameters('databasecopyEdition')]",
"maxSizeBytes": "1073741824",
"requestedServiceObjectiveName": "[parameters('databasecopyRequestedServiceObjectiveName')]"
}
}
]
}],
"outputs": {}
}
Пожалуйста, помогите