Skip to content

Add polyglot ACA custom domain support#15811

Merged
sebastienros merged 2 commits intomainfrom
sebros/issue-15706-ts-custom-domain
Apr 3, 2026
Merged

Add polyglot ACA custom domain support#15811
sebastienros merged 2 commits intomainfrom
sebros/issue-15706-ts-custom-domain

Conversation

@sebastienros
Copy link
Copy Markdown
Contributor

Description

Fixes #15706

ConfigureCustomDomain already exists for Azure Container Apps in C#, but the polyglot AppHost surfaces did not expose it. This change exports the existing API through ATS so the generated callback surface can configure custom domains from polyglot AppHosts on ContainerApp, and updates the Azure AppContainers Java, Python, and TypeScript validation AppHosts to exercise that generated API.

This stays narrowly scoped to the existing callback shape rather than introducing a new free-function model, and it removes the stale XML doc text that said polyglot AppHosts were unsupported. No new runtime dependencies were added.

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
  • Does the change require an update in our Aspire docs?

Add the ATS export for ConfigureCustomDomain and update the Azure AppContainers Java, Python, and TypeScript validation AppHosts to exercise the generated callback API.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 2, 2026 20:12
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 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 -- 15811

Or

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

Comment thread src/Aspire.Hosting.Azure.AppContainers/ContainerAppExtensions.cs
Copy link
Copy Markdown
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

This PR exposes the existing Azure Container Apps ConfigureCustomDomain customization API to polyglot AppHosts via ATS exports, and updates the polyglot validation AppHosts to exercise the generated API surface.

Changes:

  • Export ContainerAppExtensions.ConfigureCustomDomain to ATS so it can be invoked on ContainerApp inside polyglot publish callbacks.
  • Update TypeScript, Java, and Python Azure AppContainers validation AppHosts to call the generated configureCustomDomain API.
  • Refresh XML documentation by removing stale “polyglot unsupported” wording and fixing a minor typo.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
tests/PolyglotAppHosts/Aspire.Hosting.Azure.AppContainers/TypeScript/apphost.ts Adds parameter resources and calls app.configureCustomDomain(...) in the ACA publish callback.
tests/PolyglotAppHosts/Aspire.Hosting.Azure.AppContainers/Python/apphost.py Adds parameter resources and calls app.configure_custom_domain(...) in the ACA publish callback.
tests/PolyglotAppHosts/Aspire.Hosting.Azure.AppContainers/Java/AppHost.java Adds parameter resources and calls app.configureCustomDomain(...) in the ACA publish callback.
src/Aspire.Hosting.Azure.AppContainers/ContainerAppExtensions.cs Switches from AspireExportIgnore to AspireExport for ConfigureCustomDomain and updates remarks text.

Comment thread tests/PolyglotAppHosts/Aspire.Hosting.Azure.AppContainers/Python/apphost.py Outdated
Comment thread src/Aspire.Hosting.Azure.AppContainers/ContainerAppExtensions.cs Outdated
Remove the language-specific XML doc note and fix the Python Azure AppContainers validation fixture to keep exercising the Log Analytics overload.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

🎬 CLI E2E Test Recordings — 55 recordings uploaded (commit a90398a)

View recordings
Test Recording
AddPackageInteractiveWhileAppHostRunningDetached ▶️ View Recording
AddPackageWhileAppHostRunningDetached ▶️ View Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
AgentInitCommand_DefaultSelection_InstallsSkillOnly ▶️ View Recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ View Recording
AspireAddPackageVersionToDirectoryPackagesProps ▶️ View Recording
AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ▶️ View Recording
Banner_DisplayedOnFirstRun ▶️ View Recording
Banner_DisplayedWithExplicitFlag ▶️ View Recording
Banner_NotDisplayedWithNoLogoFlag ▶️ View Recording
CertificatesClean_RemovesCertificates ▶️ View Recording
CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate ▶️ View Recording
CertificatesTrust_WithUntrustedCert_TrustsCertificate ▶️ View Recording
ConfigSetGet_CreatesNestedJsonFormat ▶️ View Recording
CreateAndRunAspireStarterProject ▶️ View Recording
CreateAndRunAspireStarterProjectWithBundle ▶️ View Recording
CreateAndRunEmptyAppHostProject ▶️ View Recording
CreateAndRunJavaEmptyAppHostProject ▶️ View Recording
CreateAndRunJsReactProject ▶️ View Recording
CreateAndRunPythonReactProject ▶️ View Recording
CreateAndRunTypeScriptEmptyAppHostProject ▶️ View Recording
CreateAndRunTypeScriptStarterProject ▶️ View Recording
CreateJavaAppHostWithViteApp ▶️ View Recording
CreateStartAndStopAspireProject ▶️ View Recording
CreateTypeScriptAppHostWithViteApp ▶️ View Recording
DescribeCommandResolvesReplicaNames ▶️ View Recording
DescribeCommandShowsRunningResources ▶️ View Recording
DetachFormatJsonProducesValidJson ▶️ View Recording
DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View Recording
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
GlobalMigration_HandlesCommentsAndTrailingCommas ▶️ View Recording
GlobalMigration_HandlesMalformedLegacyJson ▶️ View Recording
GlobalMigration_PreservesAllValueTypes ▶️ View Recording
GlobalMigration_SkipsWhenNewConfigExists ▶️ View Recording
GlobalSettings_MigratedFromLegacyFormat ▶️ View Recording
InvalidAppHostPathWithComments_IsHealedOnRun ▶️ View Recording
LegacySettingsMigration_AdjustsRelativeAppHostPath ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
PsFormatJsonOutputsOnlyJsonToStdout ▶️ View Recording
PublishWithDockerComposeServiceCallbackSucceeds ▶️ View Recording
RestoreGeneratesSdkFiles ▶️ View Recording
RestoreSupportsConfigOnlyHelperPackageAndCrossPackageTypes ▶️ View Recording
RunFromParentDirectory_UsesExistingConfigNearAppHost ▶️ View Recording
RunWithMissingAwaitShowsHelpfulError ▶️ View Recording
SecretCrudOnDotNetAppHost ▶️ View Recording
SecretCrudOnTypeScriptAppHost ▶️ View Recording
StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View Recording
StopAllAppHostsFromAppHostDirectory ▶️ View Recording
StopAllAppHostsFromUnrelatedDirectory ▶️ View Recording
StopNonInteractiveMultipleAppHostsShowsError ▶️ View Recording
StopNonInteractiveSingleAppHost ▶️ View Recording
StopWithNoRunningAppHostExitsSuccessfully ▶️ View Recording
TypeScriptAppHostWithProjectReferenceIntegration ▶️ View Recording

📹 Recordings uploaded automatically from CI run #23920194210

Comment thread src/Aspire.Hosting.Azure.AppContainers/ContainerAppExtensions.cs
@sebastienros sebastienros merged commit 6b7b3a3 into main Apr 3, 2026
263 checks passed
@joperezr joperezr added this to the 13.3 milestone Apr 14, 2026
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.

TypeScript AppHost: Add ConfigureCustomDomain API for Azure Container Apps

4 participants