简体   繁体   中英

pass values into ARM template parameters using powershell

i have a powershell script which deploys the below things

  • ServiceBusNamespace
  • ServiceBusQueueName
  • storageAccount etc..

Now i aslo have a templatefile and templateparameter file which expects this values to be entered manually. i want to automate this,by automatically appending the entered values for the deployment components above to the parameters.json file.

Thanks

you can use the parameter name to pass in the value, like so:

new-azurermresourcegroupdeployment -param1 $value -templateparameter $path

param1 will win over the value in the parameters file. You need latest Azure Powershell for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM