Ich versuche, eine DocumentDb von der Azure-Cli (Version 0.10.2) bereitzustellen, und so exportierte ich die Vorlage direkt aus azure Portal.ARM-Vorlage 'Typ' Eigenschaft erforderlich
Dies führte zu einem Fehler von:
InvalidRequestContent : The request content was invalid and could not be deserialized: 'Could not find member 'defaultValue' on object of type 'DeploymentParameterDefinition'. Path 'properties.parameters.arm_document_db.defaultValue'
diejenigen zu "Wert" Ergebnisse im Wandel:
InvalidDeploymentParameterType : The type of deployment parameter 'arm_document_db' should not be specified. Please see https://aka.ms/arm-deploy/#parameter-file for details.
Diese Seite Überprüfung zeigt, dass Typ erforderlich ist, aber alles in Kleinbuchstaben ist. Dies ergab denselben Fehler.
Entfernen "type" gibt mir dann diesen Fehler:
InvalidRequestContent : The request content was invalid and could not be deserialized: 'Required property 'type' not found in JSON. Path 'properties.template.parameters.arm_document_db'
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"arm_document_db": {
"defaultValue": null,
"type": "SecureString"
},
"arm_document_db01": {
"defaultValue": "arm-document-db01",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.DocumentDB/databaseAccounts",
"kind": "DocumentDB",
"name": "[parameters('arm_document_db01')]",
"apiVersion": "2015-04-08",
"location": "Japan West",
"tags": {},
"properties": {
"databaseAccountOfferType": "Standard",
"name": "[parameters('arm_document_db')]"
},
"dependsOn": []
}
]
}
Der aka.ms Link zeigt, dass 'Typ' erforderlich ist, aber der Fehler sagt, dass es nicht ist. Vielen Dank im Voraus!