question

NguyenJonathan-1540 avatar image
0 Votes"
NguyenJonathan-1540 asked mgessenay edited

Is there a way to view what version of SCOM is installed on an IaaS server through the Azure portal on a particular resource?

Is there any way to pull which version of SCOM is on a virtual machine through the Azure portal? Or do I have to RDP into the machine to get that information?

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

mgessenay avatar image
2 Votes"
mgessenay answered mgessenay edited

@NguyenJonathan-1540 You can query the SCOM version with Azure Script Extension or with Azure Automation. To get the SCOM Server Version, just execute this PowerShell-Code:

 $SCOMVersion = Get-ScomManagementServer | Select-Object Version

You can then assign the version as a tag to the resource.

 # Read existing tags
 $tags = (Get-AzureRmResource -ResourceGroupName MyResourceGroup -ResourceType Microsoft.Compute/virtualMachines -Name MyVMName).Tags
    
 # Define new tag
 $tags += @{Name="SCOMVersion";Value="$($SCOMVersion.Value)"}
    
 # Set the new tag
 Set-AzureRmResource -ResourceGroupName MyResourceGroup -Name MyVMName -ResourceType "Microsoft.Compute/VirtualMachines" -Tag $tags



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.