我正在嘗試驗證一個手臂模板 - 任何手臂模板 - 但我總是遇到同樣的錯誤:The request content was invalid and could not be deserialized: 'Error converting value "{...}" to type 'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Templates.Schema.Template'. Path 'properties.template', line 1, position 1202.'.我在 azure 門戶上創建了 ARM 模板并將其插入:#!/usr/bin/env python3 # https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-authoring-templates t=''' { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1", "apiProfile": "", "parameters": { "testType": { "type": "string", "defaultValue": "Standard_LRS", "allowedValues": [ "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS" ] } }, "variables": { "testName": "[concat('test', uniqueString(resourceGroup().id))]" }, "functions": [], "resources": [ { "name": "[variables('testName')]", "type": "Microsoft.Storage/storageAccounts", "location": "[resourceGroup().location]", "apiVersion": "2015-06-15", "dependsOn": [], "tags": { "displayName": "test" }, "properties": { "accountType": "[parameters('testType')]" } } ], "outputs": {}}
嘗試驗證任何 ARM 模板但得到:'錯誤將值 <...MyTemplate...> 轉換為類型
慕工程0101907
2022-06-02 11:26:15