Forum Discussion
Prashant Sharma
May 31, 2018Brass Contributor
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
Sort By
- Prashant SharmaBrass ContributorBut we don't have any PowerShell script, we want that script, please tell us where to get that script.
- JosLiebenIron Contributor
That's already documented nicely here: https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-agent-windows
You can use the CMDLine commands in a Powershell script- Prashant SharmaBrass ContributorYeah, thank you.
- JosLiebenIron Contributor
You could use Get-AzureRMVM | Set-AzureRmVMCustomScriptExtension to deploy a Powershell script that links them to OMS.