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
Copy file name to clipboardExpand all lines: articles/container-registry/container-registry-tasks-authentication-key-vault.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ The steps in this section create a task and enable a user-assigned identity. If
103
103
104
104
### Create task
105
105
106
-
Create the task *dockerhubtask* by executing the following [az acr task create][az-acr-task-create] command. The task context is the local system, and the command references the file `dockerhubtask.yaml` in the working directory. The `--assign-identity` parameter passes the resource ID of the user-assigned identity.
106
+
Create the task *dockerhubtask* by executing the following [az acr task create][az-acr-task-create] command. The task runs without a source code context, and the command references the file `dockerhubtask.yaml` in the working directory. The `--assign-identity` parameter passes the resource ID of the user-assigned identity.
107
107
108
108
```azurecli
109
109
az acr task create \
@@ -122,7 +122,7 @@ The steps in this section create a task and enable a system-assigned identity. I
122
122
123
123
### Create task
124
124
125
-
Create the task *dockerhubtask* by executing the following [az acr task create][az-acr-task-create] command. The task context is the local system, and the command references the file `dockerhubtask.yaml` in the working directory. The `--assign-identity` parameter with no value enables the system-assigned identity on the task.
125
+
Create the task *dockerhubtask* by executing the following [az acr task create][az-acr-task-create] command. The task runs without a source code context, and the command references the file `dockerhubtask.yaml` in the working directory. The `--assign-identity` parameter with no value enables the system-assigned identity on the task.
Copy file name to clipboardExpand all lines: articles/container-registry/container-registry-tasks-cross-registry-authentication.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ The steps in this section create a task and enable a user-assigned identity. If
72
72
73
73
### Create task
74
74
75
-
Create the task *helloworldtask* by executing the following [az acr task create][az-acr-task-create] command. The task context is the local system, and the command references the file `helloworldtask.yaml` in the working directory. The `--assign-identity` parameter passes the resource ID of the user-assigned identity.
75
+
Create the task *helloworldtask* by executing the following [az acr task create][az-acr-task-create] command. The task runs without a source code context, and the command references the file `helloworldtask.yaml` in the working directory. The `--assign-identity` parameter passes the resource ID of the user-assigned identity.
76
76
77
77
```azurecli
78
78
az acr task create \
@@ -91,7 +91,7 @@ The steps in this section create a task and enable a system-assigned identity. I
91
91
92
92
### Create task
93
93
94
-
Create the task *helloworldtask* by executing the following [az acr task create][az-acr-task-create] command. The task context is the local system, and the command references the file `helloworldtask.yaml` in the working directory. The `--assign-identity` parameter with no value enables the system-assigned identity on the task.
94
+
Create the task *helloworldtask* by executing the following [az acr task create][az-acr-task-create] command. The task runs without a source code context, and the command references the file `helloworldtask.yaml` in the working directory. The `--assign-identity` parameter with no value enables the system-assigned identity on the task.
Copy file name to clipboardExpand all lines: articles/container-registry/container-registry-tasks-scheduled.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,9 @@ As a simple example, the following command triggers running the `hello-world` im
43
43
az acr task create \
44
44
--name mytask \
45
45
--registry myregistry \
46
-
--context /dev/null \
47
46
--cmd hello-world \
48
-
--schedule "0 21 * * *"
47
+
--schedule "0 21 * * *" \
48
+
--context /dev/null
49
49
```
50
50
51
51
Run the [az acr task show][az-acr-task-show] command to see that the timer trigger is configured. By default, the base image update trigger is also enabled.
@@ -171,11 +171,11 @@ Each field can have one of the following types of values:
171
171
172
172
|Type |Example |When triggered |
173
173
|---------|---------|---------|
174
-
|A specific value |<nobr>"5 * * * *"</nobr>|every hour at 5 minutes past the hour|
175
-
|All values (`*`)|<nobr>"* 5 * * *"</nobr>|every minute of the hour beginning 5:00 UTC (60 times a day)|
176
-
|A range (`-` operator)|<nobr>"0 1-3 * * *"</nobr>|3 times per day, at 1:00, 2:00, and 3:00 UTC|
177
-
|A set of values (`,` operator)|<nobr>"20,30,40 * * * *"</nobr>|3 times per hour, at 20 minutes, 30 minutes, and 40 minutes past the hour|
178
-
|An interval value (`/` operator)|<nobr>"*/10 * * * *"</nobr>|6 times per hour, at 10 minutes, 20 minutes, and so on, past the hour
174
+
|A specific value |<nobr>`"5 * * * *"`</nobr>|every hour at 5 minutes past the hour|
175
+
|All values (`*`)|<nobr>`"* 5 * * *"`</nobr>|every minute of the hour beginning 5:00 UTC (60 times a day)|
176
+
|A range (`-` operator)|<nobr>`"0 1-3 * * *"`</nobr>|3 times per day, at 1:00, 2:00, and 3:00 UTC|
177
+
|A set of values (`,` operator)|<nobr>`"20,30,40 * * * *"`</nobr>|3 times per hour, at 20 minutes, 30 minutes, and 40 minutes past the hour|
178
+
|An interval value (`/` operator)|<nobr>`"*/10 * * * *"`</nobr>|6 times per hour, at 10 minutes, 20 minutes, and so on, past the hour
@@ -194,6 +194,8 @@ Each field can have one of the following types of values:
194
194
195
195
## Next steps
196
196
197
+
For an example of using a scheduled task to clean up repositories in a registry, see [Automatically purge images from an Azure container registry](container-registry-auto-purge.md).
198
+
197
199
For examples of tasks triggered by source code commits or base image updates, check out the [ACR Tasks tutorial series](container-registry-tutorial-quick-task.md).
0 commit comments