FailoverDatabases
Failovers a database.
post/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover
Path parameters
resourceGroupNamestring required
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverNamestring required
The name of the server.
databaseNamestring required
The name of the database to failover.
subscriptionIdstring required
The subscription ID that identifies an Azure subscription.
Query parameters
replicaType'Primary' | 'ReadableSecondary'
The type of replica to be failed over.
api-versionstring required
The API version to use for the request.
Response
Successfully completed database failover.