az blueprint artifact policy
Примітка
This reference is part of the blueprint extension for the Azure CLI (version 2.50.0 or higher). The extension will automatically install the first time you run an az blueprint artifact policy command. Learn more about extensions.
Commands to manage blueprint policy assignment artifact.
Name | Description | Type | Status |
---|---|---|---|
az blueprint artifact policy create |
Create blueprint policy artifact. |
Extension | GA |
az blueprint artifact policy update |
Update blueprint policy artifact. |
Extension | GA |
Create blueprint policy artifact.
az blueprint artifact policy create --artifact-name
--blueprint-name
--policy-definition-id
[--depends-on]
[--description]
[--display-name]
[--management-group]
[--parameters]
[--resource-group-art]
[--subscription]
Create a policy artifact
az blueprint artifact policy create \
--blueprint-name MyBlueprint --artifact-name MyPolicy --policy-definition-id \
"/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000" \
--parameters path/to/file --display-name "Policy to do sth"
Name of the blueprint artifact.
Name of the blueprint definition.
The full policy definition id.
Artifacts which need to be deployed before the specified artifact.
Description of the blueprint artifact.
DisplayName of this artifact.
Use management group for the scope of the blueprint.
Parameters for policy assignment artifact. It can be a JSON string or JSON file path.
Name of the resource group artifact to which the policy will be assigned.
Use subscription for the scope of the blueprint. If --management-group is not specified, --subscription value or the default subscription will be used as the scope.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Update blueprint policy artifact.
az blueprint artifact policy update --artifact-name
--blueprint-name
[--depends-on]
[--description]
[--display-name]
[--management-group]
[--parameters]
[--resource-group-art]
[--subscription]
Update a policy artifact
az blueprint artifact policy update \
--blueprint-name MyBlueprint --artifact-name MyPolicy --display-name "My Policy"
Name of the blueprint artifact.
Name of the blueprint definition.
Artifacts which need to be deployed before the specified artifact. Use '--depends-on' with no values to remove dependencies.
Description of the blueprint artifact.
DisplayName of this artifact.
Use management group for the scope of the blueprint.
Parameters for policy assignment artifact. It can be a JSON string or JSON file path.
Name of the resource group artifact to which the policy will be assigned.
Use subscription for the scope of the blueprint. If --management-group is not specified, --subscription value or the default subscription will be used as the scope.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Відгук про Azure CLI
Azure CLI – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: