az maintenance assignment
Note
This reference is part of the maintenance extension for the Azure CLI (version 2.67.0 or higher). The extension will automatically install the first time you run an az maintenance assignment command. Learn more about extensions.
Manage configuration assignment with maintenance.
Name | Description | Type | Status |
---|---|---|---|
az maintenance assignment create |
Apply maintenance updates to resource. |
Extension | GA |
az maintenance assignment create-or-update-parent |
Apply maintenance updates to resource with parent. |
Extension | GA |
az maintenance assignment create-or-update-resource-group |
Create configuration for resource. |
Extension | Experimental |
az maintenance assignment create-or-update-subscription |
Create configuration for resource. |
Extension | Experimental |
az maintenance assignment delete |
Delete configuration for resource. |
Extension | GA |
az maintenance assignment delete-parent |
Delete configuration for resource. |
Extension | GA |
az maintenance assignment delete-resource-group |
Delete configuration for resource. |
Extension | Experimental |
az maintenance assignment delete-subscription |
Delete configuration for resource. |
Extension | Experimental |
az maintenance assignment list |
List configurationAssignments for resource. |
Extension | GA |
az maintenance assignment list-parent |
List configurationAssignments for resource. |
Extension | GA |
az maintenance assignment list-subscription |
List configuration assignment within a subscription. |
Extension | Experimental |
az maintenance assignment show |
Get configuration assignment for resource.. |
Extension | GA |
az maintenance assignment show-parent |
Get configuration assignment for resource.. |
Extension | GA |
az maintenance assignment show-resource-group |
Get configuration assignment for resource.. |
Extension | Experimental |
az maintenance assignment show-subscription |
Get configuration assignment for resource.. |
Extension | Experimental |
az maintenance assignment update |
Update configuration for resource. |
Extension | GA |
az maintenance assignment update-parent |
Update configuration for resource. |
Extension | GA |
az maintenance assignment update-resource-group |
Update configuration for resource. |
Extension | Experimental |
az maintenance assignment update-subscription |
Update configuration for resource. |
Extension | Experimental |
Apply maintenance updates to resource.
az maintenance assignment create --configuration-assignment-name
--provider-name
--resource-group
--resource-name
--resource-type
[--config-id]
[--filter-locations]
[--filter-os-types]
[--filter-resource-groups]
[--filter-resource-types]
[--filter-tags]
[--filter-tags-operator {All, Any}]
[--location]
[--resource-id]
ConfigurationAssignments_CreateOrUpdate
az maintenance assignment create --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1" --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "test1" --resource-type "virtualMachineScaleSets"
Configuration assignment name.
Resource provider name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Resource identifier.
Resource type.
The maintenance configuration Id.
List of locations to scope the query to. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed operating systems. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resource groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resources. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Dictionary of tags with its list of values. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Filter VMs by Any or All specified tags.
Location of the resource.
The unique resourceId.
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.
Apply maintenance updates to resource with parent.
az maintenance assignment create-or-update-parent [--config-id]
[--configuration-assignment-name]
[--filter-locations]
[--filter-os-types]
[--filter-resource-groups]
[--filter-resource-types]
[--filter-tags]
[--filter-tags-operator {All, Any}]
[--ids]
[--location]
[--provider-name]
[--resource-group]
[--resource-id]
[--resource-name]
[--resource-parent-name]
[--resource-parent-type]
[--resource-type]
[--subscription]
ConfigurationAssignments_CreateOrUpdateParent
az maintenance assignment create-or-update-parent --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1" --name "workervmPolicy" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "test1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"
The maintenance configuration Id.
Configuration assignment name.
List of locations to scope the query to. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed operating systems. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resource groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resources. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Dictionary of tags with its list of values. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Filter VMs by Any or All specified tags.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Location of the resource.
Resource provider name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The unique resourceId.
Resource identifier.
Resource parent identifier.
Resource parent type.
Resource type.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create configuration for resource.
az maintenance assignment create-or-update-resource-group [--config-id]
[--configuration-assignment-name]
[--filter-locations]
[--filter-os-types]
[--filter-resource-groups]
[--filter-resource-types]
[--filter-tags]
[--filter-tags-operator {All, Any}]
[--ids]
[--location]
[--resource-group]
[--resource-id]
[--subscription]
ConfigurationAssignments_CreateOrUpdateResourceGroup
az maintenance assignment create-or-update-resource-group --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}" --filter-tags-operator All --resource-group examplerg1
The maintenance configuration Id.
Configuration assignment name.
List of locations to scope the query to. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed operating systems. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resource groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resources. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Dictionary of tags with its list of values. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Filter VMs by Any or All specified tags.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Location of the resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The unique resourceId.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create configuration for resource.
az maintenance assignment create-or-update-subscription [--config-id]
[--configuration-assignment-name]
[--filter-locations]
[--filter-os-types]
[--filter-resource-groups]
[--filter-resource-types]
[--filter-tags]
[--filter-tags-operator {All, Any}]
[--ids]
[--location]
[--resource-id]
[--subscription]
ConfigurationAssignments_CreateOrUpdateSubscription
az maintenance assignment create-or-update-subscription --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}" --filter-tags-operator All
The maintenance configuration Id.
Configuration assignment name.
List of locations to scope the query to. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed operating systems. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resource groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resources. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Dictionary of tags with its list of values. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Filter VMs by Any or All specified tags.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Location of the resource.
The unique resourceId.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Delete configuration for resource.
az maintenance assignment delete [--configuration-assignment-name]
[--ids]
[--provider-name]
[--resource-group]
[--resource-name]
[--resource-type]
[--subscription]
[--yes]
ConfigurationAssignments_Delete
az maintenance assignment delete --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
Unique configuration assignment name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Resource provider name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Resource identifier.
Resource type.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
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.
Delete configuration for resource.
az maintenance assignment delete-parent [--configuration-assignment-name]
[--ids]
[--provider-name]
[--resource-group]
[--resource-name]
[--resource-parent-name]
[--resource-parent-type]
[--resource-type]
[--subscription]
[--yes]
ConfigurationAssignments_DeleteParent
az maintenance assignment delete-parent --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"
Unique configuration assignment name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Resource provider name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Resource identifier.
Resource parent identifier.
Resource parent type.
Resource type.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
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.
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete configuration for resource.
az maintenance assignment delete-resource-group [--configuration-assignment-name]
[--ids]
[--resource-group]
[--subscription]
[--yes]
ConfigurationAssignments_DeleteSubscription
az maintenance assignment delete-resource-group --resource-group "examplerg" --name "example1"
Unique configuration assignment name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
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.
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete configuration for resource.
az maintenance assignment delete-subscription [--configuration-assignment-name]
[--ids]
[--subscription]
[--yes]
ConfigurationAssignments_DeleteSubscription
az maintenance assignment delete-subscription --name "example1"
Unique configuration assignment name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
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.
List configurationAssignments for resource.
az maintenance assignment list --provider-name
--resource-group
--resource-name
--resource-type
ConfigurationAssignments_List
az maintenance assignment list --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
Resource provider name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Resource identifier.
Resource type.
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.
List configurationAssignments for resource.
az maintenance assignment list-parent [--ids]
[--provider-name]
[--resource-group]
[--resource-name]
[--resource-parent-name]
[--resource-parent-type]
[--resource-type]
[--subscription]
ConfigurationAssignments_ListParent
az maintenance assignment list-parent --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtestvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Resource provider name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Resource identifier.
Resource parent identifier.
Resource parent type.
Resource type.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List configuration assignment within a subscription.
az maintenance assignment list-subscription
ConfigurationAssignments_List
az maintenance assignment list-subscription
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.
Get configuration assignment for resource..
az maintenance assignment show [--configuration-assignment-name]
[--ids]
[--provider-name]
[--resource-group]
[--resource-name]
[--resource-type]
[--subscription]
ConfigurationAssignments_Get
az maintenance assignment show --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
Configuration assignment name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Resource provider name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Resource identifier.
Resource type.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Get configuration assignment for resource..
az maintenance assignment show-parent [--configuration-assignment-name]
[--ids]
[--provider-name]
[--resource-group]
[--resource-name]
[--resource-parent-name]
[--resource-parent-type]
[--resource-type]
[--subscription]
ConfigurationAssignments_GetParent
az maintenance assignment show-parent --name "workervmPolicy" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent- name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"
Configuration assignment name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Resource provider name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Resource identifier.
Resource parent identifier.
Resource parent type.
Resource type.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get configuration assignment for resource..
az maintenance assignment show-resource-group [--configuration-assignment-name]
[--ids]
[--resource-group]
[--subscription]
ConfigurationAssignments_GetResourceGroup
az maintenance assignment show-subscription --resource-group "examplerg" --name "example1"
Configuration assignment name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get configuration assignment for resource..
az maintenance assignment show-subscription [--configuration-assignment-name]
[--ids]
[--subscription]
ConfigurationAssignments_GetSubscription
az maintenance assignment show-subscription --name "example1"
Configuration assignment name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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 configuration for resource.
az maintenance assignment update [--add]
[--config-id]
[--configuration-assignment-name]
[--filter-locations]
[--filter-os-types]
[--filter-resource-groups]
[--filter-resource-types]
[--filter-tags]
[--filter-tags-operator {All, Any}]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--location]
[--provider-name]
[--remove]
[--resource-group]
[--resource-id]
[--resource-name]
[--resource-type]
[--set]
[--subscription]
ConfigurationAssignments_Update
az maintenance assignment update --maintenance-configuration-id "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1" --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
The maintenance configuration Id.
Configuration assignment name.
List of locations to scope the query to. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed operating systems. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resource groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resources. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Dictionary of tags with its list of values. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Filter VMs by Any or All specified tags.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Location of the resource.
Resource provider name.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The unique resourceId.
Resource identifier.
Resource type.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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 configuration for resource.
az maintenance assignment update-parent [--config-id]
[--configuration-assignment-name]
[--filter-locations]
[--filter-os-types]
[--filter-resource-groups]
[--filter-resource-types]
[--filter-tags]
[--filter-tags-operator {All, Any}]
[--ids]
[--location]
[--provider-name]
[--resource-group]
[--resource-id]
[--resource-name]
[--resource-parent-name]
[--resource-parent-type]
[--resource-type]
[--subscription]
ConfigurationAssignments_UpdateParent
az maintenance assignment update-parent --maintenance-configuration-id "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1" --name "workervmPolicy" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"
The maintenance configuration Id.
Configuration assignment name.
List of locations to scope the query to. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed operating systems. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resource groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resources. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Dictionary of tags with its list of values. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Filter VMs by Any or All specified tags.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Location of the resource.
Resource provider name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The unique resourceId.
Resource identifier.
Resource parent identifier.
Resource parent type.
Resource type.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update configuration for resource.
az maintenance assignment update-resource-group [--config-id]
[--configuration-assignment-name]
[--filter-locations]
[--filter-os-types]
[--filter-resource-groups]
[--filter-resource-types]
[--filter-tags]
[--filter-tags-operator {All, Any}]
[--ids]
[--location]
[--resource-group]
[--resource-id]
[--subscription]
ConfigurationAssignments_UpdateResourceGroup
az maintenance assignment create-or-update-resource-group --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}" --filter-tags-operator All --resource-group examplerg1
The maintenance configuration Id.
Configuration assignment name.
List of locations to scope the query to. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed operating systems. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resource groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resources. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Dictionary of tags with its list of values. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Filter VMs by Any or All specified tags.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Location of the resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The unique resourceId.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update configuration for resource.
az maintenance assignment update-subscription [--config-id]
[--configuration-assignment-name]
[--filter-locations]
[--filter-os-types]
[--filter-resource-groups]
[--filter-resource-types]
[--filter-tags]
[--filter-tags-operator {All, Any}]
[--ids]
[--location]
[--resource-id]
[--subscription]
ConfigurationAssignments_UpdateSubscription
az maintenance assignment update-subscription --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}" --filter-tags-operator All
The maintenance configuration Id.
Configuration assignment name.
List of locations to scope the query to. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed operating systems. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resource groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of allowed resources. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Dictionary of tags with its list of values. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Filter VMs by Any or All specified tags.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Location of the resource.
The unique resourceId.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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 feedback
Azure CLI is an open source project. Select a link to provide feedback: