CmdID

CmdID / az / az policy / az policy enrollment

az policy enrollment update

Update a policy enrollment. Azure CLI reference

Update the policy enrollment with the given name and scope by applying the given property values.

2 examples 8 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 enrollment in a resource group

az policy enrollment update -n enrollTestVM --display-name "Updated display name" --resource-group myResourceGroupIdentify
-nThe name of the policy enrollment.
--display-nameThe display name of the policy enrollment.
--resource-groupName of resource group.

Update a policy enrollment at scope

az policy enrollment update -n enrollTestVM --description "This enrollment is very cool." --scope "/providers/Microsoft.Management/managementGroups/{managementGroupName}"Identify
-nThe name of the policy enrollment.
--descriptionThe description of the policy enrollment.
--scopeThe fully qualified Azure Resource manager identifier of the resource.

Options

8 in the Azure CLI reference
--assignment-scope-validation, -vThe option whether to validate the enrollment is at or under the assignment scope.
--descriptionThe description of the policy enrollment.
--display-nameThe display name of the policy enrollment.
--metadataThe policy enrollment metadata.
--name, -nThe name of the policy enrollment.
--policy-definition-reference-ids, --policy-assignment, -a, -r
--resource-selectorsThe resource selector list to filter policies by resource properties.
--scopeThe fully qualified Azure Resource manager identifier of the resource.