Quick Download: https://github.com/thekevinholman/AzureVMMP
This is a SCOM MP that will discover if your VM is running in Azure, and if so, pull back some interesting and useful properties for grouping, if needed. You can create SCOM groups based on Azure location, resource group, tags, subscription, etc.
You can read more about the Azure VM metadata here: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service
The MP runs a script that will execute a Invoke-WebRequest against the Windows Azure Guest Agent Service Metadata. These properties are as below:
Credits: This MP is a much simplified idea based on the work done here by Matthew Long: https://github.com/shadeon/SCOM-CloudInstanceMetadata
Thanks Kevin!
This is just the base we need as we have requirements to turn monitoring off for “servers in Azure” which are managed by an outsourced team
I had got around this by creating custom classes and groups to mimic the base classes and based off an IP Address, which is fine for now, but will obviously only survive as long as the IP range doesn’t change 🙂
This sets us up nicely now for varying routing of incidents based on the discovery information.
Andrew
Thanks, I imported it and it seems to work, but wham I try to select the class to create a group, it’s not listed :O
Am I doing something wrong ? The class is in place:
PS C:\Users\——-> Get-SCOMClass -DisplayName “Azure Virtual Machine”
DisplayName Name ManagementPackName Id
———– —- —————— —
Azure Virtual Machine Azure.VM.Class Azure.VM be82f4a7-d75f-b6b0-efbf-181e6b5258a5
but it seems not visible for the new group creation…
thanks for any help
You need to seal the MP – to use the classes in groups that you are trying to create in another MP.