Share via


ServerDisasterRecoveryConfigurationOperationsExtensions.Failover Method

Definition

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

public static Microsoft.Azure.AzureOperationResponse Failover (this Microsoft.Azure.Management.Sql.LegacySdk.IServerDisasterRecoveryConfigurationOperations operations, string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName);
static member Failover : Microsoft.Azure.Management.Sql.LegacySdk.IServerDisasterRecoveryConfigurationOperations * string * string * string -> Microsoft.Azure.AzureOperationResponse
<Extension()>
Public Function Failover (operations As IServerDisasterRecoveryConfigurationOperations, resourceGroupName As String, serverName As String, serverDisasterRecoveryConfigurationName As String) As 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

Microsoft.Azure.AzureOperationResponse

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

Applies to