CmdID / az / az policy / az policy assignment
az policy assignment list
Retrieve all applicable policy assignments. Azure CLI reference
Retrieve the list of all policy assignments applicable to the given subscription or management group.
3 examples 1 option Its page in the Azure CLI reference
Examples
List policy assignments that apply to a resource group
az policy assignment list --resource-group TestResourceGroup --filter atScope() --expand LatestDefinitionVersion, EffectiveDefinitionVersionIdentify--resource-groupName of resource group.List policy assignments that apply to a management group
az policy assignment list --management-group TestManagementGroup --filter atScope()IdentifyList policy assignments that apply to a subscription
az policy assignment list --filter atScope()IdentifyOptions
--management-group, --expand, --filter