From 999196193fa7a1cf92873a83a07a5745b66f3ba3 Mon Sep 17 00:00:00 2001 From: Steve Faulkner Date: Wed, 19 Aug 2020 13:20:10 -0500 Subject: [PATCH] Update Config context ARM endpoint (#158) --- src/Explorer/Explorer.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Explorer/Explorer.ts b/src/Explorer/Explorer.ts index 3d82f245a..81a7ff2ac 100644 --- a/src/Explorer/Explorer.ts +++ b/src/Explorer/Explorer.ts @@ -37,7 +37,7 @@ import { BindingHandlersRegisterer } from "../Bindings/BindingHandlersRegisterer import { BrowseQueriesPane } from "./Panes/BrowseQueriesPane"; import { CassandraAPIDataClient, TableDataClient, TablesAPIDataClient } from "./Tables/TableDataClient"; import { CommandBarComponentAdapter } from "./Menus/CommandBar/CommandBarComponentAdapter"; -import { configContext } from "../ConfigContext"; +import { configContext, updateConfigContext } from "../ConfigContext"; import { ConsoleData, ConsoleDataType } from "./Menus/NotificationConsole/NotificationConsoleComponent"; import { decryptJWTToken, getAuthorizationHeader } from "../Utils/AuthorizationUtils"; import { DefaultExperienceUtility } from "../Shared/DefaultExperienceUtility"; @@ -1949,12 +1949,17 @@ export default class Explorer { this._importExplorerConfigComplete = true; + updateConfigContext({ + ARM_ENDPOINT: this.armEndpoint() + }); + updateUserContext({ authorizationToken, masterKey, - databaseAccount + databaseAccount, + resourceGroup: inputs.resourceGroup, + subscriptionId: inputs.subscriptionId }); - updateUserContext({ resourceGroup: inputs.resourceGroup, subscriptionId: inputs.subscriptionId }); TelemetryProcessor.traceSuccess( Action.LoadDatabaseAccount, {