Skip to content

Update to latest Azure.Provisioning.AppContainers#15450

Merged
eerhardt merged 2 commits intomicrosoft:mainfrom
eerhardt:UpdateACAProvisioning
Mar 25, 2026
Merged

Update to latest Azure.Provisioning.AppContainers#15450
eerhardt merged 2 commits intomicrosoft:mainfrom
eerhardt:UpdateACAProvisioning

Conversation

@eerhardt
Copy link
Member

Description

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.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • [x ] Yes
  • Did you add public API?
    • No
  • Does the change make any security assumptions or guarantees?
    • No
  • Does the change require an update in our Aspire docs?
    • No

Copilot AI review requested due to automatic review settings March 20, 2026 21:48
@eerhardt eerhardt requested a review from mitchdenny as a code owner March 20, 2026 21:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 enabling autoConfigureDataProtection.
  • 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.

@eerhardt eerhardt closed this Mar 20, 2026
@eerhardt eerhardt reopened this Mar 20, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 20, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15450

Or

  • Run remotely in PowerShell:
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.
@eerhardt eerhardt force-pushed the UpdateACAProvisioning branch from 596af4e to 2be5a14 Compare March 24, 2026 13:56
@github-actions
Copy link
Contributor

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.
GitHub was asked to rerun all failed jobs for that attempt, and the rerun is being tracked in the rerun attempt.
The job links below point to the failed attempt jobs that matched the retry-safe transient failure rules.

@eerhardt eerhardt requested a review from sebastienros March 24, 2026 19:17
@eerhardt eerhardt enabled auto-merge (squash) March 24, 2026 19:37
@eerhardt eerhardt merged commit 72bf9ad into microsoft:main Mar 25, 2026
490 of 496 checks passed
@eerhardt eerhardt deleted the UpdateACAProvisioning branch March 25, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants