AzureSqlDatabaseAdapter.FailoverDatabase Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Failovers a database
public void FailoverDatabase (string resourceGroupName, string serverName, string databaseName, string replicaType);
member this.FailoverDatabase : string * string * string * string -> unit
Public Sub FailoverDatabase (resourceGroupName As String, serverName As String, databaseName As String, replicaType As String)
Parameters
- resourceGroupName
- String
The resource group the server is in
- serverName
- String
The name of the Azure Sql Database Server
- databaseName
- String
The name of the Azure Sql Database to failover
- replicaType
- String
Whether to failover primary replica or readable secondary replica