Share via


az mysql flexible-server maintenance

Manage maintenance on a flexible server.

Commands

Name Description Type Status
az mysql flexible-server maintenance list

List all of the maintenances of a flexible server.

Core GA
az mysql flexible-server maintenance reschedule

Reschedule the ongoing planned maintenance of a flexible server.

Core GA
az mysql flexible-server maintenance show

Get the specific maintenance of a flexible server by maintenance name.

Core GA

az mysql flexible-server maintenance list

List all of the maintenances of a flexible server.

az mysql flexible-server maintenance list --resource-group
                                          --server-name

Examples

List all of the maintenances of mysql flexible server 'testserver' under resource group 'testgroup'.

az mysql flexible-server maintenance list --resource-group testgroup --server-name testserver

Required Parameters

--resource-group -g

Resource Group Name of the server.

--server-name -s

The name of the server.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az mysql flexible-server maintenance reschedule

Reschedule the ongoing planned maintenance of a flexible server.

az mysql flexible-server maintenance reschedule --maintenance-name
                                                --start-time
                                                [--ids]
                                                [--resource-group]
                                                [--server-name]
                                                [--subscription]

Examples

reschedule a existing maintenance '_T9Q-TS8' of the server 'testserver' under resource gruop 'testgroup' to a new start time 'UTC 20240601 09:00:00'

az mysql flexible-server maintenance reschedule --resource-group testgroup --server-name testserver --maintenance-name _T9Q-TS8 --start-time 2024-06-01T09:00:00Z

Required Parameters

--maintenance-name -m

The name of the maintenance.

--start-time

The new start time of the rescheduled maintenance.

Default value: 2024-11-22T11:12:23+00:00

Optional Parameters

--ids

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-group -g

Resource Group Name of the server.

--server-name -s

The name of the server.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az mysql flexible-server maintenance show

Get the specific maintenance of a flexible server by maintenance name.

az mysql flexible-server maintenance show --maintenance-name
                                          [--ids]
                                          [--resource-group]
                                          [--server-name]
                                          [--subscription]

Examples

Get a maintenance of mysql flexible server 'testserver' under resource group 'testgroup', with maintenance name '_T9Q-TS8'

az mysql flexible-server maintenance show --resource-group testgroup --server-name testserver --maintenance-name _T9Q-TS8

Required Parameters

--maintenance-name -m

The name of the maintenance.

Optional Parameters

--ids

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-group -g

Resource Group Name of the server.

--server-name -s

The name of the server.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.