AzureContainerAppExecutableExtensions Methods
ClassMethods1 member
Provides extension methods for publishing executable resources (with docker files) as container apps in Azure.
PublishAsAzureContainerApp(IResourceBuilder<T>, Action<AzureResourceInfrastructure, ContainerApp>)Section titled PublishAsAzureContainerApp(IResourceBuilder<T>, Action<AzureResourceInfrastructure, ContainerApp>)extensionIResourceBuilder<T> Publishes the specified container resource as a container app.
public static class AzureContainerAppExecutableExtensions{ public static IResourceBuilder<T> PublishAsAzureContainerApp<T>( this IResourceBuilder<T> executable, Action<AzureResourceInfrastructure, ContainerApp> configure) { // ... }}Parameters
executableIResourceBuilder<T>The container resource builder.configureAction<AzureResourceInfrastructure, ContainerApp>The configuration action for the container app.Returns
IResourceBuilder<T>The updated container resource builder.Remarks
This method checks if the application is in publish mode. If it is, it adds the necessary infrastructure for container apps and applies the provided configuration action to the container app.
builder.AddNpmApp( "name", "image").PublishAsAzureContainerApp((infrastructure, app) =>{ // Configure the container app here});