From 9bd61468f351bcf202077f6c045c0cb2da94c3a3 Mon Sep 17 00:00:00 2001 From: Jade Welton Date: Fri, 28 Aug 2026 13:07:45 -0700 Subject: [PATCH 1/4] Update all preview website URL references to the new URL. --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- preview/README.md | 4 ++-- preview/config.json | 2 +- preview/index.js | 2 +- src/Utils/EndpointUtils.ts | 2 +- web.config | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7ff47e44cb..f294ca39f8 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1 +1 @@ -[Preview this branch](https://dataexplorer-preview.azurewebsites.net/pull/EDIT_THIS_NUMBER_IN_THE_PR_DESCRIPTION?feature.someFeatureFlagYouMightNeed=true) +[Preview this branch](https://dataexplorer-preview.portal.cosmos.azure.com/pull/EDIT_THIS_NUMBER_IN_THE_PR_DESCRIPTION?feature.someFeatureFlagYouMightNeed=true) diff --git a/preview/README.md b/preview/README.md index 59a84a2d7a..86858539e9 100644 --- a/preview/README.md +++ b/preview/README.md @@ -4,8 +4,8 @@ Cosmos Explorer Preview makes it possible to try a working version of any commit Initial support is for Hosted (Connection string only) or the Azure Portal. Examples: -Connection string URLs: https://dataexplorer-preview.azurewebsites.net/commit/COMMIT_SHA/hostedExplorer.html -Portal URLs: https://ms.portal.azure.com/?dataExplorerSource=https://dataexplorer-preview.azurewebsites.net/commit/COMMIT_SHA/explorer.html#home +Connection string URLs: https://dataexplorer-preview.portal.cosmos.azure.com/commit/COMMIT_SHA/hostedExplorer.html +Portal URLs: https://ms.portal.azure.com/?dataExplorerSource=https://dataexplorer-preview.portal.cosmos.azure.com/commit/COMMIT_SHA/explorer.html#home In both cases replace `COMMIT_SHA` with the commit you want to view. It must have already completed its build on GitHub Actions. diff --git a/preview/config.json b/preview/config.json index a67bcd2efe..0332eae1f5 100644 --- a/preview/config.json +++ b/preview/config.json @@ -1,4 +1,4 @@ { "PROXY_PATH": "/proxy", - "msalRedirectURI": "https://dataexplorer-preview.azurewebsites.net/" + "msalRedirectURI": "https://dataexplorer-preview.portal.cosmos.azure.com/" } diff --git a/preview/index.js b/preview/index.js index be44c63ede..7a994a7e65 100644 --- a/preview/index.js +++ b/preview/index.js @@ -4,7 +4,7 @@ const port = process.env.PORT || 3000; const fetch = require("node-fetch"); const backendEndpoint = "https://cdb-ms-mpac-pbe.cosmos.azure.com"; -const previewSiteEndpoint = "https://dataexplorer-preview.azurewebsites.net"; +const previewSiteEndpoint = "https://dataexplorer-preview.portal.cosmos.azure.com"; const previewStorageWebsiteEndpoint = "_REPLACE_STORAGE_WEBSITE_ENDPOINT_"; const githubApiUrl = "https://api.github.com/repos/Azure/cosmos-explorer"; const azurePortalMpacEndpoint = "https://ms.portal.azure.com/"; diff --git a/src/Utils/EndpointUtils.ts b/src/Utils/EndpointUtils.ts index 9f716fcb21..4e57ae3d01 100644 --- a/src/Utils/EndpointUtils.ts +++ b/src/Utils/EndpointUtils.ts @@ -88,7 +88,7 @@ export const allowedHostedExplorerEndpoints: ReadonlyArray = [ ...(process.env.NODE_ENV === "development" ? ["https://localhost:12900"] : []), ]; -export const allowedMsalRedirectEndpoints: ReadonlyArray = ["https://dataexplorer-preview.azurewebsites.net/"]; +export const allowedMsalRedirectEndpoints: ReadonlyArray = ["https://dataexplorer-preview.portal.cosmos.azure.com/"]; export const allowedJunoOrigins: ReadonlyArray = [ JunoEndpoints.Test, diff --git a/web.config b/web.config index e987fa9394..2bea8b149a 100644 --- a/web.config +++ b/web.config @@ -30,7 +30,7 @@ - + From 25b333ced4d86d596d66c0bd9a94f734ddacb46d Mon Sep 17 00:00:00 2001 From: Jade Welton Date: Fri, 28 Aug 2026 14:19:30 -0700 Subject: [PATCH 2/4] Remove az cli config. --- preview/.azure/config | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 preview/.azure/config diff --git a/preview/.azure/config b/preview/.azure/config deleted file mode 100644 index 4e174b7418..0000000000 --- a/preview/.azure/config +++ /dev/null @@ -1,7 +0,0 @@ -[defaults] -group = dataexplorer-preview -sku = P1v2 -appserviceplan = dataexplorer-preview -location = westus2 -web = dataexplorer-preview - From 35578bce52251df83b75842e82abca02262e0da1 Mon Sep 17 00:00:00 2001 From: Jade Welton Date: Tue, 1 Sep 2026 09:07:46 -0700 Subject: [PATCH 3/4] Fix formatting. --- src/Utils/EndpointUtils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Utils/EndpointUtils.ts b/src/Utils/EndpointUtils.ts index 4e57ae3d01..e230a0469a 100644 --- a/src/Utils/EndpointUtils.ts +++ b/src/Utils/EndpointUtils.ts @@ -88,7 +88,9 @@ export const allowedHostedExplorerEndpoints: ReadonlyArray = [ ...(process.env.NODE_ENV === "development" ? ["https://localhost:12900"] : []), ]; -export const allowedMsalRedirectEndpoints: ReadonlyArray = ["https://dataexplorer-preview.portal.cosmos.azure.com/"]; +export const allowedMsalRedirectEndpoints: ReadonlyArray = [ + "https://dataexplorer-preview.portal.cosmos.azure.com/", +]; export const allowedJunoOrigins: ReadonlyArray = [ JunoEndpoints.Test, From 9837cb32e20ba284f0bc219323e56619a7d6805e Mon Sep 17 00:00:00 2001 From: Jade Welton Date: Tue, 1 Sep 2026 13:57:42 -0700 Subject: [PATCH 4/4] Fix new preview URL in ConfigContext --- src/ConfigContext.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConfigContext.ts b/src/ConfigContext.ts index a14deb248a..34eaeed07a 100644 --- a/src/ConfigContext.ts +++ b/src/ConfigContext.ts @@ -80,7 +80,7 @@ let configContext: Readonly = { `^https:\\/\\/cosmos-db-dataexplorer-germanycentral\\.azurewebsites\\.de$`, `^https:\\/\\/.*\\.fabric\\.microsoft\\.com$`, `^https:\\/\\/.*\\.powerbi\\.com$`, - `^https:\\/\\/dataexplorer-preview\\.azurewebsites\\.net$`, + `^https:\\/\\/dataexplorer-preview\\.portal\\.cosmos\\.azure\\.com$`, `^https:\\/\\/explorer\\.cosmos\\.sovcloud-api\\.fr$`, `^https:\\/\\/portal\\.sovcloud-azure\\.fr$`, `^https:\\/\\/explorer\\.cosmos\\.sovcloud-api\\.de$`,