Jun 29 2019 03:26 AM
I have multiple virtual machines in multiple regions or different resource groups. so how to connect all the VMS into the OMS workgroup. it is possible to connect all VMS using a PowerShell script?
Jun 29 2019 04:13 AM
@Prashant SharmaA computer in any region, subscription, on-premises or other cloud provider can send data to a workspace. For an Azure VM, go into the workspace you want them to connect to and Virtual Machines under Workspace Data Sources. Select the VM and connect.
I did a series of videos on Log Analytics. I cover the information above as well as how to setup Azure and Non-Azure servers. https://www.youtube.com/playlist?list=PLnWpsLZNgHzVXXyN9a0jm9xNNDrikHf8I
Jun 29 2019 09:18 AM
Solution@Travis Roberts thank you for this Travis. but I can not connect the single-single VM to the workspace.
I need a script (PowerShell script). so i can fill the VM name and resource group into the excel sheet and run that Excel sheet through the PowerShell script.
Jun 29 2019 01:07 PM
@Prashant Sharma Below is a link to the command line setup. Possibly use this with Invoke-Command? Another Azure option would be to used a custom script extension to push the settings. DSC would also be an option. Best bet would be to push it out with SCCM or some other application deployment solution.
FWIW, OMS settings can be deployed as part of an ARM template.