az policy
Manage resources defined and used by the Azure Policy service.
Azure Policy is an Azure service that offers APIs to manage Azure resources in a rule-based declarative way. The policy command group provides create, update, show and list commands for managing policy definitions, policy set definitions (also called policy initiatives), policy assignments, and policy exemptions.
Commands
Name | Description | Type | Status |
---|---|---|---|
az policy assignment |
Manage policy assignments. |
Core | GA |
az policy assignment create |
Create a policy assignment. |
Core | GA |
az policy assignment delete |
Delete a policy assignment. |
Core | GA |
az policy assignment identity |
Managed identity of the policy assignment. |
Core | GA |
az policy assignment identity assign |
Assign a managed identity. |
Core | GA |
az policy assignment identity remove |
Remove the managed identity. |
Core | GA |
az policy assignment identity show |
Retrieve the managed identity. |
Core | GA |
az policy assignment list |
Retrieve all applicable policy assignments. |
Core | GA |
az policy assignment non-compliance-message |
Non-compliance message used by the policy assignment. |
Core | GA |
az policy assignment non-compliance-message create |
Create a non-compliance message. |
Core | GA |
az policy assignment non-compliance-message delete |
Delete a non-compliance message. |
Core | GA |
az policy assignment non-compliance-message list |
Retrieve non-compliance messages. |
Core | GA |
az policy assignment non-compliance-message show |
Retrieve a non-compliance message. |
Core | GA |
az policy assignment non-compliance-message update |
Update a non-compliance message. |
Core | GA |
az policy assignment show |
Retrieve a policy assignment. |
Core | GA |
az policy assignment update |
Update a policy assignment. |
Core | GA |
az policy attestation |
Manage resource policy attestations. |
Core | GA |
az policy attestation create |
Create a policy attestation. |
Core | GA |
az policy attestation delete |
Delete an existing policy attestation. |
Core | GA |
az policy attestation list |
List all attestations for a resource. |
Core | GA |
az policy attestation show |
Get a policy attestation. |
Core | GA |
az policy attestation update |
Update an existing policy attestation. |
Core | GA |
az policy definition |
Manage policy definitions. |
Core | GA |
az policy definition create |
Create a policy definition. |
Core | GA |
az policy definition delete |
Delete a policy definition. |
Core | GA |
az policy definition list |
Retrieve policy definitions. |
Core | GA |
az policy definition show |
Retrieves a policy definition. |
Core | GA |
az policy definition update |
Update a policy definition. |
Core | GA |
az policy event |
Manage policy events. |
Core | GA |
az policy event list |
List policy events. |
Core | GA |
az policy exemption |
Manage policy exemptions. |
Core | GA |
az policy exemption create |
Create a policy exemption. |
Core | GA |
az policy exemption delete |
Delete a policy exemption. |
Core | GA |
az policy exemption list |
Retrieve all applicable policy exemptions. |
Core | GA |
az policy exemption show |
Retrieve a policy exemption. |
Core | GA |
az policy exemption update |
Update a policy exemption. |
Core | GA |
az policy metadata |
Get policy metadata resources. |
Core | GA |
az policy metadata list |
List policy metadata resources. |
Core | GA |
az policy metadata show |
Get a single policy metadata resource. |
Core | GA |
az policy remediation |
Manage resource policy remediations. |
Core | GA |
az policy remediation cancel |
Cancel a resource policy remediation. |
Core | GA |
az policy remediation create |
Create a resource policy remediation. |
Core | GA |
az policy remediation delete |
Delete a resource policy remediation. |
Core | GA |
az policy remediation deployment |
Manage resource policy remediation deployments. |
Core | GA |
az policy remediation deployment list |
Lists deployments for a resource policy remediation. |
Core | GA |
az policy remediation list |
List resource policy remediations. |
Core | GA |
az policy remediation show |
Show a resource policy remediation. |
Core | GA |
az policy set-definition |
Manage policy set definitions. |
Core | GA |
az policy set-definition create |
Create a policy set definition. |
Core | GA |
az policy set-definition delete |
Delete a policy set definition. |
Core | GA |
az policy set-definition list |
Retrieve policy set definitions. |
Core | GA |
az policy set-definition show |
Retrieve a policy set definition. |
Core | GA |
az policy set-definition update |
Update a policy set definition. |
Core | GA |
az policy state |
Manage policy compliance states. |
Core | GA |
az policy state list |
List policy compliance states. |
Core | GA |
az policy state summarize |
Summarize policy compliance states. |
Core | GA |
az policy state trigger-scan |
Trigger a policy compliance evaluation for a scope. |
Core | GA |