Using Console
Using CLI
az login
az account set --subscription <subscription_id>
az sql failover-group update --name <failover_group_name> --resource-group <resource_group_name> --partner-server <partner_server_name> --failover-policy Automatic
Replace the following parameters:
<failover_group_name>
: The name of the failover group that you want to update.
<resource_group_name>
: The name of the resource group that contains the failover group.
<partner_server_name>
: The name of the partner server to which you want to fail over.
Automatic
: This parameter specifies that the failover policy should be set to automatic.
az sql failover-group show --name <failover_group_name> --resource-group <resource_group_name>
This command will return the details of the failover group, including the failover policy.
Using Python