CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

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()Identify

List policy assignments that apply to a subscription

az policy assignment list --filter atScope()Identify

Options

1 in the Azure CLI reference
--management-group, --expand, --filter