Share via


DatabaseAccountsOperationsExtensions.BeginFailoverPriorityChange 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 void BeginFailoverPriorityChange (this Microsoft.Azure.Management.CosmosDB.IDatabaseAccountsOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.CosmosDB.Models.FailoverPolicies failoverParameters);
static member BeginFailoverPriorityChange : Microsoft.Azure.Management.CosmosDB.IDatabaseAccountsOperations * string * string * Microsoft.Azure.Management.CosmosDB.Models.FailoverPolicies -> unit
<Extension()>
Public Sub BeginFailoverPriorityChange (operations As IDatabaseAccountsOperations, resourceGroupName As String, accountName As String, failoverParameters As FailoverPolicies)

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.

Applies to