Share via


az backup job

Entity which contains details of the job.

Commands

Name Description Type Status
az backup job list

List all backup jobs of a Recovery Services vault.

Core GA
az backup job show

Show details of a particular job.

Core GA
az backup job stop

Suspend or terminate a currently running job.

Core GA
az backup job wait

Wait until either the job completes or the specified timeout value is reached.

Core GA

az backup job list

List all backup jobs of a Recovery Services vault.

az backup job list --resource-group
                   --vault-name
                   [--backup-management-type {AzureIaasVM, AzureStorage, AzureWorkload, MAB}]
                   [--end-date]
                   [--operation {Backup, ConfigureBackup, DeleteBackupData, DisableBackup, Restore}]
                   [--start-date]
                   [--status {Cancelled, Completed, CompletedWithWarnings, Failed, InProgress}]
                   [--use-secondary-region]

Examples

List all backup jobs of a Recovery Services vault

az backup job list --resource-group MyResourceGroup --vault-name MyVault

Required Parameters

--resource-group -g

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

--vault-name -v

Name of the Recovery services vault.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--backup-management-type

Specify the backup management type. Define how Azure Backup manages the backup of entities within the ARM resource. For eg: AzureWorkloads refers to workloads installed within Azure VMs, AzureStorage refers to entities within Storage account. Required only if friendly name is used as Container name.

Property Value
Accepted values: AzureIaasVM, AzureStorage, AzureWorkload, MAB
--end-date

The end date of the range in UTC (d-m-Y).

--operation

User initiated operation.

Property Value
Accepted values: Backup, ConfigureBackup, DeleteBackupData, DisableBackup, Restore
--start-date

The start date of the range in UTC (d-m-Y).

--status

Status of the Job.

Property Value
Accepted values: Cancelled, Completed, CompletedWithWarnings, Failed, InProgress
--use-secondary-region

Use this flag to show recoverypoints in secondary region.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az backup job show

Show details of a particular job.

az backup job show [--ids]
                   [--name]
                   [--resource-group]
                   [--subscription]
                   [--use-secondary-region]
                   [--vault-name]

Examples

Show details of a particular job. (autogenerated)

az backup job show --name MyJob --resource-group MyResourceGroup --vault-name MyVault

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

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

Property Value
Parameter group: Resource Id Arguments
--name -n

Name of the job. You can use the backup job list command to get the name of a job.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

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

Property Value
Parameter group: Resource Id Arguments
--subscription

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

Property Value
Parameter group: Resource Id Arguments
--use-secondary-region

Use this flag to show recoverypoints in secondary region.

--vault-name -v

Name of the Recovery services vault.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

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

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

--verbose

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

Property Value
Default value: False

az backup job stop

Suspend or terminate a currently running job.

az backup job stop [--ids]
                   [--name]
                   [--resource-group]
                   [--subscription]
                   [--use-secondary-region]
                   [--vault-name]

Examples

Suspend or terminate a currently running job. (autogenerated)

az backup job stop --name MyJob --resource-group MyResourceGroup --vault-name MyVault

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

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

Property Value
Parameter group: Resource Id Arguments
--name -n

Name of the job. You can use the backup job list command to get the name of a job.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

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

Property Value
Parameter group: Resource Id Arguments
--subscription

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

Property Value
Parameter group: Resource Id Arguments
--use-secondary-region

Use this flag to show recoverypoints in secondary region.

--vault-name -v

Name of the Recovery services vault.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

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

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

--verbose

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

Property Value
Default value: False

az backup job wait

Wait until either the job completes or the specified timeout value is reached.

az backup job wait [--ids]
                   [--name]
                   [--resource-group]
                   [--subscription]
                   [--timeout]
                   [--use-secondary-region]
                   [--vault-name]

Examples

Wait until either the job completes or the specified timeout value is reached

az backup job wait --name MyJob --resource-group MyResourceGroup --vault-name MyVault

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

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

Property Value
Parameter group: Resource Id Arguments
--name -n

Name of the job. You can use the backup job list command to get the name of a job.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

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

Property Value
Parameter group: Resource Id Arguments
--subscription

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

Property Value
Parameter group: Resource Id Arguments
--timeout

Maximum time, in seconds, to wait before aborting.

--use-secondary-region

Use this flag to show recoverypoints in secondary region.

--vault-name -v

Name of the Recovery services vault.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

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

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

--verbose

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

Property Value
Default value: False