CosmosClientOptions.ApplicationRegion Property


Gets or sets the location where the application is running. This will influence the SDK's choice for the Azure Cosmos DB service interaction.

public string ApplicationRegion { get; set; }
member this.ApplicationRegion : string with get, set
Public Property ApplicationRegion As String

Property Value



When the specified region is available, the SDK will prefer it to perform operations. When the region specified is not available, the SDK auto-selects fallback regions based on proximity from the given region. When this property is not specified at all, the SDK uses the write region as the preferred region for all operations. See also Diagnose and troubleshoot the availability of Cosmos SDKs for more details. This configuration is an alternative to ApplicationPreferredRegions, either one can be set but not both.

Applies to

See also