json - Azure CLI inline parameters not working -
i'm trying pass in parameters inline arm template within powershell using following command:
azure group deployment create -f my_arm_template.json -g myresourcegroup -p '{\"slot\":\"blue\"}' --verbose
and receive error:
error converting value "blue" type 'microsoft.windowsazure.resourcestack.frontdoor.data.definitions.deploymentparameterdefinition'. path 'properties.parameters.slot'
i'm using example given page: https://azure.microsoft.com/en-us/documentation/articles/resource-group-template-deploy/
i have tried without escaping quotes example , various other ways every other attempt breaks when trying validate template.
update 1: have tried cmd in addition powershell same results.
the problem wasn't way escaping json value giving. instead of:
{"slot":"blue"}
it should have been:
{"slot":{"value":"blue"}}
Comments
Post a Comment