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

Nguyen, Jonathan 1 Reputation point
2019-11-05T19:47:04.083+00:00

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
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,033 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Matthias Gessenay 11 Reputation points
    2019-11-05T19:57:29.94+00:00

    @Nguyen, Jonathan 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  
    
    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.