We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53d456d + 4d4e1d2 commit eba2919Copy full SHA for eba2919
Infrastructure/AzureStack.Infra.psm1
@@ -763,8 +763,9 @@ function Get-AzsInfrastructureRoleHealths {
763
[string] $Location
764
765
)
766
-
767
- $resourceType = "Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/472aaaa6-3f63-43fa-a489-4fd9094e235f/resourceHealths"
+ $RP=Get-AzsResourceProviderHealths -Location $location|where {$_.DisplayName -eq "Capacity"}
+ $ID=$RP.RegistrationID
768
+ $resourceType = "Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/$ID/resourceHealths"
769
770
$rolehealth = Get-AzsInfrastructureResource -Location $Location -resourceType $resourceType
771
$rolehealth.Properties
0 commit comments