Skip to content

Add experimental Azure Container Apps Express support - #20115

Merged
Eric Erhardt (eerhardt) merged 13 commits into
mainfrom
eerhardt-aca-express-support
Sep 17, 2026
Merged

Eric Erhardt (eerhardt) merged 13 commits into
mainfrom
eerhardt-aca-express-support

Conversation

@eerhardt

@eerhardt Eric Erhardt (eerhardt) commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Description

Add experimental, opt-in Azure Container Apps Express deployment support for HTTP applications, without replacing the existing Container Apps environment API.

Users select .AsExpress() on an environment in C# or TypeScript. Express is emitted as properties.environmentMode: "Express" on Microsoft.App/managedEnvironments — it is not a separate Aspire environment type, package, publisher, or CLI command. Environments without .AsExpress() keep their existing behavior and generated artifacts, and local aspire run orchestration is unchanged.

Express defaults to zero minimum replicas and omits the implicit Consumption workload profile, managed Aspire dashboard, and .NET platform data-protection configuration. Explicit customization is preserved and passed to Azure to validate; Aspire does not maintain an Express service-capability matrix.

App-to-app references resolve to https://<app-name>.<environment-default-domain>, exactly as standard Container Apps already does.

Fixes #19034

User-facing usage

C# AppHost:

#pragma warning disable ASPIREACAEXPRESS001
builder.AddAzureContainerAppEnvironment("env").AsExpress();
#pragma warning restore ASPIREACAEXPRESS001

var api = builder.AddProject<Projects.Api>("api")
    .WithExternalHttpEndpoints();

builder.AddProject<Projects.Frontend>("frontend")
    .WithExternalHttpEndpoints()
    .WithReference(api);

TypeScript AppHost:

await builder.addAzureContainerAppEnvironment("env").asExpress();

const api = await builder.addCSharpApp("api", "../Api/Api.csproj")
    .withExternalHttpEndpoints();

await builder.addCSharpApp("frontend", "../Frontend/Frontend.csproj")
    .withExternalHttpEndpoints()
    .withReference(api);

Scope and limitations

  • Uses the 2026-03-02-preview API version for the Express environment and its container apps. The pinned Azure.Provisioning.AppContainers does not expose EnvironmentMode, so a small unmodeled-property shim emits it without adding dependencies. It is marked for removal once the SDK models the property.
  • Express has no private .internal hostname, so referencing an internal-only endpoint fails with guidance to expose it explicitly or use a standard environment. WithReference never makes a private endpoint public.
  • AsExpress() combined with WithHttpsUpgrade(false) is rejected during Bicep generation, in either call order, because Express requires HTTPS ingress.
  • Existing environments can be declared Express with .AsExisting(...).AsExpress(). This is an AppHost-author declaration; Aspire does not verify or convert the deployed environment's mode.
  • Azure's Express documentation currently lists Aspire as unsupported. This experimental integration does not change Azure's support policy.

Security considerations

Express references use public HTTPS endpoints. Both the referencing app and the referenced API must be explicitly exposed with WithExternalHttpEndpoints(); WithReference neither exposes a private endpoint nor adds authentication, so applications must enforce their own authorization.

Existing secure-parameter/manual-secret handling and user-assigned managed-identity ACR pulls are preserved — secrets remain secretRef values rather than literal environment variables. Security review should confirm the public-reference behavior and secret handling.

Validation

  • 234 ACA/Express tests, the full 1,900+ Aspire.Hosting.Azure.Tests project, and 115 TypeScript scanner/generator tests pass. The deployment E2E project builds clean, and generated Express Bicep compiles to ARM.
  • Live Azure preflight found that the service advertises 2026-03-02-preview rather than the 2026-07-01 version present in the REST spec; the implementation was corrected to the advertised preview API.
  • Full project-based Azure E2E passed in West US 3 using an isolated CLI and matching packages built from this branch: real project image builds, ACR pushes, private-registry pulls via user-assigned managed identity, environmentMode: Express, zero minimum replicas, actual HTTPS frontend→API calls with a shared secret, HTTP 401 on missing/wrong secret, stable URLs across an application image update, and deployment-summary URLs. Verified independently against the provider afterwards.
  • Hostname synthesis was verified against that live environment: the deployed environment reports defaultDomain, and both app FQDNs are exactly <app>.<defaultDomain>.
  • aspire publish was re-verified against the same app after the final design change and now produces a complete, bindable main.bicep for the inter-app reference.

