From 7a0a56df2ffe60d93b4a5909536961685e89c797 Mon Sep 17 00:00:00 2001 From: nasc17 <69922333+nasc17@users.noreply.github.com> Date: Fri, 15 Jan 2021 12:05:35 -0800 Subject: [PATCH] Updating Arc resources link to match new provider. (#13963) * Fixed support request link * Updated other pages that opens to portal --- .../ui/dashboards/controller/controllerDashboardOverviewPage.ts | 2 +- .../arc/src/ui/dashboards/miaa/miaaDashboardOverviewPage.ts | 2 +- .../arc/src/ui/dashboards/postgres/postgresOverviewPage.ts | 2 +- .../src/ui/dashboards/postgres/postgresSupportRequestPage.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/arc/src/ui/dashboards/controller/controllerDashboardOverviewPage.ts b/extensions/arc/src/ui/dashboards/controller/controllerDashboardOverviewPage.ts index a917e26adc..ed68d7abad 100644 --- a/extensions/arc/src/ui/dashboards/controller/controllerDashboardOverviewPage.ts +++ b/extensions/arc/src/ui/dashboards/controller/controllerDashboardOverviewPage.ts @@ -179,7 +179,7 @@ export class ControllerDashboardOverviewPage extends DashboardPage { const config = this._controllerModel.controllerConfig; if (config) { await vscode.env.openExternal(vscode.Uri.parse( - `https://portal.azure.com/#resource/subscriptions/${config.spec.settings.azure.subscription}/resourceGroups/${config.spec.settings.azure.resourceGroup}/providers/Microsoft.AzureData/${ResourceType.dataControllers}/${config.metadata.name}`)); + `https://portal.azure.com/#resource/subscriptions/${config.spec.settings.azure.subscription}/resourceGroups/${config.spec.settings.azure.resourceGroup}/providers/Microsoft.AzureArcData/${ResourceType.dataControllers}/${config.metadata.name}`)); } else { vscode.window.showErrorMessage(loc.couldNotFindControllerRegistration); } diff --git a/extensions/arc/src/ui/dashboards/miaa/miaaDashboardOverviewPage.ts b/extensions/arc/src/ui/dashboards/miaa/miaaDashboardOverviewPage.ts index 94e47cef0a..ae3f2e698a 100644 --- a/extensions/arc/src/ui/dashboards/miaa/miaaDashboardOverviewPage.ts +++ b/extensions/arc/src/ui/dashboards/miaa/miaaDashboardOverviewPage.ts @@ -252,7 +252,7 @@ export class MiaaDashboardOverviewPage extends DashboardPage { const config = this._controllerModel.controllerConfig; if (config) { vscode.env.openExternal(vscode.Uri.parse( - `https://portal.azure.com/#resource/subscriptions/${config.spec.settings.azure.subscription}/resourceGroups/${config.spec.settings.azure.resourceGroup}/providers/Microsoft.AzureData/${ResourceType.sqlManagedInstances}/${this._miaaModel.info.name}`)); + `https://portal.azure.com/#resource/subscriptions/${config.spec.settings.azure.subscription}/resourceGroups/${config.spec.settings.azure.resourceGroup}/providers/Microsoft.AzureArcData/${ResourceType.sqlManagedInstances}/${this._miaaModel.info.name}`)); } else { vscode.window.showErrorMessage(loc.couldNotFindControllerRegistration); } diff --git a/extensions/arc/src/ui/dashboards/postgres/postgresOverviewPage.ts b/extensions/arc/src/ui/dashboards/postgres/postgresOverviewPage.ts index 52f22eedda..442c5fcb7c 100644 --- a/extensions/arc/src/ui/dashboards/postgres/postgresOverviewPage.ts +++ b/extensions/arc/src/ui/dashboards/postgres/postgresOverviewPage.ts @@ -239,7 +239,7 @@ export class PostgresOverviewPage extends DashboardPage { const azure = this._controllerModel.controllerConfig?.spec.settings.azure; if (azure) { vscode.env.openExternal(vscode.Uri.parse( - `https://portal.azure.com/#resource/subscriptions/${azure.subscription}/resourceGroups/${azure.resourceGroup}/providers/Microsoft.AzureData/${ResourceType.postgresInstances}/${this._postgresModel.info.name}`)); + `https://portal.azure.com/#resource/subscriptions/${azure.subscription}/resourceGroups/${azure.resourceGroup}/providers/Microsoft.AzureArcData/${ResourceType.postgresInstances}/${this._postgresModel.info.name}`)); } else { vscode.window.showErrorMessage(loc.couldNotFindControllerRegistration); } diff --git a/extensions/arc/src/ui/dashboards/postgres/postgresSupportRequestPage.ts b/extensions/arc/src/ui/dashboards/postgres/postgresSupportRequestPage.ts index 34b477daff..ebb9c81bcf 100644 --- a/extensions/arc/src/ui/dashboards/postgres/postgresSupportRequestPage.ts +++ b/extensions/arc/src/ui/dashboards/postgres/postgresSupportRequestPage.ts @@ -55,7 +55,7 @@ export class PostgresSupportRequestPage extends DashboardPage { const azure = this._controllerModel.controllerConfig?.spec.settings.azure; if (azure) { vscode.env.openExternal(vscode.Uri.parse( - `https://portal.azure.com/#resource/subscriptions/${azure.subscription}/resourceGroups/${azure.resourceGroup}/providers/Microsoft.AzureData/${ResourceType.postgresInstances}/${this._postgresModel.info.name}/supportrequest`)); + `https://portal.azure.com/#resource/subscriptions/${azure.subscription}/resourceGroups/${azure.resourceGroup}/providers/Microsoft.AzureArcData/${ResourceType.postgresInstances}/${this._postgresModel.info.name}/supportrequest`)); } else { vscode.window.showErrorMessage(loc.couldNotFindControllerRegistration); }