Skip to content

Fixes to Azure provisioning dialog#13065

Merged
JamesNK merged 1 commit intomainfrom
jamesnk/azure-dialog
Nov 21, 2025
Merged

Fixes to Azure provisioning dialog#13065
JamesNK merged 1 commit intomainfrom
jamesnk/azure-dialog

Conversation

@JamesNK
Copy link
Member

@JamesNK JamesNK commented Nov 20, 2025

Description

Fixes #12979

Fixes some issues with Azure provisioning dialog in the dashboard:

  • Resource group combobox doesn't give options when clicked on. This is because it has a default value set and the defaul value means no options display in the dropdown. But for some reason the default value isn't in the text box. Fixed both of these issues by only setting a default value if there are no groups returned
  • Check that resource group has a location before disabling the dropdown

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

Copilot AI review requested due to automatic review settings November 20, 2025 07:32
@JamesNK JamesNK added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Nov 20, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 13065

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 13065"

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes issues with the Azure provisioning dialog in the dashboard where the resource group combobox wasn't displaying options and the location dropdown was incorrectly disabled.

Key changes:

  • Resource group default name is now only set when fetching existing groups fails (not unconditionally)
  • Location dropdown is only disabled when an existing resource group has a valid location value
  • Minor refactoring to use tuple deconstruction for cleaner code

@JamesNK JamesNK enabled auto-merge (squash) November 21, 2025 01:07
@JamesNK JamesNK force-pushed the jamesnk/azure-dialog branch from 5ad7ec3 to d27aa57 Compare November 21, 2025 01:20
@JamesNK JamesNK force-pushed the jamesnk/azure-dialog branch from d27aa57 to c42d111 Compare November 21, 2025 03:54
@JamesNK JamesNK merged commit 662caf6 into main Nov 21, 2025
580 of 583 checks passed
@JamesNK JamesNK deleted the jamesnk/azure-dialog branch November 21, 2025 05:00
@dotnet-policy-service dotnet-policy-service bot added this to the 13.1 milestone Nov 21, 2025
Copilot AI added a commit that referenced this pull request Nov 21, 2025
- Add assertion for InputType.Choice when subscription ID is not configured
- Add assertion for Resource Group having no default value initially
- Add test for Resource Group default value behavior during dynamic loading

Co-authored-by: JamesNK <303201+JamesNK@users.noreply.github.com>
JamesNK added a commit that referenced this pull request Dec 9, 2025
* Initial plan

* Add unit tests for PR #12888 subscription ID input behavior

Co-authored-by: JamesNK <303201+JamesNK@users.noreply.github.com>

* Add unit tests for PR #13065 changes

- Add assertion for InputType.Choice when subscription ID is not configured
- Add assertion for Resource Group having no default value initially
- Add test for Resource Group default value behavior during dynamic loading

Co-authored-by: JamesNK <303201+JamesNK@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JamesNK <303201+JamesNK@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot select location when choosing an existing resource group

3 participants