# Aspire.Hosting.Azure.AppContainers

- Module: `Aspire.Hosting.Azure.AppContainers`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `16`
- Types: `7`

## Handles

- [AzureContainerAppEnvironmentResource](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md) -- `handle` - 8 members
- [AzureLogAnalyticsWorkspaceResource](/reference/api/go/aspire.hosting.azure.appcontainers/azureloganalyticsworkspaceresource.md) -- `handle` - 0 members
- [AzureResourceInfrastructure](/reference/api/go/aspire.hosting.azure.appcontainers/azureresourceinfrastructure.md) -- `handle` - 0 members
- [AzureUserAssignedIdentityResource](/reference/api/go/aspire.hosting.azure.appcontainers/azureuserassignedidentityresource.md) -- `handle` - 0 members
- [ContainerApp](/reference/api/go/aspire.hosting.azure.appcontainers/containerapp.md) -- `handle` - 2 members
- [ContainerAppJob](/reference/api/go/aspire.hosting.azure.appcontainers/containerappjob.md) -- `handle` - 0 members

## DTOs

- [AzureContainerAppScaleConfig](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappscaleconfig.md) -- `struct` - 1 fields -- Polyglot-friendly subset of Azure Container App scale configuration.

## Functions

- [AsExpress](/reference/api/go/aspire.hosting.azure.appcontainers/asexpress.md) -- `method` - on `AzureContainerAppEnvironmentResource` -- Configures the container app environment to publish and deploy HTTP applications using Azure Container Apps Express.
- [WithAcrPullIdentity](/reference/api/go/aspire.hosting.azure.appcontainers/withacrpullidentity.md) -- `method` - on `AzureContainerAppEnvironmentResource` -- Configures the container app environment to use the supplied `AzureUserAssignedIdentityResource` as the managed identity that container apps in the environment use to pull images from the configured container registry (the `AcrPull` identity), instead of having Aspire create a new identity and a new `AcrPull` role assignment.
- [WithAzdResourceNaming](/reference/api/go/aspire.hosting.azure.appcontainers/withazdresourcenaming.md) -- `method` - on `AzureContainerAppEnvironmentResource` -- Configures the container app environment resources to use the same naming conventions as azd.
- [WithAzureLogAnalyticsWorkspace](/reference/api/go/aspire.hosting.azure.appcontainers/withazureloganalyticsworkspace.md) -- `method` - on `AzureContainerAppEnvironmentResource` -- Configures the container app environment resource to use the specified Log Analytics Workspace.
- [WithCompactResourceNaming](/reference/api/go/aspire.hosting.azure.appcontainers/withcompactresourcenaming.md) -- `method` - on `AzureContainerAppEnvironmentResource` -- Configures the container app environment to use compact resource naming that maximally preserves the `uniqueString` suffix for length-constrained Azure resources such as storage accounts.
- [WithDashboard](/reference/api/go/aspire.hosting.azure.appcontainers/withdashboard.md) -- `method` - on `AzureContainerAppEnvironmentResource` -- Configures whether the Aspire dashboard should be included in the container app environment.
- [WithHttpsUpgrade](/reference/api/go/aspire.hosting.azure.appcontainers/withhttpsupgrade.md) -- `method` - on `AzureContainerAppEnvironmentResource` -- Configures whether HTTP endpoints should be upgraded to HTTPS in Azure Container Apps. By default, HTTP endpoints are upgraded to HTTPS for security and WebSocket compatibility.
- [WithUniqueResourceNaming](/reference/api/go/aspire.hosting.azure.appcontainers/withuniqueresourcenaming.md) -- `method` - on `AzureContainerAppEnvironmentResource` -- Configures the container app environment to incorporate its resource name into the generated managed environment `name`, so that multiple environments in the same resource group get distinct names.
- [ConfigureCustomDomain](/reference/api/go/aspire.hosting.azure.appcontainers/configurecustomdomain.md) -- `method` - on `ContainerApp` -- Configures the custom domain for the container app.
- [ConfigureScale](/reference/api/go/aspire.hosting.azure.appcontainers/configurescale.md) -- `method` - on `ContainerApp` -- Configures supported Azure Container App scale settings.
- [PublishAsAzureContainerApp](/reference/api/go/aspire.hosting.azure.appcontainers/publishasazurecontainerapp-containerresource-func-arg1-azureresourceinfrastructure-arg2-containerapp.md) -- `method` - on `ContainerResource` -- Publishes the specified container resource as a container app.
- [AddAzureContainerAppEnvironment](/reference/api/go/aspire.hosting.azure.appcontainers/addazurecontainerappenvironment.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a container app environment resource to the distributed application builder.
- [PublishAsAzureContainerApp](/reference/api/go/aspire.hosting.azure.appcontainers/publishasazurecontainerapp-executableresource-func-arg1-azureresourceinfrastructure-arg2-containerapp.md) -- `method` - on `ExecutableResource` -- Publishes the specified container resource as a container app.
- [PublishAsAzureContainerAppJob](/reference/api/go/aspire.hosting.azure.appcontainers/publishasazurecontainerappjob.md) -- `method` - on `IComputeResource` -- Configures the compute resource as an Azure Container App Job
- [PublishAsScheduledAzureContainerAppJob](/reference/api/go/aspire.hosting.azure.appcontainers/publishasscheduledazurecontainerappjob.md) -- `method` - on `IComputeResource` -- Configures the compute resource as a scheduled Azure Container App Job
- [PublishAsAzureContainerApp](/reference/api/go/aspire.hosting.azure.appcontainers/publishasazurecontainerapp-projectresource-func-arg1-azureresourceinfrastructure-arg2-containerapp.md) -- `method` - on `ProjectResource` -- Allows configuring the specified project resource as a container app.
