azureautomation / runbooks

Sample Automation runbooks
MIT License
150 stars 128 forks source link

New-OnPremiseHybridWorker assumes that the monitoring workspace is in the same subscription #73

Open AspenForester opened 3 years ago

AspenForester commented 3 years ago

We happen to have our Log Analytics Workspaces in a dedicated subscription.

An additional parameter needs to be added to support this. Then it's a matter of toggling the AZContext in a couple of places in the script to make this work.