aspire icon indicating copy to clipboard operation
aspire copied to clipboard

Cannot select location when choosing an existing resource group

Open captainsafia opened this issue 1 month ago • 1 comments

Description: When I select an existing resource group in the interactive prompt from the dashboard, the UI disables the location field. The form, however, still requires a location value to submit successfully. This leaves meunable to proceed, since the location cannot be changed and the form validation fails.

Expected Behavior: Selecting an existing resource group should either (a) auto-populate and accept the group’s actual location, or (b) allow the user to select a valid location so the form can be submitted.

captainsafia avatar Nov 15 '25 21:11 captainsafia

The location should be disabled and default to the rg location.

davidfowl avatar Nov 15 '25 22:11 davidfowl

I think I fixed this here: https://github.com/dotnet/aspire/pull/12888. There is already a backport PR.

Can you test whether it is still a problem using latest source?

JamesNK avatar Nov 17 '25 02:11 JamesNK

The resource group changes went in after this change no?

davidfowl avatar Nov 17 '25 06:11 davidfowl

Yes. My fix was in the same area but for something different.

This dialog needs careful testing after it is changed. Or more unit tests. It keeps regressing.

JamesNK avatar Nov 17 '25 06:11 JamesNK

@captainsafia I couldn't replicate this. My theory is maybe the selected resource group didn't have a location, so the next input was set to empty string and disabled. I have a PR that checks that location has a value because removing the option to select it yourself.

Please double check if you still see this issue.

JamesNK avatar Nov 20 '25 07:11 JamesNK