Share via


az sql server-arc availability-group

Note

This reference is part of the arcdata extension for the Azure CLI (version 2.3.1 or higher). The extension will automatically install the first time you run an az sql server-arc availability-group command. Learn more about extensions.

This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage Availability Groups.

Commands

Name Description Type Status
az sql server-arc availability-group failover

Request manual failover of an Availability Group.

Extension Preview

az sql server-arc availability-group failover

Preview

Command group 'sql server-arc availability-group' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Request manual failover of an Availability Group.

az sql server-arc availability-group failover --name
                                              --resource-group
                                              --server-name

Examples

Ex 1 - Request manual failover of an Availability Group

az sql server-arc availability-group failover --name myAvailabilityGroupName --resource-group myResourceGroup --server-name myServerName

Required Parameters

--name -n

Name of the Availability Group.

--resource-group -g

Name of the resource group where the Arc-enabled SQL Server instance is located.

--server-name

Name of the failover target Arc-enabled SQL 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.