question

PeterSvensson-6850 avatar image
0 Votes"
PeterSvensson-6850 asked PeterSvensson-6850 commented

Service Level Tracking id

I'm trying to get all the ID:s for my Service Level Tracking Objects in Powershell/Console.

Anyone knows if this is possible? I cant find any views, or custom views that exposes this. Neither can I get the SLA Class/Objects by Powershell.

msc-operations-manager
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

LeonLaude avatar image
0 Votes"
LeonLaude answered PeterSvensson-6850 commented

HI @PeterSvensson-6850,

You can get the Service Tracking Object IDs by running the following PowerShell command:

 (Get-ScomManagementGroup).ServiceLevelAgreements.GetType().GetMethod("GetServiceLevelObjectives", [Type[]]@()).MakeGenericMethod([Microsoft.EnterpriseManagement.Configuration.ManagementPackSLO]).Invoke( (Get-ScomManagementGroup).ServiceLevelAgreements, @() ) | select @{Name="SLA Name";Expression={$_.ConfigurationGroupId.GetElement().DisplayName}},@{Name="SLO Name";Expression={$_.DisplayName}},@{Name="SLO ID";Expression={$_.Id}} | Format-List


(If the reply was helpful please don't forget to upvote or accept as answer, thank you)


Best regards,
Leon

· 2
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.

Thanks for this!

0 Votes 0 ·

You're welcome.

0 Votes 0 ·