Update to latest Azure.Provisioning.AppContainers#15450
Open
eerhardt wants to merge 1 commit intomicrosoft:mainfrom
Open
Update to latest Azure.Provisioning.AppContainers#15450eerhardt wants to merge 1 commit intomicrosoft:mainfrom
eerhardt wants to merge 1 commit intomicrosoft:mainfrom
Conversation
This supports the latest resource versions. - The "Kind" property is now available in a stable version. - When doing "AutoConfigureDataProtection" we need to use a preview version that is higher than the latest stable version, so all the properties still work.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Aspire’s Azure AppContainers provisioning to align with newer Azure.Provisioning/AppContainers resource API versions, including using a newer preview API where required for autoConfigureDataProtection while moving kind=functionapp onto the now-stable surface area.
Changes:
- Bump Azure.Provisioning packages and update Container Apps / Managed Environment API versions used in generated bicep.
- Use
ContainerApp.Kind(stable) for Azure Functions, and use a newer preview API version only when enablingautoConfigureDataProtection. - Refresh a large set of snapshot baselines to the new API versions.
Reviewed changes
Copilot reviewed 79 out of 79 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| Directory.Packages.props | Bumps Azure.Provisioning + Azure.Provisioning.AppContainers versions. |
| src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs | Updates dashboard dotNetComponents resource API version used for ACA environment. |
| src/Aspire.Hosting.Azure.AppContainers/ContainerAppContext.cs | Sets preview Container Apps API version only for autoConfigureDataProtection; uses stable ContainerApp.Kind for Functions. |
| tests/Aspire.Hosting.Azure.Tests/AzureContainerAppsTests.cs | Updates expected default ContainerApp resource version assertion text/value. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddContainerAppEnvironmentAddsDeploymentTargetWithContainerAppToProjectResources.verified.bicep | Snapshot updated to new Container Apps API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddContainerAppEnvironmentAddsEnvironmentResource_useAzdNaming=False.verified.bicep | Snapshot updated to new Managed Environment / related API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddContainerAppEnvironmentAddsEnvironmentResource_useAzdNaming=True.verified.bicep | Snapshot updated to new Managed Environment / related API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddContainerAppEnvironmentWithCompactNamingPreservesUniqueString.verified.bicep | Snapshot updated to new Managed Environment / storage API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddContainerAppsEntrypointAndArgs.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddContainerAppsInfrastructureAddsDeploymentTargetWithContainerAppToContainerResources.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddContainerAppsInfrastructureWithParameterReference.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddDockerfileWithAppsInfrastructureAddsDeploymentTargetWithContainerAppToContainerResources.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AddExecutableResourceWithPublishAsDockerFileWithAppsInfrastructureAddsDeploymentTargetWithContainerAppToContainerResources.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AzureContainerAppsBicepGenerationIsIdempotent.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.AzureContainerAppsMapsPortsForBaitAndSwitchResources.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.BindMountNamesWithHyphensAreNormalized.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.CanCustomizeWithProvisioningBuildOptions.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.CanPreserveHttpSchemeUsingWithHttpsUpgrade.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.CanReferenceContainerAppEnvironment.verified.bicep | Snapshot updated to new Managed Environment API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.CanTweakContainerAppEnvironmentUsingPublishAsContainerAppOnExecutable.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.CompactNamingMultipleVolumesHaveUniqueNames.verified.bicep | Snapshot updated to new Managed Environment / storage API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ConditionalBranchWithParameterReference.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ConditionalExpressionWithParameterCondition.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ConfigureCustomDomainMutatesIngress.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ConfigureDuplicateCustomDomainMutatesIngress.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ConfigureMultipleCustomDomainsMutatesIngress.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ContainerAppEnvironmentWithCustomRegistry#00.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ContainerAppEnvironmentWithCustomRegistry#01.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ContainerAppEnvironmentWithCustomWorkspace#00.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ContainerAppEnvironmentWithCustomWorkspace#01.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ContainerAppEnvironmentWithDashboardDisabled.verified.bicep | Snapshot updated to new Managed Environment API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ContainerAppEnvironmentWithDashboardEnabled.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ContainerAppWithUppercaseName_ShouldUseLowercaseInManifest.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.DefaultHttpIngressUsesPort80EvenWithDifferentDevPort.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.DefaultHttpsIngressUsesPort443EvenWithDifferentDevPort.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.EndpointWithHttp2SetsTransportToH2.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ExternalEndpointBecomesIngress.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.FirstHttpEndpointBecomesIngress.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.KeyVaultReferenceHandling.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.MultipleVolumesHaveUniqueNamesInBicep#01.verified.txt | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.MultipleVolumesHaveUniqueNamesInBicep#03.verified.txt | Snapshot updated to new Managed Environment / storage / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.NestedConditionalExpressions.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ProjectUsesTheTargetPortAsADefaultPortForFirstHttpEndpoint.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ProjectWithManyReferenceTypes#00.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ProjectWithManyReferenceTypesAndContainerAppEnvironment#00.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.PublishAsAzureContainerAppJobParameterlessConfiguresManualTrigger.verified.bicep | Snapshot updated to new Jobs API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.PublishAsContainerAppInfluencesContainerAppDefinition.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.PublishAsContainerAppJobInfluencesContainerAppDefinition.verified.bicep | Snapshot updated to new Jobs API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.PublishAsContainerAppJob_WorksForProjectResource.verified.bicep | Snapshot updated to new Jobs API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.PublishAsScheduledAzureContainerAppJobConfiguresScheduleTrigger.verified.bicep | Snapshot updated to new Jobs API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.RedisWithConditionalConnectionString.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.RedisWithTlsEnabledConditionalConnectionString.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ResourceWithProbes_HttpEndpoint#00.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ResourceWithProbes_HttpEndpoint#01.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ResourceWithProbes_HttpEndpoint_TargetPort#00.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ResourceWithProbes_HttpEndpoint_TargetPort#01.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ResourceWithProbes_HttpsEndpoint_TargetPort_MatchIngress#00.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.ResourceWithProbes_HttpsEndpoint_TargetPort_MatchIngress#01.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.RoleAssignmentsWithAsExisting#00.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.RoleAssignmentsWithAsExistingCosmosDB#00.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.RoleAssignmentsWithAsExistingRedis#00.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.UnknownManifestExpressionProviderIsHandledWithAllocateParameter.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.VolumesAndBindMountsAreTranslation.verified.bicep | Snapshot updated to new Container Apps API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppEnvironmentExtensionsTests.AddAsExistingResource_RespectsExistingAzureResourceAnnotation_ForAzureContainerAppEnvironmentResource.verified.bicep | Snapshot updated to new Managed Environment API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppEnvironmentExtensionsTests.WithAzureLogAnalyticsWorkspace_RespectsExistingWorkspaceInDifferentResourceGroup.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppEnvironmentExtensionsTests.WithDelegatedSubnet_ConfiguresVnetConfiguration.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureEnvironmentResourceTests.WhenUsedWithAzureContainerAppsEnvironment_GeneratesProperBicep#01.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureFunctionsTests.AddAzureFunctionsProject_WorksWithAddAzureContainerAppsInfrastructure#00.verified.bicep | Snapshot updated to new Container Apps (preview) API version and stable kind emission. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_AutoCreatesBothSubnetAndStorage.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_BothExplicitSubnetAndStorage.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_ClearDefaultRoleAssignments_RemovesDeploymentScriptInfra.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_ExplicitStorage_AutoCreatesSubnet.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_ExplicitSubnet_AutoCreatesStorage.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_StorageBeforePrivateEndpoint.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_SubnetBeforePrivateEndpoint.verified.bicep | Snapshot updated to new Managed Environment / dashboard API version(s). |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureUserAssignedIdentityTests.WithAzureUserAssignedIdentity_WithRoleAssignments_MultipleProjects_Works#00.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureUserAssignedIdentityTests.WithAzureUserAssignedIdentity_WithRoleAssignments_MultipleProjects_Works#01.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureUserAssignedIdentityTests.WithAzureUserAssignedIdentity_WithRoleAssignments_Works#00.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
| tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureUserAssignedIdentityTests.WithAzureUserAssignedIdentity_Works.verified.bicep | Snapshot updated to new Container Apps (preview) API version. |
.../Snapshots/AzureUserAssignedIdentityTests.WithAzureUserAssignedIdentity_Works.verified.bicep
Show resolved
Hide resolved
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15450Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15450" |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This supports the latest resource versions.
Checklist