Hello Everyone,-> I have a Tenant with multiple Subscriptions in the Azure cloud.
-> When I run Get-AzPolicyState cmd in PowerShell it gives output as
PolicyAssignmentName : xxxxxxxxxxxxxxxx
PolicyAssignmentOwner : xxxxx
PolicyAssignmentScope : xxxxxxxxxxx
PolicyDefinitionName : xxxxxxxxxxxxxxxxxx
PolicyDefinitionAction : xxxxxxxxxxxxxx
PolicyDefinitionCategory : xxxxxxxxxxx
PolicySetDefinitionId : xxxxxxxx
PolicySetDefinitionName : xxxxxx
PolicySetDefinitionCategory : xxxxxxxx
ManagementGroupIds : xxxxxxxxxx
PolicyDefinitionReferenceId : xxxxxxxxx
ComplianceState : xxxxx
AdditionalProperties : xxxxx
-> The problem is in the 1st line PolicyAssignmentName, it gives the result as Policy Assignment Id like a combination of alphanumeric instead Policy Assignment name which is assigned earlier in the combination of alphabets like "Allowed VM SKUs" .
-> I have tried with other Subscriptions and Azure CLI as well and gives the same result.
-> I need the Policy Assignment name as an output along with other details like compliance state, scope, etc
-> Any lead to this question would be a great help to me.