Skip to content
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

[release/8.0] Uses new Azure.Provisioning packages which have been split by resource #3462

Merged
merged 14 commits into from
Apr 8, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 7, 2024

Backport of #3383 to release/8.0

/cc @mitchdenny

Customer Impact

Reaction to provisioning package break up.

Azure Provisioning recently split out packages for the different resource types/providers. This is the way that it is intended to ship for GA. We've adopted this for P6 and we'll switch to non preview packages just before we GA. The updated packages incorporate a number of fixes around resource name generation which is why a bunch of the test cases/generated manifests need to be updated since they are baselines.

Change ASPIRE0001 to AZPROVISION001

As part of this change, we migrated from the ASPIRE0001 code analysis working code to AZPROVISION001 ... adopting the same one in our APIs that expose the CDK types so that customers only need to use one suppression.

Firewall tweaks

We now setup default firewall configurations on SQL Server and Postgres. Other resource types have picked up some extra Bicep as a side effect of some fixes in the CDK to allow setting these firewall rules. Unfortunately, we couldn't setup firewall rules for many of the other resources.

Autogenerate workspace for AppInsights

Through some manual testing I found an edge case that I hadn't tested earlier in relation to integration of log analytics and app insights. If someone does not provide a log analytics workspace explicitly then we were not creating one (we used to with our Bicep based approach). This was not an issue for deployment with AZD because it would inject the log analytics workspace ID. However if you don't provide a workspace AND you use the Azure Provisioner the deployment would fail. This PR includes fixes for that issue as well as covering test cases so that we don't accidentally regress this behavior.

Testing

Both manual testing of deployments to Azure via AZD and Azure provisioning. Also added some extra test cases to cover testing Bicep against a baseline depending on whether it is in publish or run mode (since there are sometimes some subtle differences).

Risk

Multiple changes in one PR, this isn't just the package split up PR, however the package split up change and the firewall change are interdependent (the fixes were only in the split packages).

Regression?

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-integrations Issues pertaining to Aspire Integrations packages label Apr 7, 2024
@danmoseley danmoseley added Servicing-approved Approved for servicing release and removed area-integrations Issues pertaining to Aspire Integrations packages labels Apr 8, 2024
@davidfowl davidfowl merged commit 7d1c6e0 into release/8.0 Apr 8, 2024
7 checks passed
@davidfowl davidfowl deleted the backport/pr-3383-to-release/8.0 branch April 8, 2024 23:57
@danmoseley danmoseley mentioned this pull request Apr 12, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants