共用方式為


DisasterRecoveryConfigsOperationsExtensions.FailOverAsync Method

Definition

Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace

public static System.Threading.Tasks.Task FailOverAsync (this Microsoft.Azure.Management.ServiceBus.IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, string alias, Microsoft.Azure.Management.ServiceBus.Models.FailoverProperties parameters = default, System.Threading.CancellationToken cancellationToken = default);
static member FailOverAsync : Microsoft.Azure.Management.ServiceBus.IDisasterRecoveryConfigsOperations * string * string * string * Microsoft.Azure.Management.ServiceBus.Models.FailoverProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function FailOverAsync (operations As IDisasterRecoveryConfigsOperations, resourceGroupName As String, namespaceName As String, alias As String, Optional parameters As FailoverProperties = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IDisasterRecoveryConfigsOperations

The operations group for this extension method.

resourceGroupName
String

Name of the Resource group within the Azure subscription.

namespaceName
String

The namespace name

alias
String

The Disaster Recovery configuration name

parameters
FailoverProperties

Parameters required to create an Alias(Disaster Recovery configuration)

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to