Skip to content

TypeScript AppHost: Add ConfigureCustomDomain API for Azure Container Apps #15706

@davidfowl

Description

@davidfowl

Summary

The ConfigureCustomDomain API for Azure Container Apps is available in C# (experimental, ASPIREACADOMAINS001) but not exposed in the TypeScript AppHost.

C# API

var customDomain = builder.AddParameter("customDomain");
var certificateName = builder.AddParameter("certificateName");

builder.AddProject<Projects.Api>("api")
    .PublishAsAzureContainerApp((infrastructure, app) =>
    {
        ContainerAppExtensions.ConfigureCustomDomain(
            app, customDomain, certificateName);
    });

Expected TypeScript equivalent

const customDomain = builder.addParameter("customDomain");
const certificateName = builder.addParameter("certificateName");

const api = await builder.addProject("api", "../Api/Api.csproj", "http");
await api.publishAsAzureContainerApp(async (infrastructure, app) => {
    configureCustomDomain(app, customDomain, certificateName);
});

Context

This was identified while writing deployment docs at https://github.com/microsoft/aspire.dev. The Azure Container Apps customization page currently notes this API as "not yet available" in TypeScript.

Note: This API is experimental in C# as well (ASPIREACADOMAINS001).

/cc @sebastienros

Metadata

Metadata

Assignees

Labels

area-polyglotIssues related to polyglot apphosts

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions