azure.containerapp.App
Manages a Container App.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("exampleAnalyticsWorkspace", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Sku = "PerGB2018",
RetentionInDays = 30,
});
var exampleEnvironment = new Azure.ContainerApp.Environment("exampleEnvironment", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
LogAnalyticsWorkspaceId = exampleAnalyticsWorkspace.Id,
});
var exampleApp = new Azure.ContainerApp.App("exampleApp", new()
{
ContainerAppEnvironmentId = exampleEnvironment.Id,
ResourceGroupName = exampleResourceGroup.Name,
RevisionMode = "Single",
Template = new Azure.ContainerApp.Inputs.AppTemplateArgs
{
Containers = new[]
{
new Azure.ContainerApp.Inputs.AppTemplateContainerArgs
{
Name = "examplecontainerapp",
Image = "mcr.microsoft.com/azuredocs/containerapps-helloworld:latest",
Cpu = 0.25,
Memory = "0.5Gi",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/containerapp"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Sku: pulumi.String("PerGB2018"),
RetentionInDays: pulumi.Int(30),
})
if err != nil {
return err
}
exampleEnvironment, err := containerapp.NewEnvironment(ctx, "exampleEnvironment", &containerapp.EnvironmentArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
})
if err != nil {
return err
}
_, err = containerapp.NewApp(ctx, "exampleApp", &containerapp.AppArgs{
ContainerAppEnvironmentId: exampleEnvironment.ID(),
ResourceGroupName: exampleResourceGroup.Name,
RevisionMode: pulumi.String("Single"),
Template: &containerapp.AppTemplateArgs{
Containers: containerapp.AppTemplateContainerArray{
&containerapp.AppTemplateContainerArgs{
Name: pulumi.String("examplecontainerapp"),
Image: pulumi.String("mcr.microsoft.com/azuredocs/containerapps-helloworld:latest"),
Cpu: pulumi.Float64(0.25),
Memory: pulumi.String("0.5Gi"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.containerapp.Environment;
import com.pulumi.azure.containerapp.EnvironmentArgs;
import com.pulumi.azure.containerapp.App;
import com.pulumi.azure.containerapp.AppArgs;
import com.pulumi.azure.containerapp.inputs.AppTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("PerGB2018")
.retentionInDays(30)
.build());
var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
.build());
var exampleApp = new App("exampleApp", AppArgs.builder()
.containerAppEnvironmentId(exampleEnvironment.id())
.resourceGroupName(exampleResourceGroup.name())
.revisionMode("Single")
.template(AppTemplateArgs.builder()
.containers(AppTemplateContainerArgs.builder()
.name("examplecontainerapp")
.image("mcr.microsoft.com/azuredocs/containerapps-helloworld:latest")
.cpu(0.25)
.memory("0.5Gi")
.build())
.build())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku="PerGB2018",
retention_in_days=30)
example_environment = azure.containerapp.Environment("exampleEnvironment",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
log_analytics_workspace_id=example_analytics_workspace.id)
example_app = azure.containerapp.App("exampleApp",
container_app_environment_id=example_environment.id,
resource_group_name=example_resource_group.name,
revision_mode="Single",
template=azure.containerapp.AppTemplateArgs(
containers=[azure.containerapp.AppTemplateContainerArgs(
name="examplecontainerapp",
image="mcr.microsoft.com/azuredocs/containerapps-helloworld:latest",
cpu=0.25,
memory="0.5Gi",
)],
))
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
sku: "PerGB2018",
retentionInDays: 30,
});
const exampleEnvironment = new azure.containerapp.Environment("exampleEnvironment", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id,
});
const exampleApp = new azure.containerapp.App("exampleApp", {
containerAppEnvironmentId: exampleEnvironment.id,
resourceGroupName: exampleResourceGroup.name,
revisionMode: "Single",
template: {
containers: [{
name: "examplecontainerapp",
image: "mcr.microsoft.com/azuredocs/containerapps-helloworld:latest",
cpu: 0.25,
memory: "0.5Gi",
}],
},
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleAnalyticsWorkspace:
type: azure:operationalinsights:AnalyticsWorkspace
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
sku: PerGB2018
retentionInDays: 30
exampleEnvironment:
type: azure:containerapp:Environment
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
logAnalyticsWorkspaceId: ${exampleAnalyticsWorkspace.id}
exampleApp:
type: azure:containerapp:App
properties:
containerAppEnvironmentId: ${exampleEnvironment.id}
resourceGroupName: ${exampleResourceGroup.name}
revisionMode: Single
template:
containers:
- name: examplecontainerapp
image: mcr.microsoft.com/azuredocs/containerapps-helloworld:latest
cpu: 0.25
memory: 0.5Gi
Create App Resource
new App(name: string, args: AppArgs, opts?: CustomResourceOptions);
@overload
def App(resource_name: str,
opts: Optional[ResourceOptions] = None,
container_app_environment_id: Optional[str] = None,
dapr: Optional[AppDaprArgs] = None,
identity: Optional[AppIdentityArgs] = None,
ingress: Optional[AppIngressArgs] = None,
name: Optional[str] = None,
registries: Optional[Sequence[AppRegistryArgs]] = None,
resource_group_name: Optional[str] = None,
revision_mode: Optional[str] = None,
secrets: Optional[Sequence[AppSecretArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
template: Optional[AppTemplateArgs] = None)
@overload
def App(resource_name: str,
args: AppArgs,
opts: Optional[ResourceOptions] = None)
func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)
public App(string name, AppArgs args, CustomResourceOptions? opts = null)
type: azure:containerapp:App
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
App Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The App resource accepts the following input properties:
- Container
App stringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- Resource
Group stringName 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.
- Revision
Mode string The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- Template
App
Template Args A
template
block as detailed below.- Dapr
App
Dapr Args A
dapr
block as detailed below.- Identity
App
Identity Args An
identity
block as detailed below.- Ingress
App
Ingress Args An
ingress
block as detailed below.- Name string
The name for this Container App. Changing this forces a new resource to be created.
- Registries
List<App
Registry Args> A
registry
block as detailed below.- Secrets
List<App
Secret Args> One or more
secret
block as detailed below.- Dictionary<string, string>
A mapping of tags to assign to the Container App.
- Container
App stringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- Resource
Group stringName 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.
- Revision
Mode string The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- Template
App
Template Args A
template
block as detailed below.- Dapr
App
Dapr Args A
dapr
block as detailed below.- Identity
App
Identity Args An
identity
block as detailed below.- Ingress
App
Ingress Args An
ingress
block as detailed below.- Name string
The name for this Container App. Changing this forces a new resource to be created.
- Registries
[]App
Registry Args A
registry
block as detailed below.- Secrets
[]App
Secret Args One or more
secret
block as detailed below.- map[string]string
A mapping of tags to assign to the Container App.
- container
App StringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- resource
Group StringName 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.
- revision
Mode String The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- template
App
Template Args A
template
block as detailed below.- dapr
App
Dapr Args A
dapr
block as detailed below.- identity
App
Identity Args An
identity
block as detailed below.- ingress
App
Ingress Args An
ingress
block as detailed below.- name String
The name for this Container App. Changing this forces a new resource to be created.
- registries
List<App
Registry Args> A
registry
block as detailed below.- secrets
List<App
Secret Args> One or more
secret
block as detailed below.- Map<String,String>
A mapping of tags to assign to the Container App.
- container
App stringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- resource
Group stringName 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.
- revision
Mode string The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- template
App
Template Args A
template
block as detailed below.- dapr
App
Dapr Args A
dapr
block as detailed below.- identity
App
Identity Args An
identity
block as detailed below.- ingress
App
Ingress Args An
ingress
block as detailed below.- name string
The name for this Container App. Changing this forces a new resource to be created.
- registries
App
Registry Args[] A
registry
block as detailed below.- secrets
App
Secret Args[] One or more
secret
block as detailed below.- {[key: string]: string}
A mapping of tags to assign to the Container App.
- container_
app_ strenvironment_ id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- resource_
group_ strname 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.
- revision_
mode str The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- template
App
Template Args A
template
block as detailed below.- dapr
App
Dapr Args A
dapr
block as detailed below.- identity
App
Identity Args An
identity
block as detailed below.- ingress
App
Ingress Args An
ingress
block as detailed below.- name str
The name for this Container App. Changing this forces a new resource to be created.
- registries
Sequence[App
Registry Args] A
registry
block as detailed below.- secrets
Sequence[App
Secret Args] One or more
secret
block as detailed below.- Mapping[str, str]
A mapping of tags to assign to the Container App.
- container
App StringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- resource
Group StringName 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.
- revision
Mode String The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- template Property Map
A
template
block as detailed below.- dapr Property Map
A
dapr
block as detailed below.- identity Property Map
An
identity
block as detailed below.- ingress Property Map
An
ingress
block as detailed below.- name String
The name for this Container App. Changing this forces a new resource to be created.
- registries List<Property Map>
A
registry
block as detailed below.- secrets List<Property Map>
One or more
secret
block as detailed below.- Map<String>
A mapping of tags to assign to the Container App.
Outputs
All input properties are implicitly available as output properties. Additionally, the App resource produces the following output properties:
- Custom
Domain stringVerification Id The ID of the Custom Domain Verification for this Container App.
- Id string
The provider-assigned unique ID for this managed resource.
- Latest
Revision stringFqdn The FQDN of the Latest Revision of the Container App.
- Latest
Revision stringName The name of the latest Container Revision.
- Location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- Outbound
Ip List<string>Addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- Custom
Domain stringVerification Id The ID of the Custom Domain Verification for this Container App.
- Id string
The provider-assigned unique ID for this managed resource.
- Latest
Revision stringFqdn The FQDN of the Latest Revision of the Container App.
- Latest
Revision stringName The name of the latest Container Revision.
- Location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- Outbound
Ip []stringAddresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- custom
Domain StringVerification Id The ID of the Custom Domain Verification for this Container App.
- id String
The provider-assigned unique ID for this managed resource.
- latest
Revision StringFqdn The FQDN of the Latest Revision of the Container App.
- latest
Revision StringName The name of the latest Container Revision.
- location String
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- outbound
Ip List<String>Addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- custom
Domain stringVerification Id The ID of the Custom Domain Verification for this Container App.
- id string
The provider-assigned unique ID for this managed resource.
- latest
Revision stringFqdn The FQDN of the Latest Revision of the Container App.
- latest
Revision stringName The name of the latest Container Revision.
- location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- outbound
Ip string[]Addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- custom_
domain_ strverification_ id The ID of the Custom Domain Verification for this Container App.
- id str
The provider-assigned unique ID for this managed resource.
- latest_
revision_ strfqdn The FQDN of the Latest Revision of the Container App.
- latest_
revision_ strname The name of the latest Container Revision.
- location str
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- outbound_
ip_ Sequence[str]addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- custom
Domain StringVerification Id The ID of the Custom Domain Verification for this Container App.
- id String
The provider-assigned unique ID for this managed resource.
- latest
Revision StringFqdn The FQDN of the Latest Revision of the Container App.
- latest
Revision StringName The name of the latest Container Revision.
- location String
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- outbound
Ip List<String>Addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
Look up Existing App Resource
Get an existing App resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AppState, opts?: CustomResourceOptions): App
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
container_app_environment_id: Optional[str] = None,
custom_domain_verification_id: Optional[str] = None,
dapr: Optional[AppDaprArgs] = None,
identity: Optional[AppIdentityArgs] = None,
ingress: Optional[AppIngressArgs] = None,
latest_revision_fqdn: Optional[str] = None,
latest_revision_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
outbound_ip_addresses: Optional[Sequence[str]] = None,
registries: Optional[Sequence[AppRegistryArgs]] = None,
resource_group_name: Optional[str] = None,
revision_mode: Optional[str] = None,
secrets: Optional[Sequence[AppSecretArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
template: Optional[AppTemplateArgs] = None) -> App
func GetApp(ctx *Context, name string, id IDInput, state *AppState, opts ...ResourceOption) (*App, error)
public static App Get(string name, Input<string> id, AppState? state, CustomResourceOptions? opts = null)
public static App get(String name, Output<String> id, AppState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Container
App stringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- Custom
Domain stringVerification Id The ID of the Custom Domain Verification for this Container App.
- Dapr
App
Dapr Args A
dapr
block as detailed below.- Identity
App
Identity Args An
identity
block as detailed below.- Ingress
App
Ingress Args An
ingress
block as detailed below.- Latest
Revision stringFqdn The FQDN of the Latest Revision of the Container App.
- Latest
Revision stringName The name of the latest Container Revision.
- Location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- Name string
The name for this Container App. Changing this forces a new resource to be created.
- Outbound
Ip List<string>Addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- Registries
List<App
Registry Args> A
registry
block as detailed below.- Resource
Group stringName 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.
- Revision
Mode string The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- Secrets
List<App
Secret Args> One or more
secret
block as detailed below.- Dictionary<string, string>
A mapping of tags to assign to the Container App.
- Template
App
Template Args A
template
block as detailed below.
- Container
App stringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- Custom
Domain stringVerification Id The ID of the Custom Domain Verification for this Container App.
- Dapr
App
Dapr Args A
dapr
block as detailed below.- Identity
App
Identity Args An
identity
block as detailed below.- Ingress
App
Ingress Args An
ingress
block as detailed below.- Latest
Revision stringFqdn The FQDN of the Latest Revision of the Container App.
- Latest
Revision stringName The name of the latest Container Revision.
- Location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- Name string
The name for this Container App. Changing this forces a new resource to be created.
- Outbound
Ip []stringAddresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- Registries
[]App
Registry Args A
registry
block as detailed below.- Resource
Group stringName 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.
- Revision
Mode string The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- Secrets
[]App
Secret Args One or more
secret
block as detailed below.- map[string]string
A mapping of tags to assign to the Container App.
- Template
App
Template Args A
template
block as detailed below.
- container
App StringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- custom
Domain StringVerification Id The ID of the Custom Domain Verification for this Container App.
- dapr
App
Dapr Args A
dapr
block as detailed below.- identity
App
Identity Args An
identity
block as detailed below.- ingress
App
Ingress Args An
ingress
block as detailed below.- latest
Revision StringFqdn The FQDN of the Latest Revision of the Container App.
- latest
Revision StringName The name of the latest Container Revision.
- location String
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- name String
The name for this Container App. Changing this forces a new resource to be created.
- outbound
Ip List<String>Addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- registries
List<App
Registry Args> A
registry
block as detailed below.- resource
Group StringName 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.
- revision
Mode String The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- secrets
List<App
Secret Args> One or more
secret
block as detailed below.- Map<String,String>
A mapping of tags to assign to the Container App.
- template
App
Template Args A
template
block as detailed below.
- container
App stringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- custom
Domain stringVerification Id The ID of the Custom Domain Verification for this Container App.
- dapr
App
Dapr Args A
dapr
block as detailed below.- identity
App
Identity Args An
identity
block as detailed below.- ingress
App
Ingress Args An
ingress
block as detailed below.- latest
Revision stringFqdn The FQDN of the Latest Revision of the Container App.
- latest
Revision stringName The name of the latest Container Revision.
- location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- name string
The name for this Container App. Changing this forces a new resource to be created.
- outbound
Ip string[]Addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- registries
App
Registry Args[] A
registry
block as detailed below.- resource
Group stringName 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.
- revision
Mode string The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- secrets
App
Secret Args[] One or more
secret
block as detailed below.- {[key: string]: string}
A mapping of tags to assign to the Container App.
- template
App
Template Args A
template
block as detailed below.
- container_
app_ strenvironment_ id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- custom_
domain_ strverification_ id The ID of the Custom Domain Verification for this Container App.
- dapr
App
Dapr Args A
dapr
block as detailed below.- identity
App
Identity Args An
identity
block as detailed below.- ingress
App
Ingress Args An
ingress
block as detailed below.- latest_
revision_ strfqdn The FQDN of the Latest Revision of the Container App.
- latest_
revision_ strname The name of the latest Container Revision.
- location str
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- name str
The name for this Container App. Changing this forces a new resource to be created.
- outbound_
ip_ Sequence[str]addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- registries
Sequence[App
Registry Args] A
registry
block as detailed below.- resource_
group_ strname 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.
- revision_
mode str The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- secrets
Sequence[App
Secret Args] One or more
secret
block as detailed below.- Mapping[str, str]
A mapping of tags to assign to the Container App.
- template
App
Template Args A
template
block as detailed below.
- container
App StringEnvironment Id The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
- custom
Domain StringVerification Id The ID of the Custom Domain Verification for this Container App.
- dapr Property Map
A
dapr
block as detailed below.- identity Property Map
An
identity
block as detailed below.- ingress Property Map
An
ingress
block as detailed below.- latest
Revision StringFqdn The FQDN of the Latest Revision of the Container App.
- latest
Revision StringName The name of the latest Container Revision.
- location String
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
- name String
The name for this Container App. Changing this forces a new resource to be created.
- outbound
Ip List<String>Addresses A list of the Public IP Addresses which the Container App uses for outbound network access.
- registries List<Property Map>
A
registry
block as detailed below.- resource
Group StringName 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.
- revision
Mode String The revisions operational mode for the Container App. Possible values include
Single
andMultiple
. InSingle
mode, a single revision is in operation at any given time. InMultiple
mode, more than one revision can be active at a time and can be configured with load distribution via thetraffic_weight
block in theingress
configuration.- secrets List<Property Map>
One or more
secret
block as detailed below.- Map<String>
A mapping of tags to assign to the Container App.
- template Property Map
A
template
block as detailed below.
Supporting Types
AppDapr
- App
Id string The Dapr Application Identifier.
- App
Port int The port which the application is listening on. This is the same as the
ingress
port.- App
Protocol string The protocol for the app. Possible values include
http
andgrpc
. Defaults tohttp
.
- App
Id string The Dapr Application Identifier.
- App
Port int The port which the application is listening on. This is the same as the
ingress
port.- App
Protocol string The protocol for the app. Possible values include
http
andgrpc
. Defaults tohttp
.
- app
Id String The Dapr Application Identifier.
- app
Port Integer The port which the application is listening on. This is the same as the
ingress
port.- app
Protocol String The protocol for the app. Possible values include
http
andgrpc
. Defaults tohttp
.
- app
Id string The Dapr Application Identifier.
- app
Port number The port which the application is listening on. This is the same as the
ingress
port.- app
Protocol string The protocol for the app. Possible values include
http
andgrpc
. Defaults tohttp
.
- app_
id str The Dapr Application Identifier.
- app_
port int The port which the application is listening on. This is the same as the
ingress
port.- app_
protocol str The protocol for the app. Possible values include
http
andgrpc
. Defaults tohttp
.
- app
Id String The Dapr Application Identifier.
- app
Port Number The port which the application is listening on. This is the same as the
ingress
port.- app
Protocol String The protocol for the app. Possible values include
http
andgrpc
. Defaults tohttp
.
AppIdentity
- Type string
The type of managed identity to assign. Possible values are
UserAssigned
andSystemAssigned
- Identity
Ids List<string> A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when
type
is set toUserAssigned
.- Principal
Id string - Tenant
Id string
- Type string
The type of managed identity to assign. Possible values are
UserAssigned
andSystemAssigned
- Identity
Ids []string A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when
type
is set toUserAssigned
.- Principal
Id string - Tenant
Id string
- type String
The type of managed identity to assign. Possible values are
UserAssigned
andSystemAssigned
- identity
Ids List<String> A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when
type
is set toUserAssigned
.- principal
Id String - tenant
Id String
- type string
The type of managed identity to assign. Possible values are
UserAssigned
andSystemAssigned
- identity
Ids string[] A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when
type
is set toUserAssigned
.- principal
Id string - tenant
Id string
- type str
The type of managed identity to assign. Possible values are
UserAssigned
andSystemAssigned
- identity_
ids Sequence[str] A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when
type
is set toUserAssigned
.- principal_
id str - tenant_
id str
- type String
The type of managed identity to assign. Possible values are
UserAssigned
andSystemAssigned
- identity
Ids List<String> A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when
type
is set toUserAssigned
.- principal
Id String - tenant
Id String
AppIngress
- Target
Port int The target port on the container for the Ingress traffic.
- Traffic
Weights List<AppIngress Traffic Weight> A
traffic_weight
block as detailed below.- Allow
Insecure boolConnections Should this ingress allow insecure connections?
- Custom
Domain AppIngress Custom Domain One or more
custom_domain
block as detailed below.- External
Enabled bool Is this an external Ingress.
- Fqdn string
The FQDN of the ingress.
- Transport string
The transport method for the Ingress. Possible values include
auto
,http
, andhttp2
. Defaults toauto
- Target
Port int The target port on the container for the Ingress traffic.
- Traffic
Weights []AppIngress Traffic Weight A
traffic_weight
block as detailed below.- Allow
Insecure boolConnections Should this ingress allow insecure connections?
- Custom
Domain AppIngress Custom Domain One or more
custom_domain
block as detailed below.- External
Enabled bool Is this an external Ingress.
- Fqdn string
The FQDN of the ingress.
- Transport string
The transport method for the Ingress. Possible values include
auto
,http
, andhttp2
. Defaults toauto
- target
Port Integer The target port on the container for the Ingress traffic.
- traffic
Weights List<AppIngress Traffic Weight> A
traffic_weight
block as detailed below.- allow
Insecure BooleanConnections Should this ingress allow insecure connections?
- custom
Domain AppIngress Custom Domain One or more
custom_domain
block as detailed below.- external
Enabled Boolean Is this an external Ingress.
- fqdn String
The FQDN of the ingress.
- transport String
The transport method for the Ingress. Possible values include
auto
,http
, andhttp2
. Defaults toauto
- target
Port number The target port on the container for the Ingress traffic.
- traffic
Weights AppIngress Traffic Weight[] A
traffic_weight
block as detailed below.- allow
Insecure booleanConnections Should this ingress allow insecure connections?
- custom
Domain AppIngress Custom Domain One or more
custom_domain
block as detailed below.- external
Enabled boolean Is this an external Ingress.
- fqdn string
The FQDN of the ingress.
- transport string
The transport method for the Ingress. Possible values include
auto
,http
, andhttp2
. Defaults toauto
- target_
port int The target port on the container for the Ingress traffic.
- traffic_
weights Sequence[AppIngress Traffic Weight] A
traffic_weight
block as detailed below.- allow_
insecure_ boolconnections Should this ingress allow insecure connections?
- custom_
domain AppIngress Custom Domain One or more
custom_domain
block as detailed below.- external_
enabled bool Is this an external Ingress.
- fqdn str
The FQDN of the ingress.
- transport str
The transport method for the Ingress. Possible values include
auto
,http
, andhttp2
. Defaults toauto
- target
Port Number The target port on the container for the Ingress traffic.
- traffic
Weights List<Property Map> A
traffic_weight
block as detailed below.- allow
Insecure BooleanConnections Should this ingress allow insecure connections?
- custom
Domain Property Map One or more
custom_domain
block as detailed below.- external
Enabled Boolean Is this an external Ingress.
- fqdn String
The FQDN of the ingress.
- transport String
The transport method for the Ingress. Possible values include
auto
,http
, andhttp2
. Defaults toauto
AppIngressCustomDomain
- Certificate
Id string The ID of the Container App Environment Certificate.
- Name string
The hostname of the Certificate. Must be the CN or a named SAN in the certificate.
- Certificate
Binding stringType The Binding type. Possible values include
Disabled
andSniEnabled
. Defaults toDisabled
.
- Certificate
Id string The ID of the Container App Environment Certificate.
- Name string
The hostname of the Certificate. Must be the CN or a named SAN in the certificate.
- Certificate
Binding stringType The Binding type. Possible values include
Disabled
andSniEnabled
. Defaults toDisabled
.
- certificate
Id String The ID of the Container App Environment Certificate.
- name String
The hostname of the Certificate. Must be the CN or a named SAN in the certificate.
- certificate
Binding StringType The Binding type. Possible values include
Disabled
andSniEnabled
. Defaults toDisabled
.
- certificate
Id string The ID of the Container App Environment Certificate.
- name string
The hostname of the Certificate. Must be the CN or a named SAN in the certificate.
- certificate
Binding stringType The Binding type. Possible values include
Disabled
andSniEnabled
. Defaults toDisabled
.
- certificate_
id str The ID of the Container App Environment Certificate.
- name str
The hostname of the Certificate. Must be the CN or a named SAN in the certificate.
- certificate_
binding_ strtype The Binding type. Possible values include
Disabled
andSniEnabled
. Defaults toDisabled
.
- certificate
Id String The ID of the Container App Environment Certificate.
- name String
The hostname of the Certificate. Must be the CN or a named SAN in the certificate.
- certificate
Binding StringType The Binding type. Possible values include
Disabled
andSniEnabled
. Defaults toDisabled
.
AppIngressTrafficWeight
- Percentage int
The percentage of traffic which should be sent this revision.
- Label string
The label to apply to the revision as a name prefix for routing traffic.
- Latest
Revision bool This traffic Weight relates to the latest stable Container Revision.
- Revision
Suffix string The suffix string to which this
traffic_weight
applies.
- Percentage int
The percentage of traffic which should be sent this revision.
- Label string
The label to apply to the revision as a name prefix for routing traffic.
- Latest
Revision bool This traffic Weight relates to the latest stable Container Revision.
- Revision
Suffix string The suffix string to which this
traffic_weight
applies.
- percentage Integer
The percentage of traffic which should be sent this revision.
- label String
The label to apply to the revision as a name prefix for routing traffic.
- latest
Revision Boolean This traffic Weight relates to the latest stable Container Revision.
- revision
Suffix String The suffix string to which this
traffic_weight
applies.
- percentage number
The percentage of traffic which should be sent this revision.
- label string
The label to apply to the revision as a name prefix for routing traffic.
- latest
Revision boolean This traffic Weight relates to the latest stable Container Revision.
- revision
Suffix string The suffix string to which this
traffic_weight
applies.
- percentage int
The percentage of traffic which should be sent this revision.
- label str
The label to apply to the revision as a name prefix for routing traffic.
- latest_
revision bool This traffic Weight relates to the latest stable Container Revision.
- revision_
suffix str The suffix string to which this
traffic_weight
applies.
- percentage Number
The percentage of traffic which should be sent this revision.
- label String
The label to apply to the revision as a name prefix for routing traffic.
- latest
Revision Boolean This traffic Weight relates to the latest stable Container Revision.
- revision
Suffix String The suffix string to which this
traffic_weight
applies.
AppRegistry
- Server string
The hostname for the Container Registry.
- Identity string
Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
- Password
Secret stringName The name of the Secret Reference containing the password value for this user on the Container Registry,
username
must also be supplied.- Username string
The username to use for this Container Registry,
password_secret_name
must also be supplied..
- Server string
The hostname for the Container Registry.
- Identity string
Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
- Password
Secret stringName The name of the Secret Reference containing the password value for this user on the Container Registry,
username
must also be supplied.- Username string
The username to use for this Container Registry,
password_secret_name
must also be supplied..
- server String
The hostname for the Container Registry.
- identity String
Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
- password
Secret StringName The name of the Secret Reference containing the password value for this user on the Container Registry,
username
must also be supplied.- username String
The username to use for this Container Registry,
password_secret_name
must also be supplied..
- server string
The hostname for the Container Registry.
- identity string
Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
- password
Secret stringName The name of the Secret Reference containing the password value for this user on the Container Registry,
username
must also be supplied.- username string
The username to use for this Container Registry,
password_secret_name
must also be supplied..
- server str
The hostname for the Container Registry.
- identity str
Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
- password_
secret_ strname The name of the Secret Reference containing the password value for this user on the Container Registry,
username
must also be supplied.- username str
The username to use for this Container Registry,
password_secret_name
must also be supplied..
- server String
The hostname for the Container Registry.
- identity String
Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
- password
Secret StringName The name of the Secret Reference containing the password value for this user on the Container Registry,
username
must also be supplied.- username String
The username to use for this Container Registry,
password_secret_name
must also be supplied..
AppSecret
AppTemplate
- Containers
List<App
Template Container> One or more
container
blocks as detailed below.- Max
Replicas int The maximum number of replicas for this container.
- Min
Replicas int The minimum number of replicas for this container.
- Revision
Suffix string The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
- Volumes
List<App
Template Volume> A
volume
block as detailed below.
- Containers
[]App
Template Container One or more
container
blocks as detailed below.- Max
Replicas int The maximum number of replicas for this container.
- Min
Replicas int The minimum number of replicas for this container.
- Revision
Suffix string The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
- Volumes
[]App
Template Volume A
volume
block as detailed below.
- containers
List<App
Template Container> One or more
container
blocks as detailed below.- max
Replicas Integer The maximum number of replicas for this container.
- min
Replicas Integer The minimum number of replicas for this container.
- revision
Suffix String The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
- volumes
List<App
Template Volume> A
volume
block as detailed below.
- containers
App
Template Container[] One or more
container
blocks as detailed below.- max
Replicas number The maximum number of replicas for this container.
- min
Replicas number The minimum number of replicas for this container.
- revision
Suffix string The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
- volumes
App
Template Volume[] A
volume
block as detailed below.
- containers
Sequence[App
Template Container] One or more
container
blocks as detailed below.- max_
replicas int The maximum number of replicas for this container.
- min_
replicas int The minimum number of replicas for this container.
- revision_
suffix str The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
- volumes
Sequence[App
Template Volume] A
volume
block as detailed below.
- containers List<Property Map>
One or more
container
blocks as detailed below.- max
Replicas Number The maximum number of replicas for this container.
- min
Replicas Number The minimum number of replicas for this container.
- revision
Suffix String The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
- volumes List<Property Map>
A
volume
block as detailed below.
AppTemplateContainer
- Cpu double
The amount of vCPU to allocate to the container. Possible values include
0.25
,0.5
,0.75
,1.0
,1.25
,1.5
,1.75
, and2.0
.- Image string
The image to use to create the container.
- Memory string
The amount of memory to allocate to the container. Possible values include
0.5Gi
,1.0Gi
,1.5Gi
,2.0Gi
,2.5Gi
,3.0Gi
,3.5Gi
, and4.0Gi
.- Name string
The name of the container
- Args List<string>
A list of extra arguments to pass to the container.
- Commands List<string>
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
- Envs
List<App
Template Container Env> One or more
env
blocks as detailed below.- Ephemeral
Storage string The amount of ephemeral storage available to the Container App.
- Liveness
Probes List<AppTemplate Container Liveness Probe> A
liveness_probe
block as detailed below.- Readiness
Probes List<AppTemplate Container Readiness Probe> A
readiness_probe
block as detailed below.- Startup
Probes List<AppTemplate Container Startup Probe> A
startup_probe
block as detailed below.- Volume
Mounts List<AppTemplate Container Volume Mount> A
volume_mounts
block as detailed below.
- Cpu float64
The amount of vCPU to allocate to the container. Possible values include
0.25
,0.5
,0.75
,1.0
,1.25
,1.5
,1.75
, and2.0
.- Image string
The image to use to create the container.
- Memory string
The amount of memory to allocate to the container. Possible values include
0.5Gi
,1.0Gi
,1.5Gi
,2.0Gi
,2.5Gi
,3.0Gi
,3.5Gi
, and4.0Gi
.- Name string
The name of the container
- Args []string
A list of extra arguments to pass to the container.
- Commands []string
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
- Envs
[]App
Template Container Env One or more
env
blocks as detailed below.- Ephemeral
Storage string The amount of ephemeral storage available to the Container App.
- Liveness
Probes []AppTemplate Container Liveness Probe A
liveness_probe
block as detailed below.- Readiness
Probes []AppTemplate Container Readiness Probe A
readiness_probe
block as detailed below.- Startup
Probes []AppTemplate Container Startup Probe A
startup_probe
block as detailed below.- Volume
Mounts []AppTemplate Container Volume Mount A
volume_mounts
block as detailed below.
- cpu Double
The amount of vCPU to allocate to the container. Possible values include
0.25
,0.5
,0.75
,1.0
,1.25
,1.5
,1.75
, and2.0
.- image String
The image to use to create the container.
- memory String
The amount of memory to allocate to the container. Possible values include
0.5Gi
,1.0Gi
,1.5Gi
,2.0Gi
,2.5Gi
,3.0Gi
,3.5Gi
, and4.0Gi
.- name String
The name of the container
- args List<String>
A list of extra arguments to pass to the container.
- commands List<String>
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
- envs
List<App
Template Container Env> One or more
env
blocks as detailed below.- ephemeral
Storage String The amount of ephemeral storage available to the Container App.
- liveness
Probes List<AppTemplate Container Liveness Probe> A
liveness_probe
block as detailed below.- readiness
Probes List<AppTemplate Container Readiness Probe> A
readiness_probe
block as detailed below.- startup
Probes List<AppTemplate Container Startup Probe> A
startup_probe
block as detailed below.- volume
Mounts List<AppTemplate Container Volume Mount> A
volume_mounts
block as detailed below.
- cpu number
The amount of vCPU to allocate to the container. Possible values include
0.25
,0.5
,0.75
,1.0
,1.25
,1.5
,1.75
, and2.0
.- image string
The image to use to create the container.
- memory string
The amount of memory to allocate to the container. Possible values include
0.5Gi
,1.0Gi
,1.5Gi
,2.0Gi
,2.5Gi
,3.0Gi
,3.5Gi
, and4.0Gi
.- name string
The name of the container
- args string[]
A list of extra arguments to pass to the container.
- commands string[]
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
- envs
App
Template Container Env[] One or more
env
blocks as detailed below.- ephemeral
Storage string The amount of ephemeral storage available to the Container App.
- liveness
Probes AppTemplate Container Liveness Probe[] A
liveness_probe
block as detailed below.- readiness
Probes AppTemplate Container Readiness Probe[] A
readiness_probe
block as detailed below.- startup
Probes AppTemplate Container Startup Probe[] A
startup_probe
block as detailed below.- volume
Mounts AppTemplate Container Volume Mount[] A
volume_mounts
block as detailed below.
- cpu float
The amount of vCPU to allocate to the container. Possible values include
0.25
,0.5
,0.75
,1.0
,1.25
,1.5
,1.75
, and2.0
.- image str
The image to use to create the container.
- memory str
The amount of memory to allocate to the container. Possible values include
0.5Gi
,1.0Gi
,1.5Gi
,2.0Gi
,2.5Gi
,3.0Gi
,3.5Gi
, and4.0Gi
.- name str
The name of the container
- args Sequence[str]
A list of extra arguments to pass to the container.
- commands Sequence[str]
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
- envs
Sequence[App
Template Container Env] One or more
env
blocks as detailed below.- ephemeral_
storage str The amount of ephemeral storage available to the Container App.
- liveness_
probes Sequence[AppTemplate Container Liveness Probe] A
liveness_probe
block as detailed below.- readiness_
probes Sequence[AppTemplate Container Readiness Probe] A
readiness_probe
block as detailed below.- startup_
probes Sequence[AppTemplate Container Startup Probe] A
startup_probe
block as detailed below.- volume_
mounts Sequence[AppTemplate Container Volume Mount] A
volume_mounts
block as detailed below.
- cpu Number
The amount of vCPU to allocate to the container. Possible values include
0.25
,0.5
,0.75
,1.0
,1.25
,1.5
,1.75
, and2.0
.- image String
The image to use to create the container.
- memory String
The amount of memory to allocate to the container. Possible values include
0.5Gi
,1.0Gi
,1.5Gi
,2.0Gi
,2.5Gi
,3.0Gi
,3.5Gi
, and4.0Gi
.- name String
The name of the container
- args List<String>
A list of extra arguments to pass to the container.
- commands List<String>
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
- envs List<Property Map>
One or more
env
blocks as detailed below.- ephemeral
Storage String The amount of ephemeral storage available to the Container App.
- liveness
Probes List<Property Map> A
liveness_probe
block as detailed below.- readiness
Probes List<Property Map> A
readiness_probe
block as detailed below.- startup
Probes List<Property Map> A
startup_probe
block as detailed below.- volume
Mounts List<Property Map> A
volume_mounts
block as detailed below.
AppTemplateContainerEnv
- Name string
The name of the environment variable for the container.
- Secret
Name string The name of the secret that contains the value for this environment variable.
- Value string
The value for this environment variable.
- Name string
The name of the environment variable for the container.
- Secret
Name string The name of the secret that contains the value for this environment variable.
- Value string
The value for this environment variable.
- name String
The name of the environment variable for the container.
- secret
Name String The name of the secret that contains the value for this environment variable.
- value String
The value for this environment variable.
- name string
The name of the environment variable for the container.
- secret
Name string The name of the secret that contains the value for this environment variable.
- value string
The value for this environment variable.
- name str
The name of the environment variable for the container.
- secret_
name str The name of the secret that contains the value for this environment variable.
- value str
The value for this environment variable.
- name String
The name of the environment variable for the container.
- secret
Name String The name of the secret that contains the value for this environment variable.
- value String
The value for this environment variable.
AppTemplateContainerLivenessProbe
- Port int
The port number on which to connect. Possible values are between
1
and65535
.- Transport string
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- Failure
Count intThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- Headers
List<App
Template Container Liveness Probe Header> A
header
block as detailed below.- Host string
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- Initial
Delay int The time in seconds to wait after the container has started before the probe is started.
- Interval
Seconds int (Optional) How often, in seconds, the probe should run. Possible values are in the range
1
-240
. Defaults to10
.- Path string
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- Termination
Grace intPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- Timeout int
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- Port int
The port number on which to connect. Possible values are between
1
and65535
.- Transport string
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- Failure
Count intThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- Headers
[]App
Template Container Liveness Probe Header A
header
block as detailed below.- Host string
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- Initial
Delay int The time in seconds to wait after the container has started before the probe is started.
- Interval
Seconds int (Optional) How often, in seconds, the probe should run. Possible values are in the range
1
-240
. Defaults to10
.- Path string
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- Termination
Grace intPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- Timeout int
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port Integer
The port number on which to connect. Possible values are between
1
and65535
.- transport String
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure
Count IntegerThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers
List<App
Template Container Liveness Probe Header> A
header
block as detailed below.- host String
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- initial
Delay Integer The time in seconds to wait after the container has started before the probe is started.
- interval
Seconds Integer (Optional) How often, in seconds, the probe should run. Possible values are in the range
1
-240
. Defaults to10
.- path String
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- termination
Grace IntegerPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- timeout Integer
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port number
The port number on which to connect. Possible values are between
1
and65535
.- transport string
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure
Count numberThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers
App
Template Container Liveness Probe Header[] A
header
block as detailed below.- host string
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- initial
Delay number The time in seconds to wait after the container has started before the probe is started.
- interval
Seconds number (Optional) How often, in seconds, the probe should run. Possible values are in the range
1
-240
. Defaults to10
.- path string
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- termination
Grace numberPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- timeout number
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port int
The port number on which to connect. Possible values are between
1
and65535
.- transport str
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure_
count_ intthreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers
Sequence[App
Template Container Liveness Probe Header] A
header
block as detailed below.- host str
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- initial_
delay int The time in seconds to wait after the container has started before the probe is started.
- interval_
seconds int (Optional) How often, in seconds, the probe should run. Possible values are in the range
1
-240
. Defaults to10
.- path str
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- termination_
grace_ intperiod_ seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- timeout int
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port Number
The port number on which to connect. Possible values are between
1
and65535
.- transport String
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure
Count NumberThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers List<Property Map>
A
header
block as detailed below.- host String
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- initial
Delay Number The time in seconds to wait after the container has started before the probe is started.
- interval
Seconds Number (Optional) How often, in seconds, the probe should run. Possible values are in the range
1
-240
. Defaults to10
.- path String
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- termination
Grace NumberPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- timeout Number
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
AppTemplateContainerLivenessProbeHeader
AppTemplateContainerReadinessProbe
- Port int
The port number on which to connect. Possible values are between
1
and65535
.- Transport string
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- Failure
Count intThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- Headers
List<App
Template Container Readiness Probe Header> A
header
block as detailed below.- Host string
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- Interval
Seconds int How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- Path string
The URI to use for http type probes. Not valid for
TCP
type probes. Defaults to/
.- Success
Count intThreshold The number of consecutive successful responses required to consider this probe as successful. Possible values are between
1
and10
. Defaults to3
.- Timeout int
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- Port int
The port number on which to connect. Possible values are between
1
and65535
.- Transport string
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- Failure
Count intThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- Headers
[]App
Template Container Readiness Probe Header A
header
block as detailed below.- Host string
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- Interval
Seconds int How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- Path string
The URI to use for http type probes. Not valid for
TCP
type probes. Defaults to/
.- Success
Count intThreshold The number of consecutive successful responses required to consider this probe as successful. Possible values are between
1
and10
. Defaults to3
.- Timeout int
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port Integer
The port number on which to connect. Possible values are between
1
and65535
.- transport String
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure
Count IntegerThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers
List<App
Template Container Readiness Probe Header> A
header
block as detailed below.- host String
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- interval
Seconds Integer How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- path String
The URI to use for http type probes. Not valid for
TCP
type probes. Defaults to/
.- success
Count IntegerThreshold The number of consecutive successful responses required to consider this probe as successful. Possible values are between
1
and10
. Defaults to3
.- timeout Integer
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port number
The port number on which to connect. Possible values are between
1
and65535
.- transport string
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure
Count numberThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers
App
Template Container Readiness Probe Header[] A
header
block as detailed below.- host string
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- interval
Seconds number How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- path string
The URI to use for http type probes. Not valid for
TCP
type probes. Defaults to/
.- success
Count numberThreshold The number of consecutive successful responses required to consider this probe as successful. Possible values are between
1
and10
. Defaults to3
.- timeout number
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port int
The port number on which to connect. Possible values are between
1
and65535
.- transport str
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure_
count_ intthreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers
Sequence[App
Template Container Readiness Probe Header] A
header
block as detailed below.- host str
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- interval_
seconds int How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- path str
The URI to use for http type probes. Not valid for
TCP
type probes. Defaults to/
.- success_
count_ intthreshold The number of consecutive successful responses required to consider this probe as successful. Possible values are between
1
and10
. Defaults to3
.- timeout int
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port Number
The port number on which to connect. Possible values are between
1
and65535
.- transport String
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure
Count NumberThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers List<Property Map>
A
header
block as detailed below.- host String
The probe hostname. Defaults to the pod IP address. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- interval
Seconds Number How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- path String
The URI to use for http type probes. Not valid for
TCP
type probes. Defaults to/
.- success
Count NumberThreshold The number of consecutive successful responses required to consider this probe as successful. Possible values are between
1
and10
. Defaults to3
.- timeout Number
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
AppTemplateContainerReadinessProbeHeader
AppTemplateContainerStartupProbe
- Port int
The port number on which to connect. Possible values are between
1
and65535
.- Transport string
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- Failure
Count intThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- Headers
List<App
Template Container Startup Probe Header> A
header
block as detailed below.- Host string
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- Interval
Seconds int How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- Path string
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- Termination
Grace intPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- Timeout int
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- Port int
The port number on which to connect. Possible values are between
1
and65535
.- Transport string
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- Failure
Count intThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- Headers
[]App
Template Container Startup Probe Header A
header
block as detailed below.- Host string
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- Interval
Seconds int How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- Path string
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- Termination
Grace intPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- Timeout int
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port Integer
The port number on which to connect. Possible values are between
1
and65535
.- transport String
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure
Count IntegerThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers
List<App
Template Container Startup Probe Header> A
header
block as detailed below.- host String
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- interval
Seconds Integer How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- path String
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- termination
Grace IntegerPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- timeout Integer
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port number
The port number on which to connect. Possible values are between
1
and65535
.- transport string
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure
Count numberThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers
App
Template Container Startup Probe Header[] A
header
block as detailed below.- host string
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- interval
Seconds number How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- path string
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- termination
Grace numberPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- timeout number
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port int
The port number on which to connect. Possible values are between
1
and65535
.- transport str
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure_
count_ intthreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers
Sequence[App
Template Container Startup Probe Header] A
header
block as detailed below.- host str
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- interval_
seconds int How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- path str
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- termination_
grace_ intperiod_ seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- timeout int
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
- port Number
The port number on which to connect. Possible values are between
1
and65535
.- transport String
Type of probe. Possible values are
TCP
,HTTP
, andHTTPS
.- failure
Count NumberThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between
1
and10
. Defaults to3
.- headers List<Property Map>
A
header
block as detailed below.- host String
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for
Host
inheaders
can be used to override this forHTTP
andHTTPS
type probes.- interval
Seconds Number How often, in seconds, the probe should run. Possible values are between
1
and240
. Defaults to10
- path String
The URI to use with the
host
for http type probes. Not valid forTCP
type probes. Defaults to/
.- termination
Grace NumberPeriod Seconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
- timeout Number
Time in seconds after which the probe times out. Possible values are in the range
1
-240
. Defaults to1
.
AppTemplateContainerStartupProbeHeader
AppTemplateContainerVolumeMount
AppTemplateVolume
- Name string
The name of the volume.
- Storage
Name string The name of the
AzureFile
storage.- Storage
Type string The type of storage volume. Possible values include
AzureFile
andEmptyDir
. Defaults toEmptyDir
.
- Name string
The name of the volume.
- Storage
Name string The name of the
AzureFile
storage.- Storage
Type string The type of storage volume. Possible values include
AzureFile
andEmptyDir
. Defaults toEmptyDir
.
- name String
The name of the volume.
- storage
Name String The name of the
AzureFile
storage.- storage
Type String The type of storage volume. Possible values include
AzureFile
andEmptyDir
. Defaults toEmptyDir
.
- name string
The name of the volume.
- storage
Name string The name of the
AzureFile
storage.- storage
Type string The type of storage volume. Possible values include
AzureFile
andEmptyDir
. Defaults toEmptyDir
.
- name str
The name of the volume.
- storage_
name str The name of the
AzureFile
storage.- storage_
type str The type of storage volume. Possible values include
AzureFile
andEmptyDir
. Defaults toEmptyDir
.
- name String
The name of the volume.
- storage
Name String The name of the
AzureFile
storage.- storage
Type String The type of storage volume. Possible values include
AzureFile
andEmptyDir
. Defaults toEmptyDir
.
Import
A Container App can be imported using the resource id
, e.g.
$ pulumi import azure:containerapp/app:App example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/containerApps/myContainerApp"
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.