Notes for reviewers

An earlier revision passed each app's deployed ingress.fqdn between apps as a Bicep output. That was replaced with the standard default-domain synthesis after confirming against a live Express environment that the conventional hostname holds. The simplification removed the per-app FQDN output, cross-app deployment ordering, circular-reference validation, and a publishing restriction — aspire publish and azd now work for Express inter-app references, and AzurePublishingContext.cs is untouched by this PR.

Two known items are intentionally out of scope:

  • Hostname synthesis uses the Aspire resource name. A user who overrides the provisioned ContainerApp.Name through a custom name resolver gets a reference that does not match the deployed app — this is pre-existing standard Container Apps behavior that Express now shares, not something introduced here.
  • Express restricts its own ingress, not the schemes an app calls outbound, so an http:// reference to another environment's endpoint is passed through rather than rejected.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 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 -- 20115

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20115"

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot September 14, 2026 15:19
@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Sep 14, 2026
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

One or more issues must be addressed before approval.

Pull request overview

Adds opt-in experimental Azure Container Apps Express support while preserving standard ACA behavior.

Changes:

  • Adds C# and TypeScript AsExpress() APIs and generated bindings.
  • Adds Express-specific provisioning defaults and FQDN-based deployment dependencies.
  • Adds unit, snapshot, and deployment E2E coverage.
File summaries
File Description
tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/AzureContainerAppExpressGeneratedAspire.verified.ts Updated as part of this pull request.
tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/AtsTypeScriptCodeGeneratorTests.cs Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureDeployerTests.DeployAsync_WithExpressPublicReferences_UsesActualFqdnsAndDependencyOrder_existing=True.verified.txt Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureDeployerTests.DeployAsync_WithExpressPublicReferences_UsesActualFqdnsAndDependencyOrder_existing=False.verified.txt Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPublishesEnvironment_existing=True.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPublishesEnvironment_existing=True.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPublishesEnvironment_existing=False.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPublishesEnvironment_existing=False.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressProjectPreservesExplicitReplicaSettings_replicas=null_customMinimum=null.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressProjectPreservesExplicitReplicaSettings_replicas=null_customMinimum=null.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressProjectPreservesExplicitReplicaSettings_replicas=3_customMinimum=null.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressProjectPreservesExplicitReplicaSettings_replicas=3_customMinimum=null.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressProjectPreservesExplicitReplicaSettings_replicas=3_customMinimum=2.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressProjectPreservesExplicitReplicaSettings_replicas=3_customMinimum=2.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesParameterizedSettingsAndDisabledFeatures.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesManualSecretsIdentityAndSupportedCustomization.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesManualSecretsIdentityAndSupportedCustomization.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesKeyVaultSecretReferences.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesExplicitDashboardRegardlessOfCallOrder_expressFirst=True.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesExplicitDashboardRegardlessOfCallOrder_expressFirst=False.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesEnvironmentCustomization.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressDefaultsAreEnvironmentLocal#standard.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressDefaultsAreEnvironmentLocal.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.PublicReferencesUseIngressFqdnAndPreserveSelfTargetPort#api.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.PublicReferencesUseIngressFqdnAndPreserveSelfTargetPort.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.PublicReferencesUseIngressFqdnAndPreserveSelfTargetPort.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.OnlyExpressConsumersRejectPreservedHttpFromStandardEndpoints_expressConsumer=False.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.OnlyExpressConsumersRejectPreservedHttpFromStandardEndpoints_expressConsumer=False.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.ExpressConsumerUsesPublicStandardEndpoints.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.ExpressConsumerUsesPublicStandardEndpoints.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.DeploymentSummaryUsesActualFqdnWithoutEnvironmentDomainOrDashboard.verified.txt Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.CrossEnvironmentReferencesRequireNativeDeployment_expressConsumer=True.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.CrossEnvironmentReferencesRequireNativeDeployment_expressConsumer=True.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.CrossEnvironmentReferencesRequireNativeDeployment_expressConsumer=False.verified.json Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.CrossEnvironmentReferencesRequireNativeDeployment_expressConsumer=False.verified.bicep Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/AzureDeployerTests.cs Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/AzureContainerAppExpressTests.cs Updated as part of this pull request.
tests/Aspire.Hosting.Azure.Tests/AzureContainerAppExpressEndpointTests.cs Updated as part of this pull request.
tests/Aspire.Deployment.EndToEnd.Tests/AcaExpressDeploymentTests.cs Updated as part of this pull request.
src/Aspire.Hosting.Azure/AzurePublishingContext.cs Updated as part of this pull request.
src/Aspire.Hosting.Azure.AppContainers/README.md Updated as part of this pull request.
src/Aspire.Hosting.Azure.AppContainers/ContainerAppEnvironmentContext.cs Updated as part of this pull request.
src/Aspire.Hosting.Azure.AppContainers/ContainerAppContext.cs Updated as part of this pull request.
src/Aspire.Hosting.Azure.AppContainers/BaseContainerAppContext.cs Updated as part of this pull request.
src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppResource.cs Updated as part of this pull request.
src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs Updated as part of this pull request.
src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExpressSupport.cs Updated as part of this pull request.
src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppEnvironmentResource.cs Updated as part of this pull request.
Review details

