You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #288320 from Akhilesh-microsoft/ACA/jobs
[ACA: jobs]: Addressed the UUF310406 and resolved the issues, verified the procedure and added the missing information/provided link based on the research. updated ms.date.
Copy file name to clipboardExpand all lines: articles/container-apps/jobs.md
+20-6Lines changed: 20 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: craigshoemaker
6
6
ms.service: azure-container-apps
7
7
ms.custom: build-2023, devx-track-azurecli
8
8
ms.topic: conceptual
9
-
ms.date: 04/02/2024
9
+
ms.date: 10/20/2024
10
10
ms.author: cshoe
11
11
---
12
12
@@ -20,7 +20,7 @@ Container apps and jobs run in the same [environment](environment.md), allowing
20
20
21
21
There are two types of compute resources in Azure Container Apps: apps and jobs.
22
22
23
-
Apps are services that run continuously. If a container in an app fails, it's restarted automatically. Examples of apps include HTTP APIs, web apps, and background services that continuously process input.
23
+
Apps are services that run continuously. If a container in an app fails, it restarts automatically. Examples of apps include HTTP APIs, web apps, and background services that continuously process input.
24
24
25
25
Jobs are tasks that start, run for a finite duration, and exit when finished. Each execution of a job typically performs a single unit of work. Job executions start manually, on a schedule, or in response to events. Examples of jobs include batch processes that run on demand and scheduled tasks.
26
26
@@ -49,13 +49,27 @@ A Container Apps environment is a secure boundary around one or more container a
49
49
50
50
:::image type="content" source="media/jobs/azure-container-apps-jobs-overview.png" alt-text="Azure Container Apps jobs overview.":::
51
51
52
+
## Permissions
53
+
54
+
To start a container app job, the appropriate permissions are required. Ensure that your user account or service principal has the following roles assigned:
55
+
56
+
***Azure Container Apps Contributor:** Allows permissions to create and manage container apps and jobs.
57
+
***Azure Monitor Reader (optional):** Enables viewing monitoring data for jobs.
58
+
***Custom Role:** For more granular permissions, you can create a custom role with the following actions:
For more information about assigning roles and permissions, see [Azure Role-Based Access Control](/azure/role-based-access-control/overview).
65
+
52
66
## Job trigger types
53
67
54
68
A job's trigger type determines how the job is started. The following trigger types are available:
55
69
56
70
-**Manual**: Manual jobs are triggered on-demand.
57
-
-**Schedule**: Scheduled jobs are triggered at specific times and can run repeatedly.
58
-
-**Event**: Event-driven jobs are triggered by events such as a message arriving in a queue.
71
+
-**Schedule**: Scheduled jobs are triggered at specific times and can run repeatedly.
72
+
-**Event**: Events, such as a message arriving in a queue, trigger event-driven jobs.
59
73
60
74
### Manual jobs
61
75
@@ -120,7 +134,7 @@ The following example Azure Resource Manager template creates a manual job named
120
134
121
135
To create a manual job using the Azure portal, search for *Container App Jobs* in the Azure portal and select *Create*. Specify *Manual* as the trigger type.
122
136
123
-
Enter the following values in the *Containers* tab to use a sample container image.
137
+
To use a sample container image, enter the following values in the *Containers* tab:
124
138
125
139
| Setting | Value |
126
140
|---|---|
@@ -207,7 +221,7 @@ The following example Azure Resource Manager template creates a manual job named
207
221
208
222
To create a scheduled job using the Azure portal, search for *Container App Jobs* in the Azure portal and select *Create*. Specify *Schedule* as the trigger type and define the schedule with a cron expression, such as `*/1 * * * *` to run every minute.
209
223
210
-
Enter the following values in the *Containers* tab to use a sample container image.
224
+
To use a sample container image, enter the following values in the *Containers* tab:
0 commit comments