Skip to content

Pre-fill resource group name with environment name in container apps environment creation flow - #1111

Draft
motm32 with Copilot wants to merge 4 commits into
mainfrom
copilot/fix-resource-group-name-pre-fill
Draft

Pre-fill resource group name with environment name in container apps environment creation flow#1111
motm32 with Copilot wants to merge 4 commits into
mainfrom
copilot/fix-resource-group-name-pre-fill

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

When creating a new container apps environment and selecting "+ Create new resource group", the resource group name input was blank instead of being pre-populated with the environment name.

Root cause

ResourceGroupNameStep (from vscode-azext-azureutils) uses wizardContext.relatedNameTask as the suggested default value for its input box. ManagedEnvironmentNameStep never populated this task, so the field was always empty.

Change

Set relatedNameTask in ManagedEnvironmentNameStep.prompt() after the user enters the environment name:

context.relatedNameTask ??= Promise.resolve(context.newManagedEnvironmentName);

Uses ??= to avoid overwriting if already set by a prior step. The resource group name input box now pre-fills with the environment name, matching the behavior of the standalone createManagedEnvironment command where the resource group name is always set to match the environment name.

Copilot AI changed the title [WIP] Fix resource group name not pre-filled in Container Apps flow Pre-fill resource group name with environment name in container apps environment creation flow Jul 8, 2026
Copilot finished work on behalf of motm32 July 8, 2026 18:28
Copilot AI requested a review from motm32 July 8, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource group name is not pre-filled when using "Create new resource group" in Container Apps environment flow

3 participants