import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Container App. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", { * name: "acctest-01", * location: example.location, * resourceGroupName: example.name, * sku: "PerGB2018", * retentionInDays: 30, * }); * const exampleEnvironment = new azure.containerapp.Environment("example", { * name: "Example-Environment", * location: example.location, * resourceGroupName: example.name, * logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id, * }); * const exampleApp = new azure.containerapp.App("example", { * name: "example-app", * containerAppEnvironmentId: exampleEnvironment.id, * resourceGroupName: example.name, * revisionMode: "Single", * template: { * containers: [{ * name: "examplecontainerapp", * image: "mcr.microsoft.com/k8se/quickstart:latest", * cpu: 0.25, * memory: "0.5Gi", * }], * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.App` - 2025-07-01 * * ## Import * * A Container App can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:containerapp/app:App example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/containerApps/myContainerApp" * ``` */ export declare class App extends pulumi.CustomResource { /** * Get an existing App resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AppState, opts?: pulumi.CustomResourceOptions): App; /** * Returns true if the given object is an instance of App. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is App; /** * The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created. */ readonly containerAppEnvironmentId: pulumi.Output; /** * The ID of the Custom Domain Verification for this Container App. */ readonly customDomainVerificationId: pulumi.Output; /** * A `dapr` block as detailed below. */ readonly dapr: pulumi.Output; /** * An `identity` block as detailed below. */ readonly identity: pulumi.Output; /** * An `ingress` block as detailed below. */ readonly ingress: pulumi.Output; /** * The FQDN of the Latest Revision of the Container App. */ readonly latestRevisionFqdn: pulumi.Output; /** * The name of the latest Container Revision. */ readonly latestRevisionName: pulumi.Output; /** * The location this Container App is deployed in. This is the same as the Environment in which it is deployed. */ readonly location: pulumi.Output; /** * The maximum of inactive revisions allowed for this Container App. */ readonly maxInactiveRevisions: pulumi.Output; /** * The name for this Container App. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A list of the Public IP Addresses which the Container App uses for outbound network access. */ readonly outboundIpAddresses: pulumi.Output; /** * A `registry` block as detailed below. */ readonly registries: pulumi.Output; /** * The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration. */ readonly revisionMode: pulumi.Output; /** * One or more `secret` block as detailed below. */ readonly secrets: pulumi.Output; /** * A mapping of tags to assign to the Container App. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A `template` block as detailed below. */ readonly template: pulumi.Output; /** * The name of the Workload Profile in the Container App Environment to place this Container App. * * > **Note:** Omit this value to use the default `Consumption` Workload Profile. */ readonly workloadProfileName: pulumi.Output; /** * Create a App resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AppArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering App resources. */ export interface AppState { /** * The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created. */ containerAppEnvironmentId?: pulumi.Input; /** * The ID of the Custom Domain Verification for this Container App. */ customDomainVerificationId?: pulumi.Input; /** * A `dapr` block as detailed below. */ dapr?: pulumi.Input; /** * An `identity` block as detailed below. */ identity?: pulumi.Input; /** * An `ingress` block as detailed below. */ ingress?: pulumi.Input; /** * The FQDN of the Latest Revision of the Container App. */ latestRevisionFqdn?: pulumi.Input; /** * The name of the latest Container Revision. */ latestRevisionName?: pulumi.Input; /** * The location this Container App is deployed in. This is the same as the Environment in which it is deployed. */ location?: pulumi.Input; /** * The maximum of inactive revisions allowed for this Container App. */ maxInactiveRevisions?: pulumi.Input; /** * The name for this Container App. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A list of the Public IP Addresses which the Container App uses for outbound network access. */ outboundIpAddresses?: pulumi.Input[]>; /** * A `registry` block as detailed below. */ registries?: pulumi.Input[]>; /** * The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration. */ revisionMode?: pulumi.Input; /** * One or more `secret` block as detailed below. */ secrets?: pulumi.Input[]>; /** * A mapping of tags to assign to the Container App. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `template` block as detailed below. */ template?: pulumi.Input; /** * The name of the Workload Profile in the Container App Environment to place this Container App. * * > **Note:** Omit this value to use the default `Consumption` Workload Profile. */ workloadProfileName?: pulumi.Input; } /** * The set of arguments for constructing a App resource. */ export interface AppArgs { /** * The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created. */ containerAppEnvironmentId: pulumi.Input; /** * A `dapr` block as detailed below. */ dapr?: pulumi.Input; /** * An `identity` block as detailed below. */ identity?: pulumi.Input; /** * An `ingress` block as detailed below. */ ingress?: pulumi.Input; /** * The maximum of inactive revisions allowed for this Container App. */ maxInactiveRevisions?: pulumi.Input; /** * The name for this Container App. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A `registry` block as detailed below. */ registries?: pulumi.Input[]>; /** * The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration. */ revisionMode: pulumi.Input; /** * One or more `secret` block as detailed below. */ secrets?: pulumi.Input[]>; /** * A mapping of tags to assign to the Container App. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `template` block as detailed below. */ template: pulumi.Input; /** * The name of the Workload Profile in the Container App Environment to place this Container App. * * > **Note:** Omit this value to use the default `Consumption` Workload Profile. */ workloadProfileName?: pulumi.Input; }