azureautomation / runbooks

Sample Automation runbooks
MIT License
157 stars 129 forks source link

Runbook Parameters #50

Open Ramses26 opened 5 years ago

Ramses26 commented 5 years ago

Hi there, I'm new to Auzre Automation, therefore I'm a little confused with the Parameters, For the Mandatory field VMResourceGroup, I used [EmptyString] then added a resource group, and VM for the AlreadyonboardedVM and AlreadyonboardedVMResourceGroup. But I'm getting the error: Cannot bind argument to parameter 'Vmresourcegroup because it is an empty string. error Config New Update Deployment UpdateManagement

Thank you

mortenlerudjordet commented 5 years ago

Yes the logic is a bit confusing.

It seems you are using an older version than is available. I would go here: https://raw.githubusercontent.com/azureautomation/runbooks/master/Utility/ARM/Enable-MultipleSolution.ps1 and import this version instead of the old one. This has removed the confusing use of parameter names.

Just edit the Runbook you already have, then copy the raw data from github and paste it into your edited runbok. Save and publish.