Udostępnij za pośrednictwem


DatabaseAccountsOperationsExtensions.FailoverPriorityChangeAsync Method

Definition

Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.

public static System.Threading.Tasks.Task FailoverPriorityChangeAsync (this Microsoft.Azure.Management.CosmosDB.IDatabaseAccountsOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.CosmosDB.Models.FailoverPolicies failoverParameters, System.Threading.CancellationToken cancellationToken = default);
static member FailoverPriorityChangeAsync : Microsoft.Azure.Management.CosmosDB.IDatabaseAccountsOperations * string * string * Microsoft.Azure.Management.CosmosDB.Models.FailoverPolicies * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function FailoverPriorityChangeAsync (operations As IDatabaseAccountsOperations, resourceGroupName As String, accountName As String, failoverParameters As FailoverPolicies, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IDatabaseAccountsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

accountName
String

Cosmos DB database account name.

failoverParameters
FailoverPolicies

The new failover policies for the database account.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to