Repository navigation
Entra ID application should show missing subscription state like other Azure resources - #21163
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 311fe83c-132a-483d-87c4-57135c403d13
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21163Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21163" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟢 Approval recommended
The focused exception handling preserves other failure behavior, includes regression coverage, and has no unresolved findings.
No open issues 🎉
What changed in this PR
Preserves the Azure controller’s “Missing subscription configuration” state for Entra ID applications instead of overwriting it with “Failed to start.”
Changes:
- Handles missing configuration separately from other provisioning failures.
- Grants internal access to the Entra ID integration and tests.
- Adds regression coverage for preserving the provisioning state.
| File | Description |
|---|---|
| tests/Aspire.Hosting.Azure.EntraId.Tests/EntraIdInitializationTests.cs | Tests that missing-configuration state remains unchanged. |
| src/Aspire.Hosting.Azure/Aspire.Hosting.Azure.csproj | Grants internal access to Entra ID assemblies. |
| src/Aspire.Hosting.Azure.EntraId/EntraIdResourceExtensions.cs | Leaves controller-reported missing-configuration state intact. |
Review effort: Balanced
…sibleTo Co-authored-by: Copilot App <[email protected]> Copilot-Session: 311fe83c-132a-483d-87c4-57135c403d13
Tests selector2 / 99 PR test projects · 1 PR job, from 2 changed files. Selected PR test projects (2 / 99)
Selected PR jobs (1)
How these were chosen — grouped by what changed🔧 🧪 Job reasons
Selection computed for commit |
…ire 17.0 Documents microsoft/aspire#21163: the Entra ID application resource now shows 'Missing subscription configuration' instead of 'Failed to start' when Azure subscription/location/resource group config is missing, matching other Azure resources. Co-authored-by: Copilot <[email protected]>
|
Pull request created: #1928
|
|
📝 Documentation has been drafted in microsoft/aspire.dev#1928 targeting Triggered signal: Note This draft PR needs human review before merging. |
Description
When Azure subscription/location/resource group info is missing, Azure resources show "Missing subscription configuration". The Entra ID application resource instead showed "Failed to start", because its initializer observed the provisioning failure and overwrote the controller-published state.
The initializer now treats
MissingConfigurationExceptionfrom provisioning as already reported by the Azure provisioning controller and leaves the state untouched. Other provisioning failures still reportFailedToStart.Aspire.Hosting.Azureexposes internals toAspire.Hosting.Azure.EntraId(and its tests) for this.Validation:
dotnet test --project tests/Aspire.Hosting.Azure.EntraId.Tests/Aspire.Hosting.Azure.EntraId.Tests.csproj --no-launch-profile -- --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"— passed (250/250).Checklist