diff --git a/appservice/src/createAppService/AppServicePlanCreateStep.ts b/appservice/src/createAppService/AppServicePlanCreateStep.ts index 5fbf273f7f..79f1838387 100644 --- a/appservice/src/createAppService/AppServicePlanCreateStep.ts +++ b/appservice/src/createAppService/AppServicePlanCreateStep.ts @@ -118,7 +118,7 @@ class AppServicePlanNoCreatePermissionsStep extends AzureWizardExecuteStepWithAc await context.ui.showWarningMessage(message, { modal: true, stepName: 'AspNoPermissions' }, selectExisting); context.telemetry.properties.forbiddenResponse = 'SelectExistingAsp'; - const step: AppServicePlanListStep = new AppServicePlanListStep(true /* suppressCreate */); + const step: AppServicePlanListStep = new AppServicePlanListStep(context, true /* suppressCreate */); await step.prompt(context); } diff --git a/appservice/src/createAppService/AppServicePlanListStep.ts b/appservice/src/createAppService/AppServicePlanListStep.ts index 866fe7f581..911b686701 100644 --- a/appservice/src/createAppService/AppServicePlanListStep.ts +++ b/appservice/src/createAppService/AppServicePlanListStep.ts @@ -20,9 +20,12 @@ import { IAppServiceWizardContext } from './IAppServiceWizardContext'; export class AppServicePlanListStep extends AzureWizardPromptStep { private _suppressCreate: boolean | undefined; - public constructor(suppressCreate?: boolean) { + public constructor(context: IAppServiceWizardContext, suppressCreate?: boolean) { super(); this._suppressCreate = suppressCreate; + + // Start retrieving the appservice plans right away; tracks the concurrent list call in `context.plansTask` + void AppServicePlanListStep.getPlans(context); } public static async getPlans(context: IAppServiceWizardContext): Promise {