az acr task timer

Manage timer triggers for a task.

Commands

az acr task timer add

Add a timer trigger to a task.

az acr task timer list

List all timer triggers for a task.

az acr task timer remove

Remove a timer trigger from a task.

az acr task timer update

Update the timer trigger for a task.

az acr task timer add

Add a timer trigger to a task.

az acr task timer add --name
                      --registry
                      --schedule
                      --timer-name
                      [--enabled {false, true}]
                      [--resource-group]
                      [--subscription]

Examples

Add a timer trigger which schedules the task at 09:30 (UTC) every day of the week from Monday through Friday.

az acr task timer add -n taskname -r registryname --timer-name t2 --schedule "30 9 * * 1-5"

Required Parameters

--name -n

The name of the task.

--registry -r

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

--schedule

The schedule of the timer trigger represented as a cron expression.

--timer-name

The name of the timer trigger.

Optional Parameters

--enabled

Indicates whether the timer trigger is enabled.

accepted values: false, true
default value: 1
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az acr task timer list

List all timer triggers for a task.

az acr task timer list --name
                       --registry
                       [--query-examples]
                       [--resource-group]
                       [--subscription]

Examples

List all timer triggers for a task.

az acr task timer list -n taskname -r registryname

Required Parameters

--name -n

The name of the task.

--registry -r

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az acr task timer remove

Remove a timer trigger from a task.

az acr task timer remove --name
                         --registry
                         --timer-name
                         [--resource-group]
                         [--subscription]

Examples

Remove a timer trigger from a task.

az acr task timer remove -n taskname -r registryname --timer-name t2

Required Parameters

--name -n

The name of the task.

--registry -r

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

--timer-name

The name of the timer trigger.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az acr task timer update

Update the timer trigger for a task.

az acr task timer update --name
                         --registry
                         --timer-name
                         [--enabled {false, true}]
                         [--resource-group]
                         [--schedule]
                         [--subscription]

Examples

Update the schedule of a timer trigger for a task.

az acr task timer update -n taskname -r registryname --timer-name t2 --schedule "0 12 * * *"

Update the status of a timer trigger for a task.

az acr task timer update -n taskname -r registryname --timer-name t2 --enabled False

Required Parameters

--name -n

The name of the task.

--registry -r

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

--timer-name

The name of the timer trigger.

Optional Parameters

--enabled

Indicates whether the timer trigger is enabled.

accepted values: false, true
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--schedule

The schedule of the timer trigger represented as a cron expression.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.