Draft
Pre-fill resource group name with environment name in container apps environment creation flow#1111
Conversation
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
MicroFish91
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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(fromvscode-azext-azureutils) useswizardContext.relatedNameTaskas the suggested default value for its input box.ManagedEnvironmentNameStepnever populated this task, so the field was always empty.Change
Set
relatedNameTaskinManagedEnvironmentNameStep.prompt()after the user enters the environment name: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 standalonecreateManagedEnvironmentcommand where the resource group name is always set to match the environment name.