[release/13.0] Fix Azure roles resources always redeploying - #12903
Merged
Jose Perez Rodriguez (joperezr) merged 2 commits intoNov 20, 2025
Merged
Conversation
github-actions
Bot
requested review from
Safia Abdalla (captainsafia) and
Eric Erhardt (eerhardt)
as code owners
November 11, 2025 18:32
Contributor
Author
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12903Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 12903" |
Everytime we check if we need to redeploy an Azure "roles" resource in run mode, we are getting a different CheckSum. This is because we are overwriting the "known parameters" like PrincipalId and PrincipalType with 'null' values, because these values aren't available yet. The fix is to skip setting those known parameters, like we did in previous versions. Fix #12651
github-actions
Bot
force-pushed
the
backport/pr-12901-to-release/13.0
branch
from
November 11, 2025 19:42
4088ae3 to
8480d9d
Compare
David Fowler (davidfowl)
approved these changes
Nov 12, 2025
Contributor
|
Eric Erhardt (@eerhardt) who sets skipKnownValues to true? |
Member
The only place it gets set to The other caller is in |
Eric Erhardt (eerhardt)
approved these changes
Nov 12, 2025
Jose Perez Rodriguez (joperezr)
merged commit Nov 20, 2025
6891fa8
into
release/13.0
296 checks passed
Jose Perez Rodriguez (joperezr)
deleted the
backport/pr-12901-to-release/13.0
branch
November 20, 2025 22:29
This was referenced Nov 26, 2025
Merged
This was referenced Dec 17, 2025
Closed
Closed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Backport of #12901 to release/13.0
/cc Eric Erhardt (@eerhardt)
Customer Impact
When someone has Azure resources in their app, the "roles" resource is getting redeployed each time the app is run locally. This slows down the dev's inner loop.
Testing
Manually tested the roles resource is cached correctly. Also added a new unit test for the scenario.
Risk
Low. The fix is bringing parts of code that shipped earlier in Aspire 9.5.
Regression?
Yes