az maintenance configuration

Manage Azure Maintenance configurations.

Commands

az maintenance configuration create

Creates a Maintenance Configuration.

az maintenance configuration delete

Deletes a Maintenance Configuration.

az maintenance configuration list

Get Configuration records within a subscription.

az maintenance configuration show

Get the details of a Maintenance Configuration.

az maintenance configuration update

Creates a Maintenance Configuration.

az maintenance configuration create

Creates a Maintenance Configuration.

az maintenance configuration create --location
                                    --name
                                    --resource-group
                                    [--maintenanceScope]
                                    [--tags]

Examples

Create a Maintenance Configuration with the All scope.

az maintenance configuration create --name workervms -g MyResourceGroup -l westus

Required Parameters

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name -n

Name of resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--maintenanceScope

Maintenance Scope e.g. Host, Guest or All.

default value: All
--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

az maintenance configuration delete

Deletes a Maintenance Configuration.

az maintenance configuration delete --name
                                    --resource-group

Examples

Delete a Maintenance Configuration.

az maintenance configuration delete --name workervms -g MyResourceGroup

Required Parameters

--name -n

Name of resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az maintenance configuration list

Get Configuration records within a subscription.

az maintenance configuration list

Examples

Get Configuration records within a subscription.

az maintenance configuration list --subscription 2b4ce620-bb0f-4964-8428-dea4aefe00000

az maintenance configuration show

Get the details of a Maintenance Configuration.

az maintenance configuration show --name
                                  --resource-group

Examples

Get the Maintenance Configuration.

az maintenance configuration show --name workervms -g MyResourceGroup

Required Parameters

--name -n

Name of resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az maintenance configuration update

Creates a Maintenance Configuration.

az maintenance configuration update --location
                                    --name
                                    --resource-group
                                    [--maintenanceScope]
                                    [--tags]

Examples

Create a Maintenance Configuration with the All scope.

az maintenance configuration update --name workervms -g MyResourceGroup -l westus --maintenanceScope All

Required Parameters

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name -n

Name of resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--maintenanceScope

Maintenance Scope e.g. Host, Guest or All.

default value: All
--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.