Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
5 changes: 4 additions & 1 deletion appservice/src/createAppService/AppServicePlanListStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ import { IAppServiceWizardContext } from './IAppServiceWizardContext';
export class AppServicePlanListStep extends AzureWizardPromptStep<IAppServiceWizardContext> {
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<AppServicePlan[]> {
Expand Down