diff --git a/src/commands/createManagedEnvironment/ManagedEnvironmentNameStep.ts b/src/commands/createManagedEnvironment/ManagedEnvironmentNameStep.ts index e3ab53ba..bf791d14 100644 --- a/src/commands/createManagedEnvironment/ManagedEnvironmentNameStep.ts +++ b/src/commands/createManagedEnvironment/ManagedEnvironmentNameStep.ts @@ -4,7 +4,7 @@ *--------------------------------------------------------------------------------------------*/ import { type ContainerAppsAPIClient } from "@azure/arm-appcontainers"; -import { AzureWizardPromptStep, nonNullValueAndProp, type ISubscriptionActionContext } from "@microsoft/vscode-azext-utils"; +import { AzureWizardPromptStep, nonNullValueAndProp, validationUtils, type ISubscriptionActionContext } from "@microsoft/vscode-azext-utils"; import { createContainerAppsAPIClient } from "../../utils/azureClients"; import { localize } from "../../utils/localize"; import { type IManagedEnvironmentContext } from './IManagedEnvironmentContext'; @@ -28,11 +28,13 @@ export class ManagedEnvironmentNameStep extends AzureWizardPromptStep maxLength) { - return localize('invalidLength', 'The name must be between {0} and {1} characters.', minLength, maxLength); } return undefined;