How to connect Multiple VMs with OMS using a single PowerShell script.


How we can connect the multiple VMs with OMS Using the PowerShell script. and to remove them from OMS Environment? 

4 Replies

You could use Get-AzureRMVM | Set-AzureRmVMCustomScriptExtension to deploy a Powershell script that links them to OMS.

But we don't have any PowerShell script, we want that script, please tell us where to get that script.

That's already documented nicely here:

You can use the CMDLine commands in a Powershell script