-
Notifications
You must be signed in to change notification settings - Fork 780
[release/13.0] Fix Azure roles resources always redeploying #12903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
🚀 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
4088ae3 to
8480d9d
Compare
|
@eerhardt who sets skipKnownValues to true? |
The only place it gets set to The other caller is in |
Backport of #12901 to release/13.0
/cc @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