Share via


ServerDisasterRecoveryConfigurationOperationsExtensions.FailoverAsync Method

Definition

Begins failover for the Azure SQL server disaster recovery configuration with the given name.

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> FailoverAsync (this Microsoft.Azure.Management.Sql.LegacySdk.IServerDisasterRecoveryConfigurationOperations operations, string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName);
static member FailoverAsync : Microsoft.Azure.Management.Sql.LegacySdk.IServerDisasterRecoveryConfigurationOperations * string * string * string -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function FailoverAsync (operations As IServerDisasterRecoveryConfigurationOperations, resourceGroupName As String, serverName As String, serverDisasterRecoveryConfigurationName As String) As Task(Of AzureOperationResponse)

Parameters

operations
IServerDisasterRecoveryConfigurationOperations

Reference to the Microsoft.Azure.Management.Sql.LegacySdk.IServerDisasterRecoveryConfigurationOperations.

resourceGroupName
String

Required. The name of the Resource Group to which the Azure SQL Server belongs.

serverName
String

Required. The name of the Azure SQL Server.

serverDisasterRecoveryConfigurationName
String

Required. The name of the Azure SQL server disaster recovery configuration to start failover.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to