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

4
  • what have you tried? what doesnt work Commented Jan 24, 2018 at 11:21
  • i am getting values from user through powershell , and i want it to be applied on the "value" : " " of the parameters.json file Commented Jan 24, 2018 at 11:27
  • well that is not an explanation of what have you tried Commented Jan 24, 2018 at 11:30
  • I do not know how to try , so i asked . Please help if you could. Commented Jan 24, 2018 at 11:35

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

"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 ?
no, just pass them like so in powershell, you dont have to use parameters file at all if you dont like to

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.