app-job
Report Package app-job
If you believe that this package or its contents contain harmful information, please inform us.
Please be aware that we will never share your credentials.
This Terraform Azure Verified Module deploys: terraform-azurerm-avm-res-app-job
ipm add --package avm-terraform/app-job --version 0.1.0
Published: 22-05-2025
Project URL: https://ipmhub.io/avm-terraform
Package Type: Terraform
License: MIT
terraform-azurerm-avm-template
This is a template repo for Terraform Azure Verified Modules.
Things to do:
- Set up a GitHub repo environment called
test
. - Configure environment protection rule to ensure that approval is required before deploying to this environment.
- Create a user-assigned managed identity in your test subscription.
- Create a role assignment for the managed identity on your test subscription, use the minimum required role.
- Configure federated identity credentials on the user assigned managed identity. Use the GitHub environment.
- Search and update TODOs within the code and remove the TODO comments once complete.
Requirements
The following requirements are needed by this module:
Resources
The following resources are used by this module:
- azurerm_container_app_job.this (resource)
- modtm_telemetry.telemetry (resource)
- random_uuid.telemetry (resource)
- azurerm_client_config.telemetry (data source)
- modtm_module_source.telemetry (data source)
Required Inputs
The following input variables are required:
container_app_environment_resource_id
Description: The ID of the Container App Environment to host this Container App.
Type: string
location
Description: The Azure region where this and supporting resources should be deployed.
Type: string
name
Description: The name for this Container App.
Type: string
resource_group_name
Description: (Required) The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
Type: string
template
Description: The template block describes the configuration for the Container App Job.
It defines the main container, optional init containers, resource requirements,
environment variables, probes (liveness, readiness, startup), and volume mounts.
Use this variable to specify the container image, CPU/memory, commands, arguments,
environment variables, and any additional configuration needed for the job's execution environment.
Type:
object({
max_replicas = optional(number)
min_replicas = optional(number)
container = object({
name = string
image = string
cpu = number
memory = string
command = optional(list(string))
args = optional(list(string))
env = optional(list(object({
name = string
secret_name = optional(string)
value = optional(string)
})))
liveness_probe = optional(list(object({
port = number
transport = string
failure_count_threshold = number
period = number
header = optional(list(object({
name = string
value = string
})))
host = optional(string)
initial_delay = optional(number)
interval_seconds = optional(number)
path = optional(string)
timeout = optional(number)
})))
readiness_probe = optional(list(object({
port = number
transport = string
failure_count_threshold = number
header = optional(list(object({
name = string
value = string
})))
host = optional(string)
interval_seconds = optional(number)
path = optional(string)
success_count_threshold = optional(number)
timeout = optional(number)
})))
startup_probe = optional(list(object({
port = number
transport = string
failure_count_threshold = number
header = optional(list(object({
name = string
value = string
})))
host = optional(string)
interval_seconds = optional(number)
path = optional(string)
timeout = optional(number)
})))
volume_mounts = optional(list(object({
name = string
path = string
})))
})
init_container = optional(list(object({
name = string
image = string
cpu = number
memory = string
command = list(string)
args = list(string)
env = optional(list(object({
name = string
secret_name = optional(string)
value = optional(string)
})))
})))
volume = optional(list(object({
name = optional(string)
storage_type = optional(string)
storage_name = optional(string)
})))
})
Optional Inputs
The following input variables are optional (have default values):
enable_telemetry
Description: This variable controls whether or not telemetry is enabled for the module.
For more information see https://aka.ms/avm/telemetryinfo.
If it is set to false, then no telemetry will be collected.
Type: bool
Default: false
managed_identities
Description: Controls the Managed Identity configuration on this resource. The following properties can be specified:
system_assigned
- (Optional) Specifies if the System Assigned Managed Identity should be enabled.user_assigned_resource_ids
- (Optional) Specifies a list of User Assigned Managed Identity resource IDs to be assigned to this resource.
Type:
object({
system_assigned = optional(bool, false)
user_assigned_resource_ids = optional(set(string), [])
})
Default: {}
replica_timeout_in_seconds
Description: The timeout in seconds for the job to complete.
Type: number
Default: 300
tags
Description: (Optional) A mapping of tags to assign to the Container App Job.
Type: map(string)
Default: null
trigger_config
Description: Configuration for the trigger. Only one of manual_trigger_config, event_trigger_config, or schedule_trigger_config can be specified.
Type:
object({
manual_trigger_config = optional(object({
parallelism = optional(number)
replica_completion_count = optional(number)
}))
event_trigger_config = optional(object({
parallelism = optional(number)
replica_completion_count = optional(number)
scale = optional(object({
max_executions = optional(number)
min_executions = optional(number)
polling_interval_in_seconds = optional(number)
rules = optional(object({
name = optional(string)
custom_rule_type = optional(string)
metadata = optional(map(string))
authentication = optional(object({
secret_name = optional(string)
trigger_parameter = optional(string)
}))
}))
}))
}))
schedule_trigger_config = optional(object({
cron_expression = optional(string)
parallelism = optional(number)
replica_completion_count = optional(number)
}))
})
Default:
{
"manual_trigger_config": {
"parallelism": 1,
"replica_completion_count": 1
}
}
Outputs
The following outputs are exported:
container_app_job_name
Description: The name of the Container App Job.
resource_id
Description: The ID of the Container App Job.
Modules
No modules.
Data Collection
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
Release History
Version 0.1.0 - 2025-05-20
What's Changed
- feat: initial version by @sujaypillai in https://github.com/Azure/terraform-azurerm-avm-res-app-job/pull/1
New Contributors
- @sujaypillai made their first contribution in https://github.com/Azure/terraform-azurerm-avm-res-app-job/pull/1
Full Changelog: https://github.com/Azure/terraform-azurerm-avm-res-app-job/commits/0.1.0
{
"workingFolder": "packages",
"packages": [
// packages defined earlier
{
"name": "avm-terraform/app-job",
"version": "0.1.0"
}
]
}
This package has no dependencies
Stats
Selected version:
0.1.0
Downloads this version:
0
Downloads all versions:
0
Latest version:
0.1.0
Latest update:
22-05-2025