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={
"parallelism": 4,
"replica_completion_count": 1,
},
template={
"containers": [{
"image": "repo/testcontainerAppsJob0:v1",
"name": "testcontainerappsjob0",
"readiness_probes": [{
"transport": "HTTP",
"port": 5000,
}],
"liveness_probes": [{
"transport": "HTTP",
"port": 5000,
"path": "/health",
"headers": [{
"name": "Cache-Control",
"value": "no-cache",
}],
"initial_delay": 5,
"interval_seconds": 20,
"timeout": 2,
"failure_count_threshold": 1,
}],
"startup_probes": [{
"transport": "TCP",
"port": 5000,
}],
"cpu": 0.5,
"memory": "1Gi",
}],
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/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,
replica_timeout_in_seconds: Optional[int] = None,
template: Optional[JobTemplateArgs] = None,
resource_group_name: Optional[str] = None,
container_app_environment_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
registries: Optional[Sequence[JobRegistryArgs]] = None,
replica_retry_limit: Optional[int] = None,
manual_trigger_config: Optional[JobManualTriggerConfigArgs] = None,
identity: Optional[JobIdentityArgs] = None,
schedule_trigger_config: Optional[JobScheduleTriggerConfigArgs] = 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()
{
ReplicaTimeoutInSeconds = 0,
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",
InitialDelay = 0,
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",
InitialDelay = 0,
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",
ContainerAppEnvironmentId = "string",
Location = "string",
Name = "string",
Registries = new[]
{
new Azure.ContainerApp.Inputs.JobRegistryArgs
{
Server = "string",
Identity = "string",
PasswordSecretName = "string",
Username = "string",
},
},
ReplicaRetryLimit = 0,
ManualTriggerConfig = new Azure.ContainerApp.Inputs.JobManualTriggerConfigArgs
{
Parallelism = 0,
ReplicaCompletionCount = 0,
},
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,
},
Secrets = 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{
ReplicaTimeoutInSeconds: pulumi.Int(0),
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"),
InitialDelay: pulumi.Int(0),
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"),
InitialDelay: pulumi.Int(0),
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"),
ContainerAppEnvironmentId: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Registries: containerapp.JobRegistryArray{
&containerapp.JobRegistryArgs{
Server: pulumi.String("string"),
Identity: pulumi.String("string"),
PasswordSecretName: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
ReplicaRetryLimit: pulumi.Int(0),
ManualTriggerConfig: &containerapp.JobManualTriggerConfigArgs{
Parallelism: pulumi.Int(0),
ReplicaCompletionCount: pulumi.Int(0),
},
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),
},
Secrets: 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()
.replicaTimeoutInSeconds(0)
.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")
.initialDelay(0)
.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")
.initialDelay(0)
.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")
.containerAppEnvironmentId("string")
.location("string")
.name("string")
.registries(JobRegistryArgs.builder()
.server("string")
.identity("string")
.passwordSecretName("string")
.username("string")
.build())
.replicaRetryLimit(0)
.manualTriggerConfig(JobManualTriggerConfigArgs.builder()
.parallelism(0)
.replicaCompletionCount(0)
.build())
.identity(JobIdentityArgs.builder()
.type("string")
.identityIds("string")
.principalId("string")
.tenantId("string")
.build())
.scheduleTriggerConfig(JobScheduleTriggerConfigArgs.builder()
.cronExpression("string")
.parallelism(0)
.replicaCompletionCount(0)
.build())
.secrets(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",
replica_timeout_in_seconds=0,
template={
"containers": [{
"cpu": 0,
"image": "string",
"memory": "string",
"name": "string",
"args": ["string"],
"commands": ["string"],
"envs": [{
"name": "string",
"secret_name": "string",
"value": "string",
}],
"ephemeral_storage": "string",
"liveness_probes": [{
"port": 0,
"transport": "string",
"failure_count_threshold": 0,
"headers": [{
"name": "string",
"value": "string",
}],
"host": "string",
"initial_delay": 0,
"interval_seconds": 0,
"path": "string",
"termination_grace_period_seconds": 0,
"timeout": 0,
}],
"readiness_probes": [{
"port": 0,
"transport": "string",
"failure_count_threshold": 0,
"headers": [{
"name": "string",
"value": "string",
}],
"host": "string",
"initial_delay": 0,
"interval_seconds": 0,
"path": "string",
"success_count_threshold": 0,
"timeout": 0,
}],
"startup_probes": [{
"port": 0,
"transport": "string",
"failure_count_threshold": 0,
"headers": [{
"name": "string",
"value": "string",
}],
"host": "string",
"initial_delay": 0,
"interval_seconds": 0,
"path": "string",
"termination_grace_period_seconds": 0,
"timeout": 0,
}],
"volume_mounts": [{
"name": "string",
"path": "string",
}],
}],
"init_containers": [{
"image": "string",
"name": "string",
"args": ["string"],
"commands": ["string"],
"cpu": 0,
"envs": [{
"name": "string",
"secret_name": "string",
"value": "string",
}],
"ephemeral_storage": "string",
"memory": "string",
"volume_mounts": [{
"name": "string",
"path": "string",
}],
}],
"volumes": [{
"name": "string",
"storage_name": "string",
"storage_type": "string",
}],
},
resource_group_name="string",
container_app_environment_id="string",
location="string",
name="string",
registries=[{
"server": "string",
"identity": "string",
"password_secret_name": "string",
"username": "string",
}],
replica_retry_limit=0,
manual_trigger_config={
"parallelism": 0,
"replica_completion_count": 0,
},
identity={
"type": "string",
"identity_ids": ["string"],
"principal_id": "string",
"tenant_id": "string",
},
schedule_trigger_config={
"cron_expression": "string",
"parallelism": 0,
"replica_completion_count": 0,
},
secrets=[{
"name": "string",
"identity": "string",
"key_vault_secret_id": "string",
"value": "string",
}],
tags={
"string": "string",
},
event_trigger_config={
"parallelism": 0,
"replica_completion_count": 0,
"scales": [{
"max_executions": 0,
"min_executions": 0,
"polling_interval_in_seconds": 0,
"rules": [{
"custom_rule_type": "string",
"metadata": {
"string": "string",
},
"name": "string",
"authentications": [{
"secret_name": "string",
"trigger_parameter": "string",
}],
}],
}],
},
workload_profile_name="string")
const azureJobResource = new azure.containerapp.Job("azureJobResource", {
replicaTimeoutInSeconds: 0,
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",
initialDelay: 0,
intervalSeconds: 0,
path: "string",
successCountThreshold: 0,
timeout: 0,
}],
startupProbes: [{
port: 0,
transport: "string",
failureCountThreshold: 0,
headers: [{
name: "string",
value: "string",
}],
host: "string",
initialDelay: 0,
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",
containerAppEnvironmentId: "string",
location: "string",
name: "string",
registries: [{
server: "string",
identity: "string",
passwordSecretName: "string",
username: "string",
}],
replicaRetryLimit: 0,
manualTriggerConfig: {
parallelism: 0,
replicaCompletionCount: 0,
},
identity: {
type: "string",
identityIds: ["string"],
principalId: "string",
tenantId: "string",
},
scheduleTriggerConfig: {
cronExpression: "string",
parallelism: 0,
replicaCompletionCount: 0,
},
secrets: [{
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
registries:
- identity: string
passwordSecretName: string
server: string
username: string
replicaRetryLimit: 0
replicaTimeoutInSeconds: 0
resourceGroupName: string
scheduleTriggerConfig:
cronExpression: string
parallelism: 0
replicaCompletionCount: 0
secrets:
- 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
initialDelay: 0
intervalSeconds: 0
path: string
port: 0
successCountThreshold: 0
timeout: 0
transport: string
startupProbes:
- failureCountThreshold: 0
headers:
- name: string
value: string
host: string
initialDelay: 0
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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> - 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.- Secrets
List<Job
Secret> - One or more
secret
blocks as defined below. - 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 - 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.- Secrets
[]Job
Secret Args - One or more
secret
blocks as defined below. - 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> - 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.- secrets
List<Job
Secret> - One or more
secret
blocks as defined below. - 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[] - 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.- secrets
Job
Secret[] - One or more
secret
blocks as defined below. - {[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] - 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.- secrets
Sequence[Job
Secret Args] - One or more
secret
blocks as defined below. - 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>
- 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.- secrets List<Property Map>
- One or more
secret
blocks as defined below. - 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,
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,
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> - 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.- Secrets
List<Job
Secret> - One or more
secret
blocks as defined below. - 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 - 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.- Secrets
[]Job
Secret Args - One or more
secret
blocks as defined below. - 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> - 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.- secrets
List<Job
Secret> - One or more
secret
blocks as defined below. - 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[] - 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.- secrets
Job
Secret[] - One or more
secret
blocks as defined below. - {[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] - 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.- secrets
Sequence[Job
Secret Args] - One or more
secret
blocks as defined below. - 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>
- 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.- secrets List<Property Map>
- One or more
secret
blocks as defined below. - 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
- The secret name.
- Identity string
The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or
System
for the System Assigned Identity.!> Note:
identity
must be used together withkey_vault_secret_id
- Key
Vault stringSecret Id The ID of a Key Vault secret. This can be a versioned or version-less ID.
!> Note: When using
key_vault_secret_id
,ignore_changes
should be used to ignore any changes tovalue
.- Value string
The value for this secret.
!> Note:
value
will be ignored ifkey_vault_secret_id
andidentity
are provided.
- Name string
- The secret name.
- Identity string
The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or
System
for the System Assigned Identity.!> Note:
identity
must be used together withkey_vault_secret_id
- Key
Vault stringSecret Id The ID of a Key Vault secret. This can be a versioned or version-less ID.
!> Note: When using
key_vault_secret_id
,ignore_changes
should be used to ignore any changes tovalue
.- Value string
The value for this secret.
!> Note:
value
will be ignored ifkey_vault_secret_id
andidentity
are provided.
- name String
- The secret name.
- identity String
The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or
System
for the System Assigned Identity.!> Note:
identity
must be used together withkey_vault_secret_id
- key
Vault StringSecret Id The ID of a Key Vault secret. This can be a versioned or version-less ID.
!> Note: When using
key_vault_secret_id
,ignore_changes
should be used to ignore any changes tovalue
.- value String
The value for this secret.
!> Note:
value
will be ignored ifkey_vault_secret_id
andidentity
are provided.
- name string
- The secret name.
- identity string
The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or
System
for the System Assigned Identity.!> Note:
identity
must be used together withkey_vault_secret_id
- key
Vault stringSecret Id The ID of a Key Vault secret. This can be a versioned or version-less ID.
!> Note: When using
key_vault_secret_id
,ignore_changes
should be used to ignore any changes tovalue
.- value string
The value for this secret.
!> Note:
value
will be ignored ifkey_vault_secret_id
andidentity
are provided.
- name str
- The secret name.
- identity str
The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or
System
for the System Assigned Identity.!> Note:
identity
must be used together withkey_vault_secret_id
- key_
vault_ strsecret_ id The ID of a Key Vault secret. This can be a versioned or version-less ID.
!> Note: When using
key_vault_secret_id
,ignore_changes
should be used to ignore any changes tovalue
.- value str
The value for this secret.
!> Note:
value
will be ignored ifkey_vault_secret_id
andidentity
are provided.
- name String
- The secret name.
- identity String
The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or
System
for the System Assigned Identity.!> Note:
identity
must be used together withkey_vault_secret_id
- key
Vault StringSecret Id The ID of a Key Vault secret. This can be a versioned or version-less ID.
!> Note: When using
key_vault_secret_id
,ignore_changes
should be used to ignore any changes tovalue
.- value String
The value for this secret.
!> Note:
value
will be ignored ifkey_vault_secret_id
andidentity
are provided.
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. - Initial
Delay int - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - Initial
Delay int - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - initial
Delay Integer - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - initial
Delay number - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - initial_
delay int - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - initial
Delay Number - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - Initial
Delay int - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - Initial
Delay int - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - initial
Delay Integer - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - initial
Delay number - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - initial_
delay int - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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. - initial
Delay Number - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between
0
and60
. Defaults to0
seconds. - 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.