From b19aa3fbca45728c61510b7725b045a72a0d4d24 Mon Sep 17 00:00:00 2001 From: bogercraig <124094535+bogercraig@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:29:27 -0800 Subject: [PATCH] Reverting enabling endpoint discovery since it didn't have time during CCOA to bake in MPAC. (#1698) --- src/Common/CosmosClient.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Common/CosmosClient.ts b/src/Common/CosmosClient.ts index 57d250531..476cd902f 100644 --- a/src/Common/CosmosClient.ts +++ b/src/Common/CosmosClient.ts @@ -148,6 +148,9 @@ export function client(): Cosmos.CosmosClient { endpoint: endpoint() || "https://cosmos.azure.com", // CosmosClient gets upset if we pass a bad URL. This should never actually get called key: userContext.masterKey, tokenProvider, + connectionPolicy: { + enableEndpointDiscovery: false, + }, userAgentSuffix: "Azure Portal", defaultHeaders: _defaultHeaders, };