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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -