Skip to content

[release/9.1] Require resource group on existing azure resources#7734

Merged
wtgodbe merged 2 commits intorelease/9.1from
backport/pr-7733-to-release/9.1
Feb 21, 2025
Merged

[release/9.1] Require resource group on existing azure resources#7734
wtgodbe merged 2 commits intorelease/9.1from
backport/pr-7733-to-release/9.1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Feb 21, 2025

Backport of #7733 to release/9.1

/cc @eerhardt

Customer Impact

It was pointed out that PublishAsExisting without a resource group is kinda pointless by default since we are creating a new resource group the first time you deploy. Changing the method signature to require a resource group, which sets up the caller to be more likely to succeed.

Since this is an API change, we need to make it before we ship 9.1 stable, or else we need to live with the current API.

Testing

Existing tests in the repo. No functional differences, we just require the parameter to be specified now.

Risk

No real risk. Just dropping a default parameter.

Regression?

No.

Since, by default, publishing a .NET Asipre app will create a new resource group, not specifying a resource group won't work - since the current resource group hasn't been created yet. Because of this, require callers to explicitly specify the resource group to use. They can still say `null` to mean "use the current" if that's really what they want.
@github-actions github-actions Bot force-pushed the backport/pr-7733-to-release/9.1 branch from 5f6ca84 to 6fd9109 Compare February 21, 2025 21:28
@eerhardt eerhardt closed this Feb 21, 2025
@eerhardt eerhardt reopened this Feb 21, 2025
@eerhardt eerhardt added this to the 9.1 milestone Feb 21, 2025
@wtgodbe wtgodbe merged commit f209b76 into release/9.1 Feb 21, 2025
@wtgodbe wtgodbe deleted the backport/pr-7733-to-release/9.1 branch February 21, 2025 22:58
@github-actions github-actions Bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 10, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 9, 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.

4 participants