【发布时间】:2015-11-24 20:04:59
【问题描述】:
我正在尝试使用以下命令从 PowerShell 内将参数内联传递给 ARM 模板:
azure group deployment create -f my_arm_template.json -g myresourcegroup -p '{\"slot\":\"blue\"}' --verbose
并收到错误:
Error converting value "blue" to type 'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Data.Definitions.DeploymentParameterDefinition'. Path 'properties.parameters.slot'
我正在使用此页面中给出的示例: https://azure.microsoft.com/en-us/documentation/articles/resource-group-template-deploy/
我已经尝试过不转义引号,就像示例和其他各种方式一样,但是在尝试验证我的模板时,其他所有尝试都会中断。
更新 1:除了 Powershell 之外,我还从 CMD 尝试过,结果相同。
【问题讨论】:
-
如果你要投反对票,至少要解释一下。
标签: json node.js powershell azure azure-cli