Update to latest Azure.Provisioning.AppContainers#15450
Update to latest Azure.Provisioning.AppContainers#15450eerhardt merged 2 commits intomicrosoft:mainfrom
Conversation
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
|
🚀 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 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.
596af4e to
2be5a14
Compare
|
Re-running the failed jobs in the CI workflow for this pull request because 2 jobs were identified as retry-safe transient failures in the CI run attempt.
|
Description
This supports the latest resource versions.
Checklist