Suppressed comments (4)

src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppEnvironmentResource.cs:415

  • This method also serves standard Container Apps, whose ContainerAppContext supports non-HTTP TCP endpoints as additional ports (ContainerAppContext.cs:271-284). The unconditional https/443 fallback here makes GetEndpointPropertyExpression report the wrong scheme and port for those endpoints, so a standard TCP reference no longer matches the published binding. Restrict the HTTPS normalization to HTTP/HTTP2 transports and preserve the declared TCP scheme and exposed port.
        var scheme = PreserveHttpEndpoints ? endpoint.UriScheme : "https";
        var port = string.Equals(scheme, "http", StringComparison.OrdinalIgnoreCase) ? 80 : 443;
        var tlsEnabled = string.Equals(scheme, "https", StringComparison.OrdinalIgnoreCase) || endpoint.TlsEnabled;

src/Aspire.Hosting.Azure.AppContainers/ContainerAppContext.cs:110

  • AddIngress returns without assigning Configuration.Ingress when the resource has no HTTP or additional ports, so this unconditional access throws a NullReferenceException while generating an Express app with no ingress. Guard the output on a non-null ingress (or report a deliberate unsupported-application error) instead of failing during Bicep generation.
                Value = containerAppResource.Configuration.Ingress.Fqdn

src/Aspire.Hosting.Azure.AppContainers/ContainerAppContext.cs:251

  • With AsExpress().WithHttpsUpgrade(false), the scheme selected above remains http, but this new IsExpress || branch reports TLS as enabled and the generated public URL/reference is still http://.... Express does not support insecure HTTP ingress, so this combination can produce invalid/inconsistent bindings; reject the incompatible override or make Express consistently emit HTTPS, including in GetEndpointPropertyExpression.
                    _containerAppEnvironmentContext.Environment.IsExpress || endpoint.TlsEnabled);

tests/Aspire.Deployment.EndToEnd.Tests/AcaExpressDeploymentTests.cs:111

  • This live redeployment assertion changes only the API image. The PR description identifies a separate configuration-only update as still failing, so this is not coverage for the other redeployment path that can regress FQDN output propagation and consumer bindings. Add a deterministic configuration-only change and verify its effect through the frontend, or keep the Express deployment scenario blocked until that path is fixed and covered.
                await DeployAsync(auto, counter, "updated-deployment.txt", clearCache: false);
  • Files reviewed: 48/48 changed files
  • Comments generated: 0
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Two critical HTTPS-handling findings and one moderate Express job-target validation finding remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (1)

