CmdID / az / az policy / az policy assignment / az policy assignment identity
az policy assignment identity show
Retrieve the managed identity. Azure CLI reference
Retrieve and show the details of the system or user assigned managed identity of the policy assignment matching the given name and scope.
1 example 1 option Its page in the Azure CLI reference
Examples
Show a policy assignment's managed identity
az policy assignment identity show --name MyPolicyAssignment --scope '/providers/Microsoft.Management/managementGroups/{managementGroupName}'IdentifyOptions
--scope, --name, -n