IServerDisasterRecoveryConfigurationOperations.FailoverAsync 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.
Begins failover for the Azure SQL server disaster recovery configuration with the given name.
public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> FailoverAsync (string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName, System.Threading.CancellationToken cancellationToken);
abstract member FailoverAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function FailoverAsync (resourceGroupName As String, serverName As String, serverDisasterRecoveryConfigurationName As String, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)
Parameters
- resourceGroupName
- String
The name of the Resource Group to which the Azure SQL Server belongs.
- serverName
- String
The name of the Azure SQL Server.
- serverDisasterRecoveryConfigurationName
- String
The name of the Azure SQL server disaster recovery configuration to start failover.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A standard service response including an HTTP status code and request ID.