CmdID

CmdID / az / az policy / az policy set-definition

az policy set-definition update

Update a policy set definition. Azure CLI reference

Update the policy set definition in the given subscription or management group with the given name by applying the given properties.

2 examples 4 options 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

Update a policy set definition

az policy set-definition update --definitions '[ { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/storagePolicy' } ]' --name MyPolicySetDefinitionIdentify
--definitionsAn array of policy definition references.
--nameThe name of the policy set definition.

Update the groups and definitions within a policy set definition

az policy set-definition update -n computeRequirements --definitions "[ { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/storagePolicy', 'groupNames': [ 'CostSaving', 'Organizational' ] }, { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/tagPolicy', 'groupNames': [ 'Organizational' ] } ]" --definition-groups "[{ 'name': 'CostSaving' }, { 'name': 'Organizational' } ]"Identify
-nThe name of the policy set definition.
--definitionsAn array of policy definition references.
--definition-groupsThe metadata describing groups of policy definition references within the policy set definition.

Options

4 in the Azure CLI reference
--definition-groupsThe metadata describing groups of policy definition references within the policy set definition.
--definitionsAn array of policy definition references.
--management-group, --display-name, --description, --metadata, --version, --params, -p
--name, -nThe name of the policy set definition.