1

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

HariHaran
  • 3,642
  • 2
  • 16
  • 33

1 Answers1

2

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.

4c74356b41
  • 69,186
  • 6
  • 100
  • 141
  • "azureblob_accessKey": { "value": "" }, I have it like this in the parameter.json file , do i need to obtain this value from the powershell in a $value variable and -param1 you mentioned is the name of the value in parameter file ? – HariHaran Jan 24 '18 at 11:35
  • no, just pass them like so in powershell, you dont have to use parameters file at all if you dont like to – 4c74356b41 Jan 24 '18 at 11:49