diff --git a/src/tree/AzureDBAPIStep.ts b/src/tree/AzureDBAPIStep.ts index 8a11fdc95..33025389d 100644 --- a/src/tree/AzureDBAPIStep.ts +++ b/src/tree/AzureDBAPIStep.ts @@ -20,6 +20,7 @@ import { CosmosDBAccountCapacityStep } from './CosmosDBAccountWizard/CosmosDBAcc import { CosmosDBAccountCreateStep } from './CosmosDBAccountWizard/CosmosDBAccountCreateStep'; import { CosmosDBAccountNameStep } from './CosmosDBAccountWizard/CosmosDBAccountNameStep'; import { ICosmosDBWizardContext } from './CosmosDBAccountWizard/ICosmosDBWizardContext'; +import { MongoVersionStep } from './CosmosDBAccountWizard/MongoDBVersionStep'; import { IAzureDBWizardContext } from './IAzureDBWizardContext'; export class AzureDBAPIStep extends AzureWizardPromptStep { @@ -61,7 +62,8 @@ export class AzureDBAPIStep extends AzureWizardPromptStep => step !== undefined); executeSteps = [ new CosmosDBAccountCreateStep(), new VerifyProvidersStep(['Microsoft.DocumentDB']) diff --git a/src/tree/CosmosDBAccountWizard/CosmosDBAccountCreateStep.ts b/src/tree/CosmosDBAccountWizard/CosmosDBAccountCreateStep.ts index 4bd469b84..41cd51f7f 100644 --- a/src/tree/CosmosDBAccountWizard/CosmosDBAccountCreateStep.ts +++ b/src/tree/CosmosDBAccountWizard/CosmosDBAccountCreateStep.ts @@ -40,7 +40,9 @@ export class CosmosDBAccountCreateStep extends AzureWizardExecuteStep { + + public async prompt(context: ICosmosDBWizardContext): Promise { + const mongoVersionOption = await context.ui.showQuickPick([ + { label: "v4.0", detail: "4.0" }, + { label: "v3.6", detail: "3.6" }, + { label: "v3.2", detail: "3.2" }, + ], { + placeHolder: localize("selectMongoVersion", "Select MongoDB version") + }); + context.mongoVersion = mongoVersionOption.detail; + } + + public shouldPrompt(_context: ICosmosDBWizardContext): boolean { + return true; + } +}