src/Aspire.Hosting.Azure.AppContainers/ContainerAppEnvironmentContext.cs:92

  • Azure Container Apps Express does not support Container Apps Jobs, but this branch is selected for every resource in the environment, including resources with AzureContainerAppJobCustomizationAnnotation. A .PublishAsAzureContainerAppJob() therefore emits a job deployment target pointing at an Express environment and only fails later during Azure validation. Reject job-targeted resources during Express preparation (with actionable guidance to use a standard environment) or otherwise prevent them from being assigned to Express.
        var provisioningResource = Environment.IsExpress
            ? Environment.GetOrCreateExpressContainerAppResource(resource)
            : new AzureContainerAppResource(resource.Name + "-containerapp", context.BuildContainerApp, resource);
  • Files reviewed: 48/48 changed files
  • Comments generated: 2
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

This comment has been minimized.

@eerhardt Eric Erhardt (eerhardt) left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Review of the experimental ACA Express support. Verified the production diff against surrounding code, existing standard-ACA snapshots, and the new tests.

Findings: 1 bug, 1 test-coverage gap, 1 low-severity inconsistency.

Not flagged: the generated TypeScript has no @experimental marker (the ATS generator has no experimental concept at all, so that's a framework-wide gap, not something this PR introduces), and WithDashboard(true) being honored under Express (deliberate — Azure validates service compatibility).

Also verified clean: no api/*.cs, NuGet.config, global.json, or .xlf edits; no == null; deployment-tests.yml auto-enumerates test classes via .github/actions/enumerate-tests, so AcaExpressDeploymentTests is picked up without a test-trigger-map.yml change; and the new AzurePublishingContext guard strictly improves a path that previously threw a bare KeyNotFoundException.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Four unresolved moderate review findings remain in Express validation, ingress handling, job support, and E2E secret coverage.

Review details

Suppressed comments (4)

Previously missed (1) — in code that hasn't changed since the last review.

src/Aspire.Hosting.Azure.AppContainers/ContainerAppContext.cs:112

  • AddIngress leaves Configuration.Ingress null when an app has no endpoints, but every regular container app in an Express environment dereferences Configuration.Ingress.Fqdn here. Consequently, adding a worker/container without an HTTP endpoint to an Express environment fails target generation with a NullReferenceException; only emit this output when ingress exists, since it is needed only for public endpoint references.

src/Aspire.Hosting.Azure.AppContainers/ContainerAppContext.cs:130

  • This Express branch only changes the resource API version; endpoint processing still accepts internal TCP and HTTP/2 endpoints and AddIngress emits them unchanged. Express does not support TCP ingress, additional ingress ports, or HTTP/2, so WithHttp2Endpoint or an internal TCP endpoint under AsExpress() produces an invalid deployment that is discovered only by Azure. Add Express-specific validation before generating the ingress.
        if (_containerAppEnvironmentContext.Environment.IsExpress)
        {
            containerApp.ResourceVersion = AzureContainerAppExpressSupport.ResourceVersion;

src/Aspire.Hosting.Azure.AppContainers/ContainerAppEnvironmentContext.cs:92

  • AsExpress() is applied to every compute resource here, including resources that CreateContainerAppContext maps to ContainerAppJobContext. Azure Container Apps Express does not support Container Apps Jobs, so an AppHost that publishes a job under this environment generates a job module and only fails at provider validation. Reject job targets during Express validation with guidance to use a standard ACA environment instead.
        var provisioningResource = Environment.IsExpress
            ? Environment.GetOrCreateExpressContainerAppResource(resource)
            : new AzureContainerAppResource(resource.Name + "-containerapp", context.BuildContainerApp, resource);

tests/Aspire.Deployment.EndToEnd.Tests/AcaExpressDeploymentTests.cs:376

  • Please also send a request with a non-empty but incorrect X-Express-Test-Secret before returning. This currently verifies only an absent header, so the E2E test would not catch a regression that accepts wrong credentials despite the PR's stated wrong-secret validation.
                        using var unauthenticated = await client.GetAsync(urls["api"], readiness.Token);
                        Assert.Equal(HttpStatusCode.Unauthorized, unauthenticated.StatusCode);
  • Files reviewed: 48/48 changed files
  • Comments generated: 0 new
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved critical and moderate findings remain in endpoint naming, transport validation, and secret-validation coverage.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppEnvironmentResource.cs:402

  • This normalizes every cross-environment endpoint to HTTP/HTTPS ports, even when the endpoint is TCP or an additional non-HTTP port. A standard ACA resource using a TCP endpoint across environments will therefore receive https/443 (or 443 for Port) instead of its configured scheme and port, while same-environment mappings preserve those values. Restrict the HTTPS/80/443 normalization to HTTP/HTTP2 ingress endpoints and retain the endpoint's configured scheme/port for other transports.
        var scheme = PreserveHttpEndpoints ? endpoint.UriScheme : "https";
        var port = string.Equals(scheme, "http", StringComparison.OrdinalIgnoreCase) ? 80 : 443;
        var tlsEnabled = string.Equals(scheme, "https", StringComparison.OrdinalIgnoreCase) || endpoint.TlsEnabled;

src/Aspire.Hosting.Azure.AppContainers/README.md:55

  • This behavior conflicts with the PR description's security statement that both the frontend and referenced API must be explicitly exposed: PublicReferencesUseEnvironmentDomainAndPreserveSelfTargetPort deliberately uses an internal-only consumer, so this validation only requires the referenced endpoint to be public. Azure Express supports internal ingress, so either correct the PR description to state that only referenced endpoints must be public, or enforce the stronger requirement consistently.
Opt in on the existing environment builder. Public app-to-app references require an explicit public endpoint on the **referenced API**, not just the frontend:

tests/Aspire.Deployment.EndToEnd.Tests/AcaExpressDeploymentTests.cs:376

  • The live test claims to validate 401 responses for both missing and wrong secrets, but this request only omits the header. A regression that accepts any non-empty secret would still pass; add a second request with X-Express-Test-Secret set to an incorrect value and assert Unauthorized.
                        using var unauthenticated = await client.GetAsync(urls["api"], readiness.Token);
                        Assert.Equal(HttpStatusCode.Unauthorized, unauthenticated.StatusCode);
  • Files reviewed: 51/51 changed files
  • Comments generated: 2
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot September 14, 2026 23:10
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Update the TypeScript metadata test and clarify the documented endpoint contract.

Review details

Suppressed comments (2)

src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs:1031

  • This public documentation overstates the Express reference contract: the implementation and ExpressConsumerUsesPublicStandardEndpoints test allow an Express consumer with only WithHttpEndpoint() (no WithExternalHttpEndpoints()) to call a public endpoint, and cross-environment references preserve a standard producer's http scheme. Please document that the referenced endpoint must be public, and that HTTPS/scheme preservation depends on the producing environment.
    /// App-to-app references require explicitly public HTTP endpoints and use their HTTPS URLs.

tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/AtsTypeScriptCodeGeneratorTests.cs:1667

  • AsExpress is marked [Experimental("ASPIREACAEXPRESS001")], but this test only checks that the capability and method are emitted. It would still pass if the scanner dropped the experimental flag, leaving TypeScript consumers without the expected @experimental metadata for this opt-in API; assert capability.IsExperimental (and the generated marker if desired) here.
  • Files reviewed: 36/36 changed files
  • Comments generated: 0 new
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

@mitchdenny Mitch Denny (mitchdenny) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved, with one potential cross-provider endpoint-resolution issue noted inline for follow-up.

Fix a problem when referencing across environments. Check for cross environment first before validating the endpoint reference for the current environment.
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Cross-environment Express consumers can bypass private-endpoint validation; documentation and test coverage follow-ups also remain.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (1)

tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/AtsTypeScriptCodeGeneratorTests.cs:1673

  • This test only checks scanner metadata and a generated declaration; it does not invoke asExpress() through the generated TypeScript/ATS RPC path. The existing TypeScript deployment scenario also adds a standard environment without this call, so a dispatch/projection regression could leave TypeScript users unable to select Express while these assertions still pass. Add a focused TypeScript AppHost/dispatch test (or extend the existing TypeScript deployment scenario) that calls .asExpress() and verifies the Express environment output.
  • Files reviewed: 39/41 changed files
  • Comments generated: 3
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Clarified app-to-app reference requirements and HTTPS usage.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Public endpoint guidance, TypeScript activation coverage, and integration documentation need updates.

Review details

Suppressed comments (3)

Previously missed (2) — in code that hasn't changed since the last review.

tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/AtsTypeScriptCodeGeneratorTests.cs:1673

  • This only checks that the generator emits a declaration; no TypeScript AppHost in tests/PolyglotAppHosts/Aspire.Hosting.Azure.AppContainers/TypeScript/apphost.mts invokes asExpress(). An RPC/export-dispatch regression could therefore leave this assertion green while TypeScript users cannot activate Express. Add the call to the existing TypeScript AppHost and exercise the generated path.
    src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs:1024
  • Because this adds a new exported deployment mode, the integration README is now materially incomplete: it documents only the standard environment and does not show .AsExpress() for C# or TypeScript or the public-HTTPS, experimental/default behavior described here. Please add an Express section covering usage, access/security, publish/deploy behavior, and known limitations instead of leaving that guidance only in the PR description.

tests/Aspire.Hosting.Azure.Tests/AzureContainerAppExpressEndpointTests.cs:35

  • This test deliberately leaves web without WithExternalHttpEndpoints() while still resolving its reference to the public api. That contradicts the PR's security section, which says both the referencing and referenced apps must be explicitly exposed; either enforce that stronger rule or correct the guidance to say only the producer endpoint must be public.
        var web = builder.AddProject("web", "web.csproj", options => options.ExcludeLaunchProfile = true)
            .WithHttpEndpoint()
            .WithReference(api);
  • Files reviewed: 39/41 changed files
  • Comments generated: 0 new
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

8 / 99 PR test projects · 2 PR jobs, from 43 changed files.

Selected PR test projects (8 / 99)

Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.CodeGeneration.TypeScript.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests

Selected PR jobs (2)

polyglot, typescript-api-compat


How these were chosen — grouped by what changed

🔧 src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppEnvironmentResource.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests
→ 5 via the project graph: Aspire.Hosting.Blazor.Tests (2 hops), Aspire.Hosting.Dotnet.Tests (2 hops), Aspire.Hosting.Radius.Tests (2 hops), Aspire.Hosting.Tests, Aspire.Playground.Tests (2 hops)

🧪 tests/Aspire.Hosting.Azure.Tests/AzureContainerAppExpressEndpointTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests
→ 1 via the project graph: Aspire.Hosting.Azure.Kubernetes.Tests

🔧 src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExpressSupport.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.AppContainers/BaseContainerAppContext.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.AppContainers/ContainerAppContext.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.AppContainers/ContainerAppEnvironmentContext.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/AzureContainerAppExpressTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/AzureContainerAppsTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/AzureDeployerTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.ConsumersAcceptPreservedHttpFromStandardEndpoints_expressConsumer=False.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.ConsumersAcceptPreservedHttpFromStandardEndpoints_expressConsumer=True.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.CrossEnvironmentReferencesPublishUsingTheProducerDomain_expressConsumer=False.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.CrossEnvironmentReferencesPublishUsingTheProducerDomain_expressConsumer=True.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.DeploymentSummaryUsesEnvironmentDomainWithoutDashboard.verified.txt (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.ExpressConsumerUsesPublicStandardEndpoints.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.ExpressConsumerUsesPublicStandardEndpoints.verified.json (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.PublicReferencesUseEnvironmentDomainAndPreserveSelfTargetPort.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.PublicReferencesUseEnvironmentDomainAndPreserveSelfTargetPort.verified.json (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.SelfPublicUrlReferencesUseTheEnvironmentDomain_environmentExpression=False.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressEndpointTests.SelfPublicUrlReferencesUseTheEnvironmentDomain_environmentExpression=True.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressDefaultsAreEnvironmentLocal#standard.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressDefaultsAreEnvironmentLocal.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesEnvironmentCustomization.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesExplicitDashboardRegardlessOfCallOrder.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesKeyVaultSecretReferences.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesManualSecretsIdentityAndSupportedCustomization.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesManualSecretsIdentityAndSupportedCustomization.verified.json (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPreservesParameterizedSettingsAndDisabledFeatures.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressProjectPreservesExplicitReplicaSettings_replicas=3_customMinimum=2.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressProjectPreservesExplicitReplicaSettings_replicas=3_customMinimum=null.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressProjectPreservesExplicitReplicaSettings_replicas=null_customMinimum=null.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPublishesExistingEnvironment.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressPublishesExistingEnvironment.verified.json (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppExpressTests.AsExpressSupportsResourcesWithoutEndpoints.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.EndpointReferenceToFoundryHostedAgentIsResolvedAcrossComputeEnvironments.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.EndpointReferenceToFoundryHostedAgentIsResolvedAcrossComputeEnvironments.verified.json (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.EndpointReferenceToFoundryHostedAgentIsResolvedAcrossComputeEnvironments_useExpress=False.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.EndpointReferenceToFoundryHostedAgentIsResolvedAcrossComputeEnvironments_useExpress=False.verified.json (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.EndpointReferenceToFoundryHostedAgentIsResolvedAcrossComputeEnvironments_useExpress=True.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.EndpointReferenceToFoundryHostedAgentIsResolvedAcrossComputeEnvironments_useExpress=True.verified.json (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/AtsTypeScriptCodeGeneratorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.TypeScript.Tests

Job reasons

Job Triggered by
polyglot affected project Aspire.Hosting.Azure.AppContainers
typescript-api-compat affected project Aspire.Hosting.Azure.AppContainers

Selection computed for commit 376413d.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

A moderate TypeScript fixture-coverage change remains, and the experimental Azure deployment changes warrant human review.

Review details

Suppressed comments (1)

src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs:1043

  • This adds a new exported TypeScript capability, but the new assertion only checks that a method declaration string is emitted. The checked-in AppContainers polyglot fixtures do not call asExpress(), so the polyglot validation job cannot catch a generated-SDK dispatch or fluent-chain problem in the advertised TypeScript usage. Add the call to the relevant tests/PolyglotAppHosts/Aspire.Hosting.Azure.AppContainers/* fixtures (at least TypeScript) so the existing validation exercises the export end to end.
    [AspireExport]
    [Experimental("ASPIREACAEXPRESS001", UrlFormat = "https://aka.ms/aspire/diagnostics/{0}")]
    public static IResourceBuilder<AzureContainerAppEnvironmentResource> AsExpress(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder)
  • Files reviewed: 39/41 changed files
  • Comments generated: 0 new
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ CI Failure Analysis: Possible Flaky Test(s)

The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests.

Suspected flaky test(s):

  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationCreatesThePrincipalWithTheIdentityObjectIdAsItsSid in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint busy_bardeen: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in /_/src/Docker.DotNet/DockerClient.cs:line 494
   at Docker.DotNet.DockerClient.MakeRequestAsync[T](...) in /_/src/Docker.DotNet/DockerClient.cs:line 246
   at Docker.DotNet.ContainerOperations.StartContainerAsync(...) in /_/src/Docker.DotNet/Endpoints/ContainerOperations.cs:line 201
   at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Azure.Tests/SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Docker port 1433 conflict on shared CI runner, unrelated to PR changes to Azure Container Apps Express code.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationHandlesPrincipalNamesRequiringEscaping in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint busy_bardeen: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in /_/src/Docker.DotNet/DockerClient.cs:line 494
   at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Azure.Tests/SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Docker port 1433 conflict on shared CI runner, unrelated to PR changes to Azure Container Apps Express code.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationIsANoOpWhenTheScriptRunsAgain in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint busy_bardeen: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in /_/src/Docker.DotNet/DockerClient.cs:line 494
   at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Azure.Tests/SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Docker port 1433 conflict on shared CI runner, unrelated to PR changes to Azure Container Apps Express code.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationReplacesThePrincipalWhenTheIdentityObjectIdChanges in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint busy_bardeen: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in /_/src/Docker.DotNet/DockerClient.cs:line 494
   at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Azure.Tests/SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Docker port 1433 conflict on shared CI runner, unrelated to PR changes to Azure Container Apps Express code.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationLeavesPrincipalsItDidNotCreateIntact in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint busy_bardeen: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in /_/src/Docker.DotNet/DockerClient.cs:line 494
   at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Azure.Tests/SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Docker port 1433 conflict on shared CI runner, unrelated to PR changes to Azure Container Apps Express code.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationRollsBackWhenTheUserCannotBeRecreated in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint busy_bardeen: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in /_/src/Docker.DotNet/DockerClient.cs:line 494
   at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Azure.Tests/SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Docker port 1433 conflict on shared CI runner, unrelated to PR changes to Azure Container Apps Express code.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationFailsWithoutDamageWhenThePrincipalOwnsASchema in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint busy_bardeen: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in /_/src/Docker.DotNet/DockerClient.cs:line 494
   at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Azure.Tests/SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Docker port 1433 conflict on shared CI runner, unrelated to PR changes to Azure Container Apps Express code.
  • Aspire dynamic debug configuration E2E "after each" hook for "re-resolves the selected AppHost by dynamic configuration name in duplicate-alias workspaces" in job Tests / Run VS Code extension E2E tests / VS Code extension E2E (Windows, dynamic-debug-configuration)
    • Error: Dynamic debug configuration E2E teardown failed. 1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-ILqkHN\workspace.e2e-dynamic-debug\first'
    • Stack Trace (first frames):
AggregateError: Dynamic debug configuration E2E teardown failed.
1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-ILqkHN\workspace\.e2e-dynamic-debug\first'
    at runE2eTeardown (out\test-e2e\test-e2e\helpers\fixtures.js:217:15)
    at async Context.<anonymous> (out\test-e2e\test-e2e\dynamicDebugConfiguration.e2e.test.js:62:9)
  • Why likely flaky: Windows temp directory file locking (EBUSY) during E2E teardown, a known intermittent issue unrelated to the PR's Azure Container Apps Express changes.

Suggested actions:

  • Re-run the failed CI jobs to confirm if the failure is intermittent
  • If the test continues to fail, consider quarantining it using /quarantine-test <test name> <issue URL>
  • Search existing issues to see if this test is already known to be flaky

You can re-run the failed jobs from the workflow run page.

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

Step 5 branch taken: docs_required -> already documented by name

Triggered signals (2): experimental_attribute_added, pr_body_has_user_facing_section

Both signals fired because this PR adds the [Experimental("ASPIREACAEXPRESS001")] attribute to the new AsExpress() API and the PR body includes a ### User-facing usage section demonstrating AsExpress() in C# and TypeScript. However, the target branch release/13.6 on microsoft/aspire.dev already documents this exact experimental surface by name:

  • src/frontend/src/content/docs/diagnostics/aspireacaexpress001.mdx - a full diagnostic page titled "Compiler Error ASPIREACAEXPRESS001" that shows the AsExpress() call producing the error and how to suppress it (matches experimental_attribute_added).
  • src/frontend/src/content/docs/diagnostics/overview.mdx (line 22) - lists ASPIREACAEXPRESS001 in the diagnostics table: "AsExpress is for evaluation purposes only and is subject to change or removal in future updates." (matches experimental_attribute_added).
  • src/frontend/src/content/docs/deployment/azure/container-apps.mdx (lines 357-422) - a dedicated "### Express environments" section documenting AsExpress() with the same C#/TypeScript usage shown in the PR body (AddAzureContainerAppEnvironment("aspire-env").AsExpress() / env.asExpress()), the environmentMode: "Express" emission, scale-to-zero defaults, omitted implicit resources, the no-private-hostname limitation, the WithHttpsUpgrade(false) rejection, and AsExisting().AsExpress() - all matching the PR body's "User-facing usage" and "Scope and limitations" sections verbatim (matches both experimental_attribute_added via the ASPIREACAEXPRESS001 link and pr_body_has_user_facing_section).
  • src/frontend/src/content/docs/whats-new/aspire-13-6.mdx (lines 295-309) - a "### Azure Container Apps Express environments" release-notes entry: "Azure Container Apps environments can opt into the Express preview with AsExpress

(summary truncated)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Azure Container Apps (ACA) Express

3 participants