We recommend using Azure Native.
azure.containerapp.Job
Explore with Pulumi AI
Manages a Container App Job.
Example Usage
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: "example-log-analytics-workspace",
location: example.location,
resourceGroupName: example.name,
sku: "PerGB2018",
retentionInDays: 30,
});
const exampleEnvironment = new azure.containerapp.Environment("example", {
name: "example-container-app-environment",
location: example.location,
resourceGroupName: example.name,
logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id,
});
const exampleJob = new azure.containerapp.Job("example", {
name: "example-container-app-job",
location: example.location,
resourceGroupName: example.name,
containerAppEnvironmentId: exampleEnvironment.id,
replicaTimeoutInSeconds: 10,
replicaRetryLimit: 10,
manualTriggerConfig: {
parallelism: 4,
replicaCompletionCount: 1,
},
template: {
containers: [{
image: "repo/testcontainerAppsJob0:v1",
name: "testcontainerappsjob0",
readinessProbes: [{
transport: "HTTP",
port: 5000,
}],
livenessProbes: [{
transport: "HTTP",
port: 5000,
path: "/health",
headers: [{
name: "Cache-Control",
value: "no-cache",
}],
initialDelay: 5,
intervalSeconds: 20,
timeout: 2,
failureCountThreshold: 1,
}],
startupProbes: [{
transport: "TCP",
port: 5000,
}],
cpu: 0.5,
memory: "1Gi",
}],
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
name="example-log-analytics-workspace",
location=example.location,
resource_group_name=example.name,
sku="PerGB2018",
retention_in_days=30)
example_environment = azure.containerapp.Environment("example",
name="example-container-app-environment",
location=example.location,
resource_group_name=example.name,
log_analytics_workspace_id=example_analytics_workspace.id)
example_job = azure.containerapp.Job("example",
name="example-container-app-job",
location=example.location,
resource_group_name=example.name,
container_app_environment_id=example_environment.id,
replica_timeout_in_seconds=10,
replica_retry_limit=10,
manual_trigger_config=azure.containerapp.JobManualTriggerConfigArgs(
parallelism=4,
replica_completion_count=1,
),
template=azure.containerapp.JobTemplateArgs(
containers=[azure.containerapp.JobTemplateContainerArgs(
image="repo/testcontainerAppsJob0:v1",
name="testcontainerappsjob0",
readiness_probes=[azure.containerapp.JobTemplateContainerReadinessProbeArgs(
transport="HTTP",
port=5000,
)],
liveness_probes=[azure.containerapp.JobTemplateContainerLivenessProbeArgs(
transport="HTTP",
port=5000,
path="/health",
headers=[azure.containerapp.JobTemplateContainerLivenessProbeHeaderArgs(
name="Cache-Control",
value="no-cache",
)],
initial_delay=5,
interval_seconds=20,
timeout=2,
failure_count_threshold=1,
)],
startup_probes=[azure.containerapp.JobTemplateContainerStartupProbeArgs(
transport="TCP",
port=5000,
)],
cpu=0.5,
memory="1Gi",
)],
))
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 {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
Name: pulumi.String("example-log-analytics-workspace"),
Location: example.Location,
ResourceGroupName: example.Name,
Sku: pulumi.String("PerGB2018"),
RetentionInDays: pulumi.Int(30),
})
if err != nil {
return err
}
exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{
Name: pulumi.String("example-container-app-environment"),
Location: example.Location,
ResourceGroupName: example.Name,
LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
})
if err != nil {
return err
}
_, err = containerapp.NewJob(ctx, "example", &containerapp.JobArgs{
Name: pulumi.String("example-container-app-job"),
Location: example.Location,
ResourceGroupName: example.Name,
ContainerAppEnvironmentId: exampleEnvironment.ID(),
ReplicaTimeoutInSeconds: pulumi.Int(10),
ReplicaRetryLimit: pulumi.Int(10),
ManualTriggerConfig: &containerapp.JobManualTriggerConfigArgs{
Parallelism: pulumi.Int(4),
ReplicaCompletionCount: pulumi.Int(1),
},
Template: &containerapp.JobTemplateArgs{
Containers: containerapp.JobTemplateContainerArray{
&containerapp.JobTemplateContainerArgs{
Image: pulumi.String("repo/testcontainerAppsJob0:v1"),
Name: pulumi.String("testcontainerappsjob0"),
ReadinessProbes: containerapp.JobTemplateContainerReadinessProbeArray{
&containerapp.JobTemplateContainerReadinessProbeArgs{
Transport: pulumi.String("HTTP"),
Port: pulumi.Int(5000),
},
},
LivenessProbes: containerapp.JobTemplateContainerLivenessProbeArray{
&containerapp.JobTemplateContainerLivenessProbeArgs{
Transport: pulumi.String("HTTP"),
Port: pulumi.Int(5000),
Path: pulumi.String("/health"),
Headers: containerapp.JobTemplateContainerLivenessProbeHeaderArray{
&containerapp.JobTemplateContainerLivenessProbeHeaderArgs{
Name: pulumi.String("Cache-Control"),
Value: pulumi.String("no-cache"),
},
},
InitialDelay: pulumi.Int(5),
IntervalSeconds: pulumi.Int(20),
Timeout: pulumi.Int(2),
FailureCountThreshold: pulumi.Int(1),
},
},
StartupProbes: containerapp.JobTemplateContainerStartupProbeArray{
&containerapp.JobTemplateContainerStartupProbeArgs{
Transport: pulumi.String("TCP"),
Port: pulumi.Int(5000),
},
},
Cpu: pulumi.Float64(0.5),
Memory: pulumi.String("1Gi"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
{
Name = "example-log-analytics-workspace",
Location = example.Location,
ResourceGroupName = example.Name,
Sku = "PerGB2018",
RetentionInDays = 30,
});
var exampleEnvironment = new Azure.ContainerApp.Environment("example", new()
{
Name = "example-container-app-environment",
Location = example.Location,
ResourceGroupName = example.Name,
LogAnalyticsWorkspaceId = exampleAnalyticsWorkspace.Id,
});
var exampleJob = new Azure.ContainerApp.Job("example", new()
{
Name = "example-container-app-job",
Location = example.Location,
ResourceGroupName = example.Name,
ContainerAppEnvironmentId = exampleEnvironment.Id,
ReplicaTimeoutInSeconds = 10,
ReplicaRetryLimit = 10,
ManualTriggerConfig = new Azure.ContainerApp.Inputs.JobManualTriggerConfigArgs
{
Parallelism = 4,
ReplicaCompletionCount = 1,
},
Template = new Azure.ContainerApp.Inputs.JobTemplateArgs
{
Containers = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerArgs
{
Image = "repo/testcontainerAppsJob0:v1",
Name = "testcontainerappsjob0",
ReadinessProbes = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerReadinessProbeArgs
{
Transport = "HTTP",
Port = 5000,
},
},
LivenessProbes = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerLivenessProbeArgs
{
Transport = "HTTP",
Port = 5000,
Path = "/health",
Headers = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerLivenessProbeHeaderArgs
{
Name = "Cache-Control",
Value = "no-cache",
},
},
InitialDelay = 5,
IntervalSeconds = 20,
Timeout = 2,
FailureCountThreshold = 1,
},
},
StartupProbes = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerStartupProbeArgs
{
Transport = "TCP",
Port = 5000,
},
},
Cpu = 0.5,
Memory = "1Gi",
},
},
},
});
});
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.Job;
import com.pulumi.azure.containerapp.JobArgs;
import com.pulumi.azure.containerapp.inputs.JobManualTriggerConfigArgs;
import com.pulumi.azure.containerapp.inputs.JobTemplateArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.name("example-log-analytics-workspace")
.location(example.location())
.resourceGroupName(example.name())
.sku("PerGB2018")
.retentionInDays(30)
.build());
var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
.name("example-container-app-environment")
.location(example.location())
.resourceGroupName(example.name())
.logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
.build());
var exampleJob = new Job("exampleJob", JobArgs.builder()
.name("example-container-app-job")
.location(example.location())
.resourceGroupName(example.name())
.containerAppEnvironmentId(exampleEnvironment.id())
.replicaTimeoutInSeconds(10)
.replicaRetryLimit(10)
.manualTriggerConfig(JobManualTriggerConfigArgs.builder()
.parallelism(4)
.replicaCompletionCount(1)
.build())
.template(JobTemplateArgs.builder()
.containers(JobTemplateContainerArgs.builder()
.image("repo/testcontainerAppsJob0:v1")
.name("testcontainerappsjob0")
.readinessProbes(JobTemplateContainerReadinessProbeArgs.builder()
.transport("HTTP")
.port(5000)
.build())
.livenessProbes(JobTemplateContainerLivenessProbeArgs.builder()
.transport("HTTP")
.port(5000)
.path("/health")
.headers(JobTemplateContainerLivenessProbeHeaderArgs.builder()
.name("Cache-Control")
.value("no-cache")
.build())
.initialDelay(5)
.intervalSeconds(20)
.timeout(2)
.failureCountThreshold(1)
.build())
.startupProbes(JobTemplateContainerStartupProbeArgs.builder()
.transport("TCP")
.port(5000)
.build())
.cpu(0.5)
.memory("1Gi")
.build())
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAnalyticsWorkspace:
type: azure:operationalinsights:AnalyticsWorkspace
name: example
properties:
name: example-log-analytics-workspace
location: ${example.location}
resourceGroupName: ${example.name}
sku: PerGB2018
retentionInDays: 30
exampleEnvironment:
type: azure:containerapp:Environment
name: example
properties:
name: example-container-app-environment
location: ${example.location}
resourceGroupName: ${example.name}
logAnalyticsWorkspaceId: ${exampleAnalyticsWorkspace.id}
exampleJob:
type: azure:containerapp:Job
name: example
properties:
name: example-container-app-job
location: ${example.location}
resourceGroupName: ${example.name}
containerAppEnvironmentId: ${exampleEnvironment.id}
replicaTimeoutInSeconds: 10
replicaRetryLimit: 10
manualTriggerConfig:
parallelism: 4
replicaCompletionCount: 1
template:
containers:
- image: repo/testcontainerAppsJob0:v1
name: testcontainerappsjob0
readinessProbes:
- transport: HTTP
port: 5000
livenessProbes:
- transport: HTTP
port: 5000
path: /health
headers:
- name: Cache-Control
value: no-cache
initialDelay: 5
intervalSeconds: 20
timeout: 2
failureCountThreshold: 1
startupProbes:
- transport: TCP
port: 5000
cpu: 0.5
memory: 1Gi
Create Job Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Job(name: string, args: JobArgs, opts?: CustomResourceOptions);
@overload
def Job(resource_name: str,
args: JobArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Job(resource_name: str,
opts: Optional[ResourceOptions] = None,
container_app_environment_id: Optional[str] = None,
template: Optional[JobTemplateArgs] = None,
resource_group_name: Optional[str] = None,
replica_timeout_in_seconds: Optional[int] = None,
replica_retry_limit: Optional[int] = None,
name: Optional[str] = None,
registries: Optional[Sequence[JobRegistryArgs]] = None,
registry: Optional[Sequence[JobRegistryArgs]] = None,
manual_trigger_config: Optional[JobManualTriggerConfigArgs] = None,
location: Optional[str] = None,
identity: Optional[JobIdentityArgs] = None,
schedule_trigger_config: Optional[JobScheduleTriggerConfigArgs] = None,
secret: Optional[Sequence[JobSecretArgs]] = None,
secrets: Optional[Sequence[JobSecretArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
event_trigger_config: Optional[JobEventTriggerConfigArgs] = None,
workload_profile_name: Optional[str] = None)
func NewJob(ctx *Context, name string, args JobArgs, opts ...ResourceOption) (*Job, error)
public Job(string name, JobArgs args, CustomResourceOptions? opts = null)
type: azure:containerapp:Job
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args JobArgs
- 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 JobArgs
- 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 JobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureJobResource = new Azure.ContainerApp.Job("azureJobResource", new()
{
ContainerAppEnvironmentId = "string",
Template = new Azure.ContainerApp.Inputs.JobTemplateArgs
{
Containers = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerArgs
{
Cpu = 0,
Image = "string",
Memory = "string",
Name = "string",
Args = new[]
{
"string",
},
Commands = new[]
{
"string",
},
Envs = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerEnvArgs
{
Name = "string",
SecretName = "string",
Value = "string",
},
},
EphemeralStorage = "string",
LivenessProbes = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerLivenessProbeArgs
{
Port = 0,
Transport = "string",
FailureCountThreshold = 0,
Headers = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerLivenessProbeHeaderArgs
{
Name = "string",
Value = "string",
},
},
Host = "string",
InitialDelay = 0,
IntervalSeconds = 0,
Path = "string",
TerminationGracePeriodSeconds = 0,
Timeout = 0,
},
},
ReadinessProbes = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerReadinessProbeArgs
{
Port = 0,
Transport = "string",
FailureCountThreshold = 0,
Headers = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerReadinessProbeHeaderArgs
{
Name = "string",
Value = "string",
},
},
Host = "string",
IntervalSeconds = 0,
Path = "string",
SuccessCountThreshold = 0,
Timeout = 0,
},
},
StartupProbes = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerStartupProbeArgs
{
Port = 0,
Transport = "string",
FailureCountThreshold = 0,
Headers = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerStartupProbeHeaderArgs
{
Name = "string",
Value = "string",
},
},
Host = "string",
IntervalSeconds = 0,
Path = "string",
TerminationGracePeriodSeconds = 0,
Timeout = 0,
},
},
VolumeMounts = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateContainerVolumeMountArgs
{
Name = "string",
Path = "string",
},
},
},
},
InitContainers = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateInitContainerArgs
{
Image = "string",
Name = "string",
Args = new[]
{
"string",
},
Commands = new[]
{
"string",
},
Cpu = 0,
Envs = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateInitContainerEnvArgs
{
Name = "string",
SecretName = "string",
Value = "string",
},
},
EphemeralStorage = "string",
Memory = "string",
VolumeMounts = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateInitContainerVolumeMountArgs
{
Name = "string",
Path = "string",
},
},
},
},
Volumes = new[]
{
new Azure.ContainerApp.Inputs.JobTemplateVolumeArgs
{
Name = "string",
StorageName = "string",
StorageType = "string",
},
},
},
ResourceGroupName = "string",
ReplicaTimeoutInSeconds = 0,
ReplicaRetryLimit = 0,
Name = "string",
Registry = new[]
{
new Azure.ContainerApp.Inputs.JobRegistryArgs
{
Server = "string",
Identity = "string",
PasswordSecretName = "string",
Username = "string",
},
},
ManualTriggerConfig = new Azure.ContainerApp.Inputs.JobManualTriggerConfigArgs
{
Parallelism = 0,
ReplicaCompletionCount = 0,
},
Location = "string",
Identity = new Azure.ContainerApp.Inputs.JobIdentityArgs
{
Type = "string",
IdentityIds = new[]
{
"string",
},
PrincipalId = "string",
TenantId = "string",
},
ScheduleTriggerConfig = new Azure.ContainerApp.Inputs.JobScheduleTriggerConfigArgs
{
CronExpression = "string",
Parallelism = 0,
ReplicaCompletionCount = 0,
},
Secret = new[]
{
new Azure.ContainerApp.Inputs.JobSecretArgs
{
Name = "string",
Identity = "string",
KeyVaultSecretId = "string",
Value = "string",
},
},
Tags =
{
{ "string", "string" },
},
EventTriggerConfig = new Azure.ContainerApp.Inputs.JobEventTriggerConfigArgs
{
Parallelism = 0,
ReplicaCompletionCount = 0,
Scales = new[]
{
new Azure.ContainerApp.Inputs.JobEventTriggerConfigScaleArgs
{
MaxExecutions = 0,
MinExecutions = 0,
PollingIntervalInSeconds = 0,
Rules = new[]
{
new Azure.ContainerApp.Inputs.JobEventTriggerConfigScaleRuleArgs
{
CustomRuleType = "string",
Metadata =
{
{ "string", "string" },
},
Name = "string",
Authentications = new[]
{
new Azure.ContainerApp.Inputs.JobEventTriggerConfigScaleRuleAuthenticationArgs
{
SecretName = "string",
TriggerParameter = "string",
},
},
},
},
},
},
},
WorkloadProfileName = "string",
});
example, err := containerapp.NewJob(ctx, "azureJobResource", &containerapp.JobArgs{
ContainerAppEnvironmentId: pulumi.String("string"),
Template: &containerapp.JobTemplateArgs{
Containers: containerapp.JobTemplateContainerArray{
&containerapp.JobTemplateContainerArgs{
Cpu: pulumi.Float64(0),
Image: pulumi.String("string"),
Memory: pulumi.String("string"),
Name: pulumi.String("string"),
Args: pulumi.StringArray{
pulumi.String("string"),
},
Commands: pulumi.StringArray{
pulumi.String("string"),
},
Envs: containerapp.JobTemplateContainerEnvArray{
&containerapp.JobTemplateContainerEnvArgs{
Name: pulumi.String("string"),
SecretName: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
EphemeralStorage: pulumi.String("string"),
LivenessProbes: containerapp.JobTemplateContainerLivenessProbeArray{
&containerapp.JobTemplateContainerLivenessProbeArgs{
Port: pulumi.Int(0),
Transport: pulumi.String("string"),
FailureCountThreshold: pulumi.Int(0),
Headers: containerapp.JobTemplateContainerLivenessProbeHeaderArray{
&containerapp.JobTemplateContainerLivenessProbeHeaderArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Host: pulumi.String("string"),
InitialDelay: pulumi.Int(0),
IntervalSeconds: pulumi.Int(0),
Path: pulumi.String("string"),
TerminationGracePeriodSeconds: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
},
ReadinessProbes: containerapp.JobTemplateContainerReadinessProbeArray{
&containerapp.JobTemplateContainerReadinessProbeArgs{
Port: pulumi.Int(0),
Transport: pulumi.String("string"),
FailureCountThreshold: pulumi.Int(0),
Headers: containerapp.JobTemplateContainerReadinessProbeHeaderArray{
&containerapp.JobTemplateContainerReadinessProbeHeaderArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Host: pulumi.String("string"),
IntervalSeconds: pulumi.Int(0),
Path: pulumi.String("string"),
SuccessCountThreshold: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
},
StartupProbes: containerapp.JobTemplateContainerStartupProbeArray{
&containerapp.JobTemplateContainerStartupProbeArgs{
Port: pulumi.Int(0),
Transport: pulumi.String("string"),
FailureCountThreshold: pulumi.Int(0),
Headers: containerapp.JobTemplateContainerStartupProbeHeaderArray{
&containerapp.JobTemplateContainerStartupProbeHeaderArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Host: pulumi.String("string"),
IntervalSeconds: pulumi.Int(0),
Path: pulumi.String("string"),
TerminationGracePeriodSeconds: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
},
VolumeMounts: containerapp.JobTemplateContainerVolumeMountArray{
&containerapp.JobTemplateContainerVolumeMountArgs{
Name: pulumi.String("string"),
Path: pulumi.String("string"),
},
},
},
},
InitContainers: containerapp.JobTemplateInitContainerArray{
&containerapp.JobTemplateInitContainerArgs{
Image: pulumi.String("string"),
Name: pulumi.String("string"),
Args: pulumi.StringArray{
pulumi.String("string"),
},
Commands: pulumi.StringArray{
pulumi.String("string"),
},
Cpu: pulumi.Float64(0),
Envs: containerapp.JobTemplateInitContainerEnvArray{
&containerapp.JobTemplateInitContainerEnvArgs{
Name: pulumi.String("string"),
SecretName: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
EphemeralStorage: pulumi.String("string"),
Memory: pulumi.String("string"),
VolumeMounts: containerapp.JobTemplateInitContainerVolumeMountArray{
&containerapp.JobTemplateInitContainerVolumeMountArgs{
Name: pulumi.String("string"),
Path: pulumi.String("string"),
},
},
},
},
Volumes: containerapp.JobTemplateVolumeArray{
&containerapp.JobTemplateVolumeArgs{
Name: pulumi.String("string"),
StorageName: pulumi.String("string"),
StorageType: pulumi.String("string"),
},
},
},
ResourceGroupName: pulumi.String("string"),
ReplicaTimeoutInSeconds: pulumi.Int(0),
ReplicaRetryLimit: pulumi.Int(0),
Name: pulumi.String("string"),
Registry: containerapp.JobRegistryArray{
&containerapp.JobRegistryArgs{
Server: pulumi.String("string"),
Identity: pulumi.String("string"),
PasswordSecretName: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
ManualTriggerConfig: &containerapp.JobManualTriggerConfigArgs{
Parallelism: pulumi.Int(0),
ReplicaCompletionCount: pulumi.Int(0),
},
Location: pulumi.String("string"),
Identity: &containerapp.JobIdentityArgs{
Type: pulumi.String("string"),
IdentityIds: pulumi.StringArray{
pulumi.String("string"),
},
PrincipalId: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
ScheduleTriggerConfig: &containerapp.JobScheduleTriggerConfigArgs{
CronExpression: pulumi.String("string"),
Parallelism: pulumi.Int(0),
ReplicaCompletionCount: pulumi.Int(0),
},
Secret: containerapp.JobSecretArray{
&containerapp.JobSecretArgs{
Name: pulumi.String("string"),
Identity: pulumi.String("string"),
KeyVaultSecretId: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
EventTriggerConfig: &containerapp.JobEventTriggerConfigArgs{
Parallelism: pulumi.Int(0),
ReplicaCompletionCount: pulumi.Int(0),
Scales: containerapp.JobEventTriggerConfigScaleArray{
&containerapp.JobEventTriggerConfigScaleArgs{
MaxExecutions: pulumi.Int(0),
MinExecutions: pulumi.Int(0),
PollingIntervalInSeconds: pulumi.Int(0),
Rules: containerapp.JobEventTriggerConfigScaleRuleArray{
&containerapp.JobEventTriggerConfigScaleRuleArgs{
CustomRuleType: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Authentications: containerapp.JobEventTriggerConfigScaleRuleAuthenticationArray{
&containerapp.JobEventTriggerConfigScaleRuleAuthenticationArgs{
SecretName: pulumi.String("string"),
TriggerParameter: pulumi.String("string"),
},
},
},
},
},
},
},
WorkloadProfileName: pulumi.String("string"),
})
var azureJobResource = new Job("azureJobResource", JobArgs.builder()
.containerAppEnvironmentId("string")
.template(JobTemplateArgs.builder()
.containers(JobTemplateContainerArgs.builder()
.cpu(0)
.image("string")
.memory("string")
.name("string")
.args("string")
.commands("string")
.envs(JobTemplateContainerEnvArgs.builder()
.name("string")
.secretName("string")
.value("string")
.build())
.ephemeralStorage("string")
.livenessProbes(JobTemplateContainerLivenessProbeArgs.builder()
.port(0)
.transport("string")
.failureCountThreshold(0)
.headers(JobTemplateContainerLivenessProbeHeaderArgs.builder()
.name("string")
.value("string")
.build())
.host("string")
.initialDelay(0)
.intervalSeconds(0)
.path("string")
.terminationGracePeriodSeconds(0)
.timeout(0)
.build())
.readinessProbes(JobTemplateContainerReadinessProbeArgs.builder()
.port(0)
.transport("string")
.failureCountThreshold(0)
.headers(JobTemplateContainerReadinessProbeHeaderArgs.builder()
.name("string")
.value("string")
.build())
.host("string")
.intervalSeconds(0)
.path("string")
.successCountThreshold(0)
.timeout(0)
.build())
.startupProbes(JobTemplateContainerStartupProbeArgs.builder()
.port(0)
.transport("string")
.failureCountThreshold(0)
.headers(JobTemplateContainerStartupProbeHeaderArgs.builder()
.name("string")
.value("string")
.build())
.host("string")
.intervalSeconds(0)
.path("string")
.terminationGracePeriodSeconds(0)
.timeout(0)
.build())
.volumeMounts(JobTemplateContainerVolumeMountArgs.builder()
.name("string")
.path("string")
.build())
.build())
.initContainers(JobTemplateInitContainerArgs.builder()
.image("string")
.name("string")
.args("string")
.commands("string")
.cpu(0)
.envs(JobTemplateInitContainerEnvArgs.builder()
.name("string")
.secretName("string")
.value("string")
.build())
.ephemeralStorage("string")
.memory("string")
.volumeMounts(JobTemplateInitContainerVolumeMountArgs.builder()
.name("string")
.path("string")
.build())
.build())
.volumes(JobTemplateVolumeArgs.builder()
.name("string")
.storageName("string")
.storageType("string")
.build())
.build())
.resourceGroupName("string")
.replicaTimeoutInSeconds(0)
.replicaRetryLimit(0)
.name("string")
.registry(JobRegistryArgs.builder()
.server("string")
.identity("string")
.passwordSecretName("string")
.username("string")
.build())
.manualTriggerConfig(JobManualTriggerConfigArgs.builder()
.parallelism(0)
.replicaCompletionCount(0)
.build())
.location("string")
.identity(JobIdentityArgs.builder()
.type("string")
.identityIds("string")
.principalId("string")
.tenantId("string")
.build())
.scheduleTriggerConfig(JobScheduleTriggerConfigArgs.builder()
.cronExpression("string")
.parallelism(0)
.replicaCompletionCount(0)
.build())
.secret(JobSecretArgs.builder()
.name("string")
.identity("string")
.keyVaultSecretId("string")
.value("string")
.build())
.tags(Map.of("string", "string"))
.eventTriggerConfig(JobEventTriggerConfigArgs.builder()
.parallelism(0)
.replicaCompletionCount(0)
.scales(JobEventTriggerConfigScaleArgs.builder()
.maxExecutions(0)
.minExecutions(0)
.pollingIntervalInSeconds(0)
.rules(JobEventTriggerConfigScaleRuleArgs.builder()
.customRuleType("string")
.metadata(Map.of("string", "string"))
.name("string")
.authentications(JobEventTriggerConfigScaleRuleAuthenticationArgs.builder()
.secretName("string")
.triggerParameter("string")
.build())
.build())
.build())
.build())
.workloadProfileName("string")
.build());
azure_job_resource = azure.containerapp.Job("azureJobResource",
container_app_environment_id="string",
template=azure.containerapp.JobTemplateArgs(
containers=[azure.containerapp.JobTemplateContainerArgs(
cpu=0,
image="string",
memory="string",
name="string",
args=["string"],
commands=["string"],
envs=[azure.containerapp.JobTemplateContainerEnvArgs(
name="string",
secret_name="string",
value="string",
)],
ephemeral_storage="string",
liveness_probes=[azure.containerapp.JobTemplateContainerLivenessProbeArgs(
port=0,
transport="string",
failure_count_threshold=0,
headers=[azure.containerapp.JobTemplateContainerLivenessProbeHeaderArgs(
name="string",
value="string",
)],
host="string",
initial_delay=0,
interval_seconds=0,
path="string",
termination_grace_period_seconds=0,
timeout=0,
)],
readiness_probes=[azure.containerapp.JobTemplateContainerReadinessProbeArgs(
port=0,
transport="string",
failure_count_threshold=0,
headers=[azure.containerapp.JobTemplateContainerReadinessProbeHeaderArgs(
name="string",
value="string",
)],
host="string",
interval_seconds=0,
path="string",
success_count_threshold=0,
timeout=0,
)],
startup_probes=[azure.containerapp.JobTemplateContainerStartupProbeArgs(
port=0,
transport="string",
failure_count_threshold=0,
headers=[azure.containerapp.JobTemplateContainerStartupProbeHeaderArgs(
name="string",
value="string",
)],
host="string",
interval_seconds=0,
path="string",
termination_grace_period_seconds=0,
timeout=0,
)],
volume_mounts=[azure.containerapp.JobTemplateContainerVolumeMountArgs(
name="string",
path="string",
)],
)],
init_containers=[azure.containerapp.JobTemplateInitContainerArgs(
image="string",
name="string",
args=["string"],
commands=["string"],
cpu=0,
envs=[azure.containerapp.JobTemplateInitContainerEnvArgs(
name="string",
secret_name="string",
value="string",
)],
ephemeral_storage="string",
memory="string",
volume_mounts=[azure.containerapp.JobTemplateInitContainerVolumeMountArgs(
name="string",
path="string",
)],
)],
volumes=[azure.containerapp.JobTemplateVolumeArgs(
name="string",
storage_name="string",
storage_type="string",
)],
),
resource_group_name="string",
replica_timeout_in_seconds=0,
replica_retry_limit=0,
name="string",
registry=[azure.containerapp.JobRegistryArgs(
server="string",
identity="string",
password_secret_name="string",
username="string",
)],
manual_trigger_config=azure.containerapp.JobManualTriggerConfigArgs(
parallelism=0,
replica_completion_count=0,
),
location="string",
identity=azure.containerapp.JobIdentityArgs(
type="string",
identity_ids=["string"],
principal_id="string",
tenant_id="string",
),
schedule_trigger_config=azure.containerapp.JobScheduleTriggerConfigArgs(
cron_expression="string",
parallelism=0,
replica_completion_count=0,
),
secret=[azure.containerapp.JobSecretArgs(
name="string",
identity="string",
key_vault_secret_id="string",
value="string",
)],
tags={
"string": "string",
},
event_trigger_config=azure.containerapp.JobEventTriggerConfigArgs(
parallelism=0,
replica_completion_count=0,
scales=[azure.containerapp.JobEventTriggerConfigScaleArgs(
max_executions=0,
min_executions=0,
polling_interval_in_seconds=0,
rules=[azure.containerapp.JobEventTriggerConfigScaleRuleArgs(
custom_rule_type="string",
metadata={
"string": "string",
},
name="string",
authentications=[azure.containerapp.JobEventTriggerConfigScaleRuleAuthenticationArgs(
secret_name="string",
trigger_parameter="string",
)],
)],
)],
),
workload_profile_name="string")
const azureJobResource = new azure.containerapp.Job("azureJobResource", {
containerAppEnvironmentId: "string",
template: {
containers: [{
cpu: 0,
image: "string",
memory: "string",
name: "string",
args: ["string"],
commands: ["string"],
envs: [{
name: "string",
secretName: "string",
value: "string",
}],
ephemeralStorage: "string",
livenessProbes: [{
port: 0,
transport: "string",
failureCountThreshold: 0,
headers: [{
name: "string",
value: "string",
}],
host: "string",
initialDelay: 0,
intervalSeconds: 0,
path: "string",
terminationGracePeriodSeconds: 0,
timeout: 0,
}],
readinessProbes: [{
port: 0,
transport: "string",
failureCountThreshold: 0,
headers: [{
name: "string",
value: "string",
}],
host: "string",
intervalSeconds: 0,
path: "string",
successCountThreshold: 0,
timeout: 0,
}],
startupProbes: [{
port: 0,
transport: "string",
failureCountThreshold: 0,
headers: [{
name: "string",
value: "string",
}],
host: "string",
intervalSeconds: 0,
path: "string",
terminationGracePeriodSeconds: 0,
timeout: 0,
}],
volumeMounts: [{
name: "string",
path: "string",
}],
}],
initContainers: [{
image: "string",
name: "string",
args: ["string"],
commands: ["string"],
cpu: 0,
envs: [{
name: "string",
secretName: "string",
value: "string",
}],
ephemeralStorage: "string",
memory: "string",
volumeMounts: [{
name: "string",
path: "string",
}],
}],
volumes: [{
name: "string",
storageName: "string",
storageType: "string",
}],
},
resourceGroupName: "string",
replicaTimeoutInSeconds: 0,
replicaRetryLimit: 0,
name: "string",
registry: [{
server: "string",
identity: "string",
passwordSecretName: "string",
username: "string",
}],
manualTriggerConfig: {
parallelism: 0,
replicaCompletionCount: 0,
},
location: "string",
identity: {
type: "string",
identityIds: ["string"],
principalId: "string",
tenantId: "string",
},
scheduleTriggerConfig: {
cronExpression: "string",
parallelism: 0,
replicaCompletionCount: 0,
},
secret: [{
name: "string",
identity: "string",
keyVaultSecretId: "string",
value: "string",
}],
tags: {
string: "string",
},
eventTriggerConfig: {
parallelism: 0,
replicaCompletionCount: 0,
scales: [{
maxExecutions: 0,
minExecutions: 0,
pollingIntervalInSeconds: 0,
rules: [{
customRuleType: "string",
metadata: {
string: "string",
},
name: "string",
authentications: [{
secretName: "string",
triggerParameter: "string",
}],
}],
}],
},
workloadProfileName: "string",
});
type: azure:containerapp:Job
properties:
containerAppEnvironmentId: string
eventTriggerConfig:
parallelism: 0
replicaCompletionCount: 0
scales:
- maxExecutions: 0
minExecutions: 0
pollingIntervalInSeconds: 0
rules:
- authentications:
- secretName: string
triggerParameter: string
customRuleType: string
metadata:
string: string
name: string
identity:
identityIds:
- string
principalId: string
tenantId: string
type: string
location: string
manualTriggerConfig:
parallelism: 0
replicaCompletionCount: 0
name: string
registry:
- identity: string
passwordSecretName: string
server: string
username: string
replicaRetryLimit: 0
replicaTimeoutInSeconds: 0
resourceGroupName: string
scheduleTriggerConfig:
cronExpression: string
parallelism: 0
replicaCompletionCount: 0
secret:
- identity: string
keyVaultSecretId: string
name: string
value: string
tags:
string: string
template:
containers:
- args:
- string
commands:
- string
cpu: 0
envs:
- name: string
secretName: string
value: string
ephemeralStorage: string
image: string
livenessProbes:
- failureCountThreshold: 0
headers:
- name: string
value: string
host: string
initialDelay: 0
intervalSeconds: 0
path: string
port: 0
terminationGracePeriodSeconds: 0
timeout: 0
transport: string
memory: string
name: string
readinessProbes:
- failureCountThreshold: 0
headers:
- name: string
value: string
host: string
intervalSeconds: 0
path: string
port: 0
successCountThreshold: 0
timeout: 0
transport: string
startupProbes:
- failureCountThreshold: 0
headers:
- name: string
value: string
host: string
intervalSeconds: 0
path: string
port: 0
terminationGracePeriodSeconds: 0
timeout: 0
transport: string
volumeMounts:
- name: string
path: string
initContainers:
- args:
- string
commands:
- string
cpu: 0
envs:
- name: string
secretName: string
value: string
ephemeralStorage: string
image: string
memory: string
name: string
volumeMounts:
- name: string
path: string
volumes:
- name: string
storageName: string
storageType: string
workloadProfileName: string
Job 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 Job resource accepts the following input properties:
- Container
App stringEnvironment Id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- Replica
Timeout intIn Seconds - The maximum number of seconds a replica is allowed to run.
- Resource
Group stringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- Template
Job
Template - A
template
block as defined below. - Event
Trigger JobConfig Event Trigger Config - A
event_trigger_config
block as defined below. - Identity
Job
Identity - A
identity
block as defined below. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Manual
Trigger JobConfig Manual Trigger Config - A
manual_trigger_config
block as defined below. - Name string
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- Registries
List<Job
Registry> - Registry
List<Job
Registry> - One or more
registry
blocks as defined below. - Replica
Retry intLimit - The maximum number of times a replica is allowed to retry.
- Schedule
Trigger JobConfig Schedule Trigger Config A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- Secret
List<Job
Secret> - One or more
secret
blocks as defined below. - Secrets
List<Job
Secret> - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Workload
Profile stringName - The name of the workload profile to use for the Container App Job.
- Container
App stringEnvironment Id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- Replica
Timeout intIn Seconds - The maximum number of seconds a replica is allowed to run.
- Resource
Group stringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- Template
Job
Template Args - A
template
block as defined below. - Event
Trigger JobConfig Event Trigger Config Args - A
event_trigger_config
block as defined below. - Identity
Job
Identity Args - A
identity
block as defined below. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Manual
Trigger JobConfig Manual Trigger Config Args - A
manual_trigger_config
block as defined below. - Name string
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- Registries
[]Job
Registry Args - Registry
[]Job
Registry Args - One or more
registry
blocks as defined below. - Replica
Retry intLimit - The maximum number of times a replica is allowed to retry.
- Schedule
Trigger JobConfig Schedule Trigger Config Args A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- Secret
[]Job
Secret Args - One or more
secret
blocks as defined below. - Secrets
[]Job
Secret Args - map[string]string
- A mapping of tags to assign to the resource.
- Workload
Profile stringName - The name of the workload profile to use for the Container App Job.
- container
App StringEnvironment Id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- replica
Timeout IntegerIn Seconds - The maximum number of seconds a replica is allowed to run.
- resource
Group StringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- template
Job
Template - A
template
block as defined below. - event
Trigger JobConfig Event Trigger Config - A
event_trigger_config
block as defined below. - identity
Job
Identity - A
identity
block as defined below. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- manual
Trigger JobConfig Manual Trigger Config - A
manual_trigger_config
block as defined below. - name String
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- registries
List<Job
Registry> - registry
List<Job
Registry> - One or more
registry
blocks as defined below. - replica
Retry IntegerLimit - The maximum number of times a replica is allowed to retry.
- schedule
Trigger JobConfig Schedule Trigger Config A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- secret
List<Job
Secret> - One or more
secret
blocks as defined below. - secrets
List<Job
Secret> - Map<String,String>
- A mapping of tags to assign to the resource.
- workload
Profile StringName - The name of the workload profile to use for the Container App Job.
- container
App stringEnvironment Id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- replica
Timeout numberIn Seconds - The maximum number of seconds a replica is allowed to run.
- resource
Group stringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- template
Job
Template - A
template
block as defined below. - event
Trigger JobConfig Event Trigger Config - A
event_trigger_config
block as defined below. - identity
Job
Identity - A
identity
block as defined below. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- manual
Trigger JobConfig Manual Trigger Config - A
manual_trigger_config
block as defined below. - name string
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- registries
Job
Registry[] - registry
Job
Registry[] - One or more
registry
blocks as defined below. - replica
Retry numberLimit - The maximum number of times a replica is allowed to retry.
- schedule
Trigger JobConfig Schedule Trigger Config A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- secret
Job
Secret[] - One or more
secret
blocks as defined below. - secrets
Job
Secret[] - {[key: string]: string}
- A mapping of tags to assign to the resource.
- workload
Profile stringName - The name of the workload profile to use for the Container App Job.
- container_
app_ strenvironment_ id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- replica_
timeout_ intin_ seconds - The maximum number of seconds a replica is allowed to run.
- resource_
group_ strname - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- template
Job
Template Args - A
template
block as defined below. - event_
trigger_ Jobconfig Event Trigger Config Args - A
event_trigger_config
block as defined below. - identity
Job
Identity Args - A
identity
block as defined below. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- manual_
trigger_ Jobconfig Manual Trigger Config Args - A
manual_trigger_config
block as defined below. - name str
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- registries
Sequence[Job
Registry Args] - registry
Sequence[Job
Registry Args] - One or more
registry
blocks as defined below. - replica_
retry_ intlimit - The maximum number of times a replica is allowed to retry.
- schedule_
trigger_ Jobconfig Schedule Trigger Config Args A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- secret
Sequence[Job
Secret Args] - One or more
secret
blocks as defined below. - secrets
Sequence[Job
Secret Args] - Mapping[str, str]
- A mapping of tags to assign to the resource.
- workload_
profile_ strname - The name of the workload profile to use for the Container App Job.
- container
App StringEnvironment Id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- replica
Timeout NumberIn Seconds - The maximum number of seconds a replica is allowed to run.
- resource
Group StringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- template Property Map
- A
template
block as defined below. - event
Trigger Property MapConfig - A
event_trigger_config
block as defined below. - identity Property Map
- A
identity
block as defined below. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- manual
Trigger Property MapConfig - A
manual_trigger_config
block as defined below. - name String
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- registries List<Property Map>
- registry List<Property Map>
- One or more
registry
blocks as defined below. - replica
Retry NumberLimit - The maximum number of times a replica is allowed to retry.
- schedule
Trigger Property MapConfig A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- secret List<Property Map>
- One or more
secret
blocks as defined below. - secrets List<Property Map>
- Map<String>
- A mapping of tags to assign to the resource.
- workload
Profile StringName - The name of the workload profile to use for the Container App Job.
Outputs
All input properties are implicitly available as output properties. Additionally, the Job resource produces the following output properties:
- Event
Stream stringEndpoint - The endpoint for the Container App Job event stream.
- Id string
- The provider-assigned unique ID for this managed resource.
- Outbound
Ip List<string>Addresses - A list of the Public IP Addresses which the Container App uses for outbound network access.
- Event
Stream stringEndpoint - The endpoint for the Container App Job event stream.
- Id string
- The provider-assigned unique ID for this managed resource.
- Outbound
Ip []stringAddresses - A list of the Public IP Addresses which the Container App uses for outbound network access.
- event
Stream StringEndpoint - The endpoint for the Container App Job event stream.
- id String
- The provider-assigned unique ID for this managed resource.
- outbound
Ip List<String>Addresses - A list of the Public IP Addresses which the Container App uses for outbound network access.
- event
Stream stringEndpoint - The endpoint for the Container App Job event stream.
- id string
- The provider-assigned unique ID for this managed resource.
- outbound
Ip string[]Addresses - A list of the Public IP Addresses which the Container App uses for outbound network access.
- event_
stream_ strendpoint - The endpoint for the Container App Job event stream.
- id str
- The provider-assigned unique ID for this managed resource.
- outbound_
ip_ Sequence[str]addresses - A list of the Public IP Addresses which the Container App uses for outbound network access.
- event
Stream StringEndpoint - The endpoint for the Container App Job event stream.
- id String
- The provider-assigned unique ID for this managed resource.
- outbound
Ip List<String>Addresses - A list of the Public IP Addresses which the Container App uses for outbound network access.
Look up Existing Job Resource
Get an existing Job 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?: JobState, opts?: CustomResourceOptions): Job
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
container_app_environment_id: Optional[str] = None,
event_stream_endpoint: Optional[str] = None,
event_trigger_config: Optional[JobEventTriggerConfigArgs] = None,
identity: Optional[JobIdentityArgs] = None,
location: Optional[str] = None,
manual_trigger_config: Optional[JobManualTriggerConfigArgs] = None,
name: Optional[str] = None,
outbound_ip_addresses: Optional[Sequence[str]] = None,
registries: Optional[Sequence[JobRegistryArgs]] = None,
registry: Optional[Sequence[JobRegistryArgs]] = None,
replica_retry_limit: Optional[int] = None,
replica_timeout_in_seconds: Optional[int] = None,
resource_group_name: Optional[str] = None,
schedule_trigger_config: Optional[JobScheduleTriggerConfigArgs] = None,
secret: Optional[Sequence[JobSecretArgs]] = None,
secrets: Optional[Sequence[JobSecretArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
template: Optional[JobTemplateArgs] = None,
workload_profile_name: Optional[str] = None) -> Job
func GetJob(ctx *Context, name string, id IDInput, state *JobState, opts ...ResourceOption) (*Job, error)
public static Job Get(string name, Input<string> id, JobState? state, CustomResourceOptions? opts = null)
public static Job get(String name, Output<String> id, JobState 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 in which to create the Container App Job. Changing this forces a new resource to be created.
- Event
Stream stringEndpoint - The endpoint for the Container App Job event stream.
- Event
Trigger JobConfig Event Trigger Config - A
event_trigger_config
block as defined below. - Identity
Job
Identity - A
identity
block as defined below. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Manual
Trigger JobConfig Manual Trigger Config - A
manual_trigger_config
block as defined below. - Name string
- Specifies the name of the Container App Job resource. 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<Job
Registry> - Registry
List<Job
Registry> - One or more
registry
blocks as defined below. - Replica
Retry intLimit - The maximum number of times a replica is allowed to retry.
- Replica
Timeout intIn Seconds - The maximum number of seconds a replica is allowed to run.
- Resource
Group stringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- Schedule
Trigger JobConfig Schedule Trigger Config A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- Secret
List<Job
Secret> - One or more
secret
blocks as defined below. - Secrets
List<Job
Secret> - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Template
Job
Template - A
template
block as defined below. - Workload
Profile stringName - The name of the workload profile to use for the Container App Job.
- Container
App stringEnvironment Id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- Event
Stream stringEndpoint - The endpoint for the Container App Job event stream.
- Event
Trigger JobConfig Event Trigger Config Args - A
event_trigger_config
block as defined below. - Identity
Job
Identity Args - A
identity
block as defined below. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Manual
Trigger JobConfig Manual Trigger Config Args - A
manual_trigger_config
block as defined below. - Name string
- Specifies the name of the Container App Job resource. 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
[]Job
Registry Args - Registry
[]Job
Registry Args - One or more
registry
blocks as defined below. - Replica
Retry intLimit - The maximum number of times a replica is allowed to retry.
- Replica
Timeout intIn Seconds - The maximum number of seconds a replica is allowed to run.
- Resource
Group stringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- Schedule
Trigger JobConfig Schedule Trigger Config Args A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- Secret
[]Job
Secret Args - One or more
secret
blocks as defined below. - Secrets
[]Job
Secret Args - map[string]string
- A mapping of tags to assign to the resource.
- Template
Job
Template Args - A
template
block as defined below. - Workload
Profile stringName - The name of the workload profile to use for the Container App Job.
- container
App StringEnvironment Id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- event
Stream StringEndpoint - The endpoint for the Container App Job event stream.
- event
Trigger JobConfig Event Trigger Config - A
event_trigger_config
block as defined below. - identity
Job
Identity - A
identity
block as defined below. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- manual
Trigger JobConfig Manual Trigger Config - A
manual_trigger_config
block as defined below. - name String
- Specifies the name of the Container App Job resource. 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<Job
Registry> - registry
List<Job
Registry> - One or more
registry
blocks as defined below. - replica
Retry IntegerLimit - The maximum number of times a replica is allowed to retry.
- replica
Timeout IntegerIn Seconds - The maximum number of seconds a replica is allowed to run.
- resource
Group StringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- schedule
Trigger JobConfig Schedule Trigger Config A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- secret
List<Job
Secret> - One or more
secret
blocks as defined below. - secrets
List<Job
Secret> - Map<String,String>
- A mapping of tags to assign to the resource.
- template
Job
Template - A
template
block as defined below. - workload
Profile StringName - The name of the workload profile to use for the Container App Job.
- container
App stringEnvironment Id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- event
Stream stringEndpoint - The endpoint for the Container App Job event stream.
- event
Trigger JobConfig Event Trigger Config - A
event_trigger_config
block as defined below. - identity
Job
Identity - A
identity
block as defined below. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- manual
Trigger JobConfig Manual Trigger Config - A
manual_trigger_config
block as defined below. - name string
- Specifies the name of the Container App Job resource. 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
Job
Registry[] - registry
Job
Registry[] - One or more
registry
blocks as defined below. - replica
Retry numberLimit - The maximum number of times a replica is allowed to retry.
- replica
Timeout numberIn Seconds - The maximum number of seconds a replica is allowed to run.
- resource
Group stringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- schedule
Trigger JobConfig Schedule Trigger Config A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- secret
Job
Secret[] - One or more
secret
blocks as defined below. - secrets
Job
Secret[] - {[key: string]: string}
- A mapping of tags to assign to the resource.
- template
Job
Template - A
template
block as defined below. - workload
Profile stringName - The name of the workload profile to use for the Container App Job.
- container_
app_ strenvironment_ id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- event_
stream_ strendpoint - The endpoint for the Container App Job event stream.
- event_
trigger_ Jobconfig Event Trigger Config Args - A
event_trigger_config
block as defined below. - identity
Job
Identity Args - A
identity
block as defined below. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- manual_
trigger_ Jobconfig Manual Trigger Config Args - A
manual_trigger_config
block as defined below. - name str
- Specifies the name of the Container App Job resource. 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[Job
Registry Args] - registry
Sequence[Job
Registry Args] - One or more
registry
blocks as defined below. - replica_
retry_ intlimit - The maximum number of times a replica is allowed to retry.
- replica_
timeout_ intin_ seconds - The maximum number of seconds a replica is allowed to run.
- resource_
group_ strname - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- schedule_
trigger_ Jobconfig Schedule Trigger Config Args A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- secret
Sequence[Job
Secret Args] - One or more
secret
blocks as defined below. - secrets
Sequence[Job
Secret Args] - Mapping[str, str]
- A mapping of tags to assign to the resource.
- template
Job
Template Args - A
template
block as defined below. - workload_
profile_ strname - The name of the workload profile to use for the Container App Job.
- container
App StringEnvironment Id - The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created.
- event
Stream StringEndpoint - The endpoint for the Container App Job event stream.
- event
Trigger Property MapConfig - A
event_trigger_config
block as defined below. - identity Property Map
- A
identity
block as defined below. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- manual
Trigger Property MapConfig - A
manual_trigger_config
block as defined below. - name String
- Specifies the name of the Container App Job resource. 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>
- registry List<Property Map>
- One or more
registry
blocks as defined below. - replica
Retry NumberLimit - The maximum number of times a replica is allowed to retry.
- replica
Timeout NumberIn Seconds - The maximum number of seconds a replica is allowed to run.
- resource
Group StringName - The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created.
- schedule
Trigger Property MapConfig A
schedule_trigger_config
block as defined below.** NOTE **: Only one of
manual_trigger_config
,event_trigger_config
orschedule_trigger_config
can be specified.- secret List<Property Map>
- One or more
secret
blocks as defined below. - secrets List<Property Map>
- Map<String>
- A mapping of tags to assign to the resource.
- template Property Map
- A
template
block as defined below. - workload
Profile StringName - The name of the workload profile to use for the Container App Job.
Supporting Types
JobEventTriggerConfig, JobEventTriggerConfigArgs
- Parallelism int
- Number of parallel replicas of a job that can run at a given time.
- Replica
Completion intCount - Minimum number of successful replica completions before overall job completion.
- Scales
List<Job
Event Trigger Config Scale> - A
scale
block as defined below.
- Parallelism int
- Number of parallel replicas of a job that can run at a given time.
- Replica
Completion intCount - Minimum number of successful replica completions before overall job completion.
- Scales
[]Job
Event Trigger Config Scale - A
scale
block as defined below.
- parallelism Integer
- Number of parallel replicas of a job that can run at a given time.
- replica
Completion IntegerCount - Minimum number of successful replica completions before overall job completion.
- scales
List<Job
Event Trigger Config Scale> - A
scale
block as defined below.
- parallelism number
- Number of parallel replicas of a job that can run at a given time.
- replica
Completion numberCount - Minimum number of successful replica completions before overall job completion.
- scales
Job
Event Trigger Config Scale[] - A
scale
block as defined below.
- parallelism int
- Number of parallel replicas of a job that can run at a given time.
- replica_
completion_ intcount - Minimum number of successful replica completions before overall job completion.
- scales
Sequence[Job
Event Trigger Config Scale] - A
scale
block as defined below.
- parallelism Number
- Number of parallel replicas of a job that can run at a given time.
- replica
Completion NumberCount - Minimum number of successful replica completions before overall job completion.
- scales List<Property Map>
- A
scale
block as defined below.
JobEventTriggerConfigScale, JobEventTriggerConfigScaleArgs
- Max
Executions int - Maximum number of job executions that are created for a trigger.
- Min
Executions int - Minimum number of job executions that are created for a trigger.
- Polling
Interval intIn Seconds - Interval to check each event source in seconds.
- Rules
List<Job
Event Trigger Config Scale Rule> - A
rules
block as defined below.
- Max
Executions int - Maximum number of job executions that are created for a trigger.
- Min
Executions int - Minimum number of job executions that are created for a trigger.
- Polling
Interval intIn Seconds - Interval to check each event source in seconds.
- Rules
[]Job
Event Trigger Config Scale Rule - A
rules
block as defined below.
- max
Executions Integer - Maximum number of job executions that are created for a trigger.
- min
Executions Integer - Minimum number of job executions that are created for a trigger.
- polling
Interval IntegerIn Seconds - Interval to check each event source in seconds.
- rules
List<Job
Event Trigger Config Scale Rule> - A
rules
block as defined below.
- max
Executions number - Maximum number of job executions that are created for a trigger.
- min
Executions number - Minimum number of job executions that are created for a trigger.
- polling
Interval numberIn Seconds - Interval to check each event source in seconds.
- rules
Job
Event Trigger Config Scale Rule[] - A
rules
block as defined below.
- max_
executions int - Maximum number of job executions that are created for a trigger.
- min_
executions int - Minimum number of job executions that are created for a trigger.
- polling_
interval_ intin_ seconds - Interval to check each event source in seconds.
- rules
Sequence[Job
Event Trigger Config Scale Rule] - A
rules
block as defined below.
- max
Executions Number - Maximum number of job executions that are created for a trigger.
- min
Executions Number - Minimum number of job executions that are created for a trigger.
- polling
Interval NumberIn Seconds - Interval to check each event source in seconds.
- rules List<Property Map>
- A
rules
block as defined below.
JobEventTriggerConfigScaleRule, JobEventTriggerConfigScaleRuleArgs
- Custom
Rule stringType - Type of the scale rule.
- Metadata Dictionary<string, string>
- Metadata properties to describe the scale rule.
- Name string
- Name of the scale rule.
- Authentications
List<Job
Event Trigger Config Scale Rule Authentication> - A
authentication
block as defined below.
- Custom
Rule stringType - Type of the scale rule.
- Metadata map[string]string
- Metadata properties to describe the scale rule.
- Name string
- Name of the scale rule.
- Authentications
[]Job
Event Trigger Config Scale Rule Authentication - A
authentication
block as defined below.
- custom
Rule StringType - Type of the scale rule.
- metadata Map<String,String>
- Metadata properties to describe the scale rule.
- name String
- Name of the scale rule.
- authentications
List<Job
Event Trigger Config Scale Rule Authentication> - A
authentication
block as defined below.
- custom
Rule stringType - Type of the scale rule.
- metadata {[key: string]: string}
- Metadata properties to describe the scale rule.
- name string
- Name of the scale rule.
- authentications
Job
Event Trigger Config Scale Rule Authentication[] - A
authentication
block as defined below.
- custom_
rule_ strtype - Type of the scale rule.
- metadata Mapping[str, str]
- Metadata properties to describe the scale rule.
- name str
- Name of the scale rule.
- authentications
Sequence[Job
Event Trigger Config Scale Rule Authentication] - A
authentication
block as defined below.
- custom
Rule StringType - Type of the scale rule.
- metadata Map<String>
- Metadata properties to describe the scale rule.
- name String
- Name of the scale rule.
- authentications List<Property Map>
- A
authentication
block as defined below.
JobEventTriggerConfigScaleRuleAuthentication, JobEventTriggerConfigScaleRuleAuthenticationArgs
- Secret
Name string - Name of the secret from which to pull the auth params.
- Trigger
Parameter string - Trigger Parameter that uses the secret.
- Secret
Name string - Name of the secret from which to pull the auth params.
- Trigger
Parameter string - Trigger Parameter that uses the secret.
- secret
Name String - Name of the secret from which to pull the auth params.
- trigger
Parameter String - Trigger Parameter that uses the secret.
- secret
Name string - Name of the secret from which to pull the auth params.
- trigger
Parameter string - Trigger Parameter that uses the secret.
- secret_
name str - Name of the secret from which to pull the auth params.
- trigger_
parameter str - Trigger Parameter that uses the secret.
- secret
Name String - Name of the secret from which to pull the auth params.
- trigger
Parameter String - Trigger Parameter that uses the secret.
JobIdentity, JobIdentityArgs
- Type string
- The type of identity used for the Container App Job. Possible values are
SystemAssigned
,UserAssigned
andNone
. Defaults toNone
. - Identity
Ids List<string> - A list of Managed Identity IDs to assign to the Container App Job.
- Principal
Id string - Tenant
Id string
- Type string
- The type of identity used for the Container App Job. Possible values are
SystemAssigned
,UserAssigned
andNone
. Defaults toNone
. - Identity
Ids []string - A list of Managed Identity IDs to assign to the Container App Job.
- Principal
Id string - Tenant
Id string
- type String
- The type of identity used for the Container App Job. Possible values are
SystemAssigned
,UserAssigned
andNone
. Defaults toNone
. - identity
Ids List<String> - A list of Managed Identity IDs to assign to the Container App Job.
- principal
Id String - tenant
Id String
- type string
- The type of identity used for the Container App Job. Possible values are
SystemAssigned
,UserAssigned
andNone
. Defaults toNone
. - identity
Ids string[] - A list of Managed Identity IDs to assign to the Container App Job.
- principal
Id string - tenant
Id string
- type str
- The type of identity used for the Container App Job. Possible values are
SystemAssigned
,UserAssigned
andNone
. Defaults toNone
. - identity_
ids Sequence[str] - A list of Managed Identity IDs to assign to the Container App Job.
- principal_
id str - tenant_
id str
- type String
- The type of identity used for the Container App Job. Possible values are
SystemAssigned
,UserAssigned
andNone
. Defaults toNone
. - identity
Ids List<String> - A list of Managed Identity IDs to assign to the Container App Job.
- principal
Id String - tenant
Id String
JobManualTriggerConfig, JobManualTriggerConfigArgs
- Parallelism int
- Number of parallel replicas of a job that can run at a given time.
- Replica
Completion intCount - Minimum number of successful replica completions before overall job completion.
- Parallelism int
- Number of parallel replicas of a job that can run at a given time.
- Replica
Completion intCount - Minimum number of successful replica completions before overall job completion.
- parallelism Integer
- Number of parallel replicas of a job that can run at a given time.
- replica
Completion IntegerCount - Minimum number of successful replica completions before overall job completion.
- parallelism number
- Number of parallel replicas of a job that can run at a given time.
- replica
Completion numberCount - Minimum number of successful replica completions before overall job completion.
- parallelism int
- Number of parallel replicas of a job that can run at a given time.
- replica_
completion_ intcount - Minimum number of successful replica completions before overall job completion.
- parallelism Number
- Number of parallel replicas of a job that can run at a given time.
- replica
Completion NumberCount - Minimum number of successful replica completions before overall job completion.
JobRegistry, JobRegistryArgs
- Server string
- The URL of the Azure Container Registry server.
- Identity string
- A Managed Identity to use to authenticate with Azure Container Registry.
- Password
Secret stringName - The name of the Secret that contains the registry login password.
- Username string
- The username to use to authenticate with Azure Container Registry.
- Server string
- The URL of the Azure Container Registry server.
- Identity string
- A Managed Identity to use to authenticate with Azure Container Registry.
- Password
Secret stringName - The name of the Secret that contains the registry login password.
- Username string
- The username to use to authenticate with Azure Container Registry.
- server String
- The URL of the Azure Container Registry server.
- identity String
- A Managed Identity to use to authenticate with Azure Container Registry.
- password
Secret StringName - The name of the Secret that contains the registry login password.
- username String
- The username to use to authenticate with Azure Container Registry.
- server string
- The URL of the Azure Container Registry server.
- identity string
- A Managed Identity to use to authenticate with Azure Container Registry.
- password
Secret stringName - The name of the Secret that contains the registry login password.
- username string
- The username to use to authenticate with Azure Container Registry.
- server str
- The URL of the Azure Container Registry server.
- identity str
- A Managed Identity to use to authenticate with Azure Container Registry.
- password_
secret_ strname - The name of the Secret that contains the registry login password.
- username str
- The username to use to authenticate with Azure Container Registry.
- server String
- The URL of the Azure Container Registry server.
- identity String
- A Managed Identity to use to authenticate with Azure Container Registry.
- password
Secret StringName - The name of the Secret that contains the registry login password.
- username String
- The username to use to authenticate with Azure Container Registry.
JobScheduleTriggerConfig, JobScheduleTriggerConfigArgs
- Cron
Expression string - Cron formatted repeating schedule of a Cron Job.
- Parallelism int
- Number of parallel replicas of a job that can run at a given time.
- Replica
Completion intCount - Minimum number of successful replica completions before overall job completion.
- Cron
Expression string - Cron formatted repeating schedule of a Cron Job.
- Parallelism int
- Number of parallel replicas of a job that can run at a given time.
- Replica
Completion intCount - Minimum number of successful replica completions before overall job completion.
- cron
Expression String - Cron formatted repeating schedule of a Cron Job.
- parallelism Integer
- Number of parallel replicas of a job that can run at a given time.
- replica
Completion IntegerCount - Minimum number of successful replica completions before overall job completion.
- cron
Expression string - Cron formatted repeating schedule of a Cron Job.
- parallelism number
- Number of parallel replicas of a job that can run at a given time.
- replica
Completion numberCount - Minimum number of successful replica completions before overall job completion.
- cron_
expression str - Cron formatted repeating schedule of a Cron Job.
- parallelism int
- Number of parallel replicas of a job that can run at a given time.
- replica_
completion_ intcount - Minimum number of successful replica completions before overall job completion.
- cron
Expression String - Cron formatted repeating schedule of a Cron Job.
- parallelism Number
- Number of parallel replicas of a job that can run at a given time.
- replica
Completion NumberCount - Minimum number of successful replica completions before overall job completion.
JobSecret, JobSecretArgs
- Name string
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- Identity string
- A
identity
block as defined below. - Key
Vault stringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - Value string
- The value for this secret.
- Name string
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- Identity string
- A
identity
block as defined below. - Key
Vault stringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - Value string
- The value for this secret.
- name String
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- identity String
- A
identity
block as defined below. - key
Vault StringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - value String
- The value for this secret.
- name string
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- identity string
- A
identity
block as defined below. - key
Vault stringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - value string
- The value for this secret.
- name str
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- identity str
- A
identity
block as defined below. - key_
vault_ strsecret_ id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - value str
- The value for this secret.
- name String
- Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
- identity String
- A
identity
block as defined below. - key
Vault StringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - value String
- The value for this secret.
JobTemplate, JobTemplateArgs
- Containers
List<Job
Template Container> - A
container
block as defined below. - Init
Containers List<JobTemplate Init Container> - A
init_container
block as defined below. - Volumes
List<Job
Template Volume> - A
volume
block as defined below.
- Containers
[]Job
Template Container - A
container
block as defined below. - Init
Containers []JobTemplate Init Container - A
init_container
block as defined below. - Volumes
[]Job
Template Volume - A
volume
block as defined below.
- containers
List<Job
Template Container> - A
container
block as defined below. - init
Containers List<JobTemplate Init Container> - A
init_container
block as defined below. - volumes
List<Job
Template Volume> - A
volume
block as defined below.
- containers
Job
Template Container[] - A
container
block as defined below. - init
Containers JobTemplate Init Container[] - A
init_container
block as defined below. - volumes
Job
Template Volume[] - A
volume
block as defined below.
- containers
Sequence[Job
Template Container] - A
container
block as defined below. - init_
containers Sequence[JobTemplate Init Container] - A
init_container
block as defined below. - volumes
Sequence[Job
Template Volume] - A
volume
block as defined below.
- containers List<Property Map>
- A
container
block as defined below. - init
Containers List<Property Map> - A
init_container
block as defined below. - volumes List<Property Map>
- A
volume
block as defined below.
JobTemplateContainer, JobTemplateContainerArgs
- 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- Image string
- The image to use to create the container.
- Memory string
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- 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<Job
Template Container Env> - One or more
env
blocks as detailed below. - Ephemeral
Storage string The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- Liveness
Probes List<JobTemplate Container Liveness Probe> - A
liveness_probe
block as detailed below. - Readiness
Probes List<JobTemplate Container Readiness Probe> - A
readiness_probe
block as detailed below. - Startup
Probes List<JobTemplate Container Startup Probe> - A
startup_probe
block as detailed below. - Volume
Mounts List<JobTemplate 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- Image string
- The image to use to create the container.
- Memory string
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- 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
[]Job
Template Container Env - One or more
env
blocks as detailed below. - Ephemeral
Storage string The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- Liveness
Probes []JobTemplate Container Liveness Probe - A
liveness_probe
block as detailed below. - Readiness
Probes []JobTemplate Container Readiness Probe - A
readiness_probe
block as detailed below. - Startup
Probes []JobTemplate Container Startup Probe - A
startup_probe
block as detailed below. - Volume
Mounts []JobTemplate 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- image String
- The image to use to create the container.
- memory String
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- 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<Job
Template Container Env> - One or more
env
blocks as detailed below. - ephemeral
Storage String The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- liveness
Probes List<JobTemplate Container Liveness Probe> - A
liveness_probe
block as detailed below. - readiness
Probes List<JobTemplate Container Readiness Probe> - A
readiness_probe
block as detailed below. - startup
Probes List<JobTemplate Container Startup Probe> - A
startup_probe
block as detailed below. - volume
Mounts List<JobTemplate 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- image string
- The image to use to create the container.
- memory string
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- 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
Job
Template Container Env[] - One or more
env
blocks as detailed below. - ephemeral
Storage string The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- liveness
Probes JobTemplate Container Liveness Probe[] - A
liveness_probe
block as detailed below. - readiness
Probes JobTemplate Container Readiness Probe[] - A
readiness_probe
block as detailed below. - startup
Probes JobTemplate Container Startup Probe[] - A
startup_probe
block as detailed below. - volume
Mounts JobTemplate 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- image str
- The image to use to create the container.
- memory str
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- 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[Job
Template Container Env] - One or more
env
blocks as detailed below. - ephemeral_
storage str The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- liveness_
probes Sequence[JobTemplate Container Liveness Probe] - A
liveness_probe
block as detailed below. - readiness_
probes Sequence[JobTemplate Container Readiness Probe] - A
readiness_probe
block as detailed below. - startup_
probes Sequence[JobTemplate Container Startup Probe] - A
startup_probe
block as detailed below. - volume_
mounts Sequence[JobTemplate 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- image String
- The image to use to create the container.
- memory String
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- 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.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- 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.
JobTemplateContainerEnv, JobTemplateContainerEnvArgs
- Name string
- The name of the environment variable.
- Secret
Name string - Name of the Container App secret from which to pull the environment variable value.
- Value string
- The value of the environment variable.
- Name string
- The name of the environment variable.
- Secret
Name string - Name of the Container App secret from which to pull the environment variable value.
- Value string
- The value of the environment variable.
- name String
- The name of the environment variable.
- secret
Name String - Name of the Container App secret from which to pull the environment variable value.
- value String
- The value of the environment variable.
- name string
- The name of the environment variable.
- secret
Name string - Name of the Container App secret from which to pull the environment variable value.
- value string
- The value of the environment variable.
- name str
- The name of the environment variable.
- secret_
name str - Name of the Container App secret from which to pull the environment variable value.
- value str
- The value of the environment variable.
- name String
- The name of the environment variable.
- secret
Name String - Name of the Container App secret from which to pull the environment variable value.
- value String
- The value of the environment variable.
JobTemplateContainerLivenessProbe, JobTemplateContainerLivenessProbeArgs
- 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<Job
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 - 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
[]Job
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 - 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<Job
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 - 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
Job
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 - 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[Job
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 - 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 - 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
.
JobTemplateContainerLivenessProbeHeader, JobTemplateContainerLivenessProbeHeaderArgs
JobTemplateContainerReadinessProbe, JobTemplateContainerReadinessProbeArgs
- 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<Job
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
[]Job
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<Job
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
Job
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[Job
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
.
JobTemplateContainerReadinessProbeHeader, JobTemplateContainerReadinessProbeHeaderArgs
JobTemplateContainerStartupProbe, JobTemplateContainerStartupProbeArgs
- 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<Job
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
[]Job
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<Job
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
Job
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[Job
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
.
JobTemplateContainerStartupProbeHeader, JobTemplateContainerStartupProbeHeaderArgs
JobTemplateContainerVolumeMount, JobTemplateContainerVolumeMountArgs
JobTemplateInitContainer, JobTemplateInitContainerArgs
- Image string
- The image to use to create the container.
- 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.
- 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- Envs
List<Job
Template Init Container Env> - One or more
env
blocks as detailed below. - Ephemeral
Storage string The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- Memory string
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- Volume
Mounts List<JobTemplate Init Container Volume Mount> - A
volume_mounts
block as detailed below.
- Image string
- The image to use to create the container.
- 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.
- 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- Envs
[]Job
Template Init Container Env - One or more
env
blocks as detailed below. - Ephemeral
Storage string The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- Memory string
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- Volume
Mounts []JobTemplate Init Container Volume Mount - A
volume_mounts
block as detailed below.
- image String
- The image to use to create the container.
- 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.
- 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- envs
List<Job
Template Init Container Env> - One or more
env
blocks as detailed below. - ephemeral
Storage String The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- memory String
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- volume
Mounts List<JobTemplate Init Container Volume Mount> - A
volume_mounts
block as detailed below.
- image string
- The image to use to create the container.
- 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.
- 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- envs
Job
Template Init Container Env[] - One or more
env
blocks as detailed below. - ephemeral
Storage string The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- memory string
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- volume
Mounts JobTemplate Init Container Volume Mount[] - A
volume_mounts
block as detailed below.
- image str
- The image to use to create the container.
- 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.
- 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- envs
Sequence[Job
Template Init Container Env] - One or more
env
blocks as detailed below. - ephemeral_
storage str The amount of ephemeral storage available to the Container App.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- memory str
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- volume_
mounts Sequence[JobTemplate Init Container Volume Mount] - A
volume_mounts
block as detailed below.
- image String
- The image to use to create the container.
- 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.
- 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
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.0
/2.0
or0.5
/1.0
- 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.
NOTE:
ephemeral_storage
is currently in preview and not configurable at this time.- memory String
The amount of memory to allocate to the container. Possible values are
0.5Gi
,1Gi
,1.5Gi
,2Gi
,2.5Gi
,3Gi
,3.5Gi
and4Gi
.NOTE:
cpu
andmemory
must be specified in0.25'/'0.5Gi
combination increments. e.g.1.25
/2.5Gi
or0.75
/1.5Gi
- volume
Mounts List<Property Map> - A
volume_mounts
block as detailed below.
JobTemplateInitContainerEnv, JobTemplateInitContainerEnvArgs
- Name string
- The name of the environment variable.
- Secret
Name string - Name of the Container App secret from which to pull the environment variable value.
- Value string
- The value of the environment variable.
- Name string
- The name of the environment variable.
- Secret
Name string - Name of the Container App secret from which to pull the environment variable value.
- Value string
- The value of the environment variable.
- name String
- The name of the environment variable.
- secret
Name String - Name of the Container App secret from which to pull the environment variable value.
- value String
- The value of the environment variable.
- name string
- The name of the environment variable.
- secret
Name string - Name of the Container App secret from which to pull the environment variable value.
- value string
- The value of the environment variable.
- name str
- The name of the environment variable.
- secret_
name str - Name of the Container App secret from which to pull the environment variable value.
- value str
- The value of the environment variable.
- name String
- The name of the environment variable.
- secret
Name String - Name of the Container App secret from which to pull the environment variable value.
- value String
- The value of the environment variable.
JobTemplateInitContainerVolumeMount, JobTemplateInitContainerVolumeMountArgs
JobTemplateVolume, JobTemplateVolumeArgs
- Name string
- The name of the volume.
- Storage
Name string - The name of the storage to use for the volume.
- Storage
Type string - The type of storage to use for the volume. Possible values are
AzureFile
,EmptyDir
andSecret
.
- Name string
- The name of the volume.
- Storage
Name string - The name of the storage to use for the volume.
- Storage
Type string - The type of storage to use for the volume. Possible values are
AzureFile
,EmptyDir
andSecret
.
- name String
- The name of the volume.
- storage
Name String - The name of the storage to use for the volume.
- storage
Type String - The type of storage to use for the volume. Possible values are
AzureFile
,EmptyDir
andSecret
.
- name string
- The name of the volume.
- storage
Name string - The name of the storage to use for the volume.
- storage
Type string - The type of storage to use for the volume. Possible values are
AzureFile
,EmptyDir
andSecret
.
- name str
- The name of the volume.
- storage_
name str - The name of the storage to use for the volume.
- storage_
type str - The type of storage to use for the volume. Possible values are
AzureFile
,EmptyDir
andSecret
.
- name String
- The name of the volume.
- storage
Name String - The name of the storage to use for the volume.
- storage
Type String - The type of storage to use for the volume. Possible values are
AzureFile
,EmptyDir
andSecret
.
Import
A Container App Job can be imported using the resource id, e.g.
$ pulumi import azure:containerapp/job:Job example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.App/jobs/example-container-app-job"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.