Skip to content
Docs Try Aspire

Aspire.Hosting.Azure.AppContainers

Official
📦 Aspire.Hosting.Azure.AppContainers v13.2.0-preview.1.26159.1
49 Functions
16 Types

Types

Functions

function addAzureContainerAppEnvironment builder
Adds an Azure Container App Environment resource
addAzureContainerAppEnvironment(name: string): AzureContainerAppEnvironmentResource
function addAzureContainerRegistry builder
Adds an Azure Container Registry resource to the distributed application model.
addAzureContainerRegistry(name: string): AzureContainerRegistryResource
function addAzureEnvironment builder
Adds the shared Azure environment resource to the application model
addAzureEnvironment(): AzureEnvironmentResource
function addAzureInfrastructure builder
Adds an Azure provisioning resource to the application model
addAzureInfrastructure(name: string, configureInfrastructure: (obj: AzureResourceInfrastructure) => void): AzureProvisioningResource
function addAzureLogAnalyticsWorkspace builder
Adds an Azure Log Analytics Workspace resource
addAzureLogAnalyticsWorkspace(name: string): AzureLogAnalyticsWorkspaceResource
function addAzureProvisioning
Adds Azure provisioning services to the distributed application builder
addAzureProvisioning(): IDistributedApplicationBuilder
function addAzureUserAssignedIdentity builder
Adds an Azure user-assigned identity resource
addAzureUserAssignedIdentity(name: string): AzureUserAssignedIdentityResource
function addBicepTemplate builder
Adds an Azure Bicep template resource from a file
addBicepTemplate(name: string, bicepFile: string): AzureBicepResource
function addBicepTemplateString builder
Adds an Azure Bicep template resource from inline Bicep content
addBicepTemplateString(name: string, bicepContent: string): AzureBicepResource
function asExisting builder
Marks an Azure resource as existing in both run and publish modes
asExisting(nameParameter: ParameterResource, resourceGroupParameter: ParameterResource): IAzureResource
function clearDefaultRoleAssignments builder
Clears the default Azure role assignments from a resource
clearDefaultRoleAssignments(): IAzureResource
function configureInfrastructure builder
Configures the Azure provisioning infrastructure callback
configureInfrastructure(configure: (obj: AzureResourceInfrastructure) => void): AzureProvisioningResource
function getAzureContainerRegistry builder
Gets the Azure Container Registry associated with a compute environment resource.
getAzureContainerRegistry(): AzureContainerRegistryResource
function getBicepIdentifier
Gets the normalized Bicep identifier for an Azure resource
getBicepIdentifier(): string
function getOutput
Gets an output reference from an Azure Bicep template resource
getOutput(name: string): BicepOutputReference
function isExisting
Determines whether a resource is marked as existing
isExisting(): boolean
function publishAsAzureContainerApp builder
Configures the container resource to be published as an Azure Container App
publishAsAzureContainerApp(configure: (arg1: AzureResourceInfrastructure, arg2: ContainerApp) => void): ContainerResource
function publishAsAzureContainerApp builder
Configures the executable resource to be published as an Azure Container App
publishAsAzureContainerApp(configure: (arg1: AzureResourceInfrastructure, arg2: ContainerApp) => void): ExecutableResource
function publishAsAzureContainerApp builder
Configures the project resource to be published as an Azure Container App
publishAsAzureContainerApp(configure: (arg1: AzureResourceInfrastructure, arg2: ContainerApp) => void): ProjectResource
function publishAsAzureContainerAppJob builder
Configures the compute resource as a manually triggered Azure Container App Job
publishAsAzureContainerAppJob(): IComputeResource
function publishAsConfiguredAzureContainerAppJob builder
Configures the compute resource as an Azure Container App Job with custom configuration
publishAsConfiguredAzureContainerAppJob(configure: (arg1: AzureResourceInfrastructure, arg2: ContainerAppJob) => void): IComputeResource
function publishAsConfiguredScheduledAzureContainerAppJob builder
Configures the compute resource as a scheduled Azure Container App Job with custom configuration
publishAsConfiguredScheduledAzureContainerAppJob(cronExpression: string, configure?: (arg1: AzureResourceInfrastructure, arg2: ContainerAppJob) => void): IComputeResource
function publishAsConnectionString builder
Publishes an Azure resource to the manifest as a connection string
publishAsConnectionString(): IAzureResource
function publishAsExisting builder
Marks an Azure resource as existing in publish mode
publishAsExisting(name: string, resourceGroup: string): IAzureResource
function publishAsExistingFromParameters builder
Marks an Azure resource as existing in publish mode by using parameter resources
publishAsExistingFromParameters(nameParameter: ParameterResource, resourceGroupParameter: ParameterResource): IAzureResource
function publishAsScheduledAzureContainerAppJob builder
Configures the compute resource as a scheduled Azure Container App Job
publishAsScheduledAzureContainerAppJob(cronExpression: string): IComputeResource
function runAsExisting builder
Marks an Azure resource as existing in run mode
runAsExisting(name: string, resourceGroup: string): IAzureResource
function runAsExistingFromParameters builder
Marks an Azure resource as existing in run mode by using parameter resources
runAsExistingFromParameters(nameParameter: ParameterResource, resourceGroupParameter: ParameterResource): IAzureResource
function withAzdResourceNaming builder
Configures resources to use azd naming conventions
withAzdResourceNaming(): AzureContainerAppEnvironmentResource
function withAzureContainerRegistry builder
Configures a compute environment resource to use an Azure Container Registry.
withAzureContainerRegistry(registryBuilder: AzureContainerRegistryResource): IResource
function withAzureLogAnalyticsWorkspace builder
Configures the container app environment to use a specific Log Analytics Workspace
withAzureLogAnalyticsWorkspace(workspaceBuilder: AzureLogAnalyticsWorkspaceResource): AzureContainerAppEnvironmentResource
function withAzureUserAssignedIdentity builder
Associates an Azure user-assigned identity with a compute resource
withAzureUserAssignedIdentity(identityResourceBuilder: AzureUserAssignedIdentityResource): IComputeResource
function withCompactResourceNaming builder
Configures resources to use compact naming for length-constrained Azure resources
withCompactResourceNaming(): AzureContainerAppEnvironmentResource
function withContainerRegistryRoleAssignments builder
Assigns Azure Container Registry roles to a resource.
withContainerRegistryRoleAssignments(target: AzureContainerRegistryResource, roles: AzureContainerRegistryRole[]): IResource
function withDashboard builder
Configures whether the Aspire dashboard is included in the container app environment
withDashboard(enable?: boolean): AzureContainerAppEnvironmentResource
function withEnvironmentFromKeyVaultSecret builder
Sets an environment variable from an Azure Key Vault secret reference
withEnvironmentFromKeyVaultSecret(name: string, secretReference: IAzureKeyVaultSecretReference): IResourceWithEnvironment
function withEnvironmentFromOutput builder
Sets an environment variable from a Bicep output reference
withEnvironmentFromOutput(name: string, bicepOutputReference: BicepOutputReference): IResourceWithEnvironment
function withHttpsUpgrade builder
Configures whether HTTP endpoints are upgraded to HTTPS
withHttpsUpgrade(upgrade?: boolean): AzureContainerAppEnvironmentResource
function withLocation builder
Sets the Azure location for the shared Azure environment resource
withLocation(location: ParameterResource): AzureEnvironmentResource
function withParameter builder
Adds a Bicep parameter without a value
withParameter(name: string): AzureBicepResource
function withParameterFromConnectionString builder
Adds a Bicep parameter from a connection string resource builder
withParameterFromConnectionString(name: string, value: IResourceWithConnectionString): AzureBicepResource
function withParameterFromEndpoint builder
Adds a Bicep parameter from an endpoint reference
withParameterFromEndpoint(name: string, value: EndpointReference): AzureBicepResource
function withParameterFromOutput builder
Adds a Bicep parameter from another Bicep output reference
withParameterFromOutput(name: string, value: BicepOutputReference): AzureBicepResource
function withParameterFromParameter builder
Adds a Bicep parameter from a parameter resource builder
withParameterFromParameter(name: string, value: ParameterResource): AzureBicepResource
function withParameterFromReferenceExpression builder
Adds a Bicep parameter from a reference expression
withParameterFromReferenceExpression(name: string, value: ReferenceExpression): AzureBicepResource
function withParameterStringValue builder
Adds a Bicep parameter with a string value
withParameterStringValue(name: string, value: string): AzureBicepResource
function withParameterStringValues builder
Adds a Bicep parameter with a string list value
withParameterStringValues(name: string, value: string[]): AzureBicepResource
function withPurgeTask builder
Configures a purge task for the Azure Container Registry resource.
withPurgeTask(schedule: string, filter?: string, ago?: timespan, keep?: number, taskName?: string): AzureContainerRegistryResource
function withResourceGroup builder
Sets the Azure resource group for the shared Azure environment resource
withResourceGroup(resourceGroup: ParameterResource): AzureEnvironmentResource

Enums