Refactor Azure Redis and PostgreSQL to only have a single ConfigureInfrastructure. Instead of removing resources that were added by the Entra ID code, switch based on whether access key / password auth was enabled or not in one spot.
Checklist
Is this feature complete?
[x] Yes. Ready to ship.
Are you including unit tests for the changes and scenario tests if relevant?
[x] Yes
Did you add public API?
[x] No
Does the change make any security assumptions or guarantees?
[x] No
Does the change require an update in our Aspire docs?
Description
Refactor Azure Redis and PostgreSQL to only have a single ConfigureInfrastructure. Instead of removing resources that were added by the Entra ID code, switch based on whether access key / password auth was enabled or not in one spot.
Checklist
Does the change require an update in our Aspire docs?
Microsoft Reviewers: Open in CodeFlow