Share via


az automation job

Note

This reference is part of the automation extension for the Azure CLI (version 2.55.0 or higher). The extension will automatically install the first time you run an az automation job command. Learn more about extensions.

This command group is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Automation Job.

Commands

Name Description Type Status
az automation job list

Retrieve a list of jobs.

Extension Experimental
az automation job resume

Resume the job identified by jobName.

Extension Experimental
az automation job show

Retrieve the job identified by job name.

Extension Experimental
az automation job stop

Stop the job identified by jobName.

Extension Experimental
az automation job suspend

Suspend the job identified by job name.

Extension Experimental

az automation job list

Experimental

Command group 'automation job' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Retrieve a list of jobs.

az automation job list --automation-account-name
                       --resource-group

Examples

List jobs by automation account

az automation job list --automation-account-name "myAutomationAccount" --resource-group "rg"

Required Parameters

--automation-account-name

The name of the automation account.

--resource-group -g

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az automation job resume

Experimental

Command group 'automation job' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Resume the job identified by jobName.

az automation job resume [--automation-account-name]
                         [--ids]
                         [--job-name]
                         [--resource-group]
                         [--subscription]

Examples

Resume job

az automation job resume --automation-account-name "myAutomationAccount" --name "foo"                --resource-group "rg"

Optional Parameters

--automation-account-name

The name of the automation account.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--job-name --name -n

The job name.

--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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az automation job show

Experimental

Command group 'automation job' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Retrieve the job identified by job name.

az automation job show [--automation-account-name]
                       [--ids]
                       [--job-name]
                       [--resource-group]
                       [--subscription]

Examples

Get job

az automation job show --automation-account-name "myAutomationAccount" --name "foo" --resource-group "rg"

Optional Parameters

--automation-account-name

The name of the automation account.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--job-name --name -n

The job name.

--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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az automation job stop

Experimental

Command group 'automation job' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Stop the job identified by jobName.

az automation job stop [--automation-account-name]
                       [--ids]
                       [--job-name]
                       [--resource-group]
                       [--subscription]

Examples

Stop job

az automation job stop --automation-account-name "myAutomationAccount" --name "foo" --resource-group "rg"

Optional Parameters

--automation-account-name

The name of the automation account.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--job-name --name -n

The job name.

--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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az automation job suspend

Experimental

Command group 'automation job' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Suspend the job identified by job name.

az automation job suspend [--automation-account-name]
                          [--ids]
                          [--job-name]
                          [--resource-group]
                          [--subscription]

Examples

Suspend job

az automation job suspend --automation-account-name "myAutomationAccount" --name "foo"                --resource-group "rg"

Optional Parameters

--automation-account-name

The name of the automation account.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--job-name --name -n

The job name.

--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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.