az site-recovery job
Note
This reference is part of the site-recovery extension for the Azure CLI (version 2.51.0 or higher). The extension will automatically install the first time you run an az site-recovery job command. Learn more about extensions.
Manage Azure Site Recovery Jobs for the vault.
Commands
Name | Description | Type | Status |
---|---|---|---|
az site-recovery job cancel |
The operation to cancel an Azure Site Recovery job. |
Extension | GA |
az site-recovery job export |
The operation to export the details of the Azure Site Recovery jobs of the vault. |
Extension | GA |
az site-recovery job list |
List the list of Azure Site Recovery Jobs for the vault. |
Extension | GA |
az site-recovery job restart |
The operation to restart an Azure Site Recovery job. |
Extension | GA |
az site-recovery job resume |
The operation to resume an Azure Site Recovery job. |
Extension | GA |
az site-recovery job show |
Get the details of an Azure Site Recovery job. |
Extension | GA |
az site-recovery job cancel
The operation to cancel an Azure Site Recovery job.
az site-recovery job cancel [--ids]
[--job-name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--vault-name]
Examples
job cancel
az site-recovery job cancel --job-name job_id -g rg --vault-name vault_name
Optional Parameters
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 identifier.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the recovery services vault.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az site-recovery job export
The operation to export the details of the Azure Site Recovery jobs of the vault.
az site-recovery job export [--affected-object-types]
[--end-time]
[--fabric-id]
[--ids]
[--job-name]
[--job-output-type {Excel, Json, Xml}]
[--job-status]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--start-time]
[--subscription]
[--timezone-offset]
[--vault-name]
Examples
job export
az site-recovery job export -g rg --vault-name vault_name
Optional Parameters
The type of objects.
Date time to get jobs upto.
The Id of the fabric to search jobs under.
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.
The job Name.
The output type of the jobs.
The states of the job to be filtered can be in.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Date time to get jobs from.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The timezone offset for the location of the request (in minutes).
The name of the recovery services vault.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az site-recovery job list
List the list of Azure Site Recovery Jobs for the vault.
az site-recovery job list --resource-group
--vault-name
[--filter]
[--max-items]
[--next-token]
Examples
job list
az site-recovery job list -g rg --vault-name vault_name
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the recovery services vault.
Optional Parameters
OData filter options.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az site-recovery job restart
The operation to restart an Azure Site Recovery job.
az site-recovery job restart [--ids]
[--job-name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--vault-name]
Examples
job restart
az site-recovery job restart --job-name job_id -g rg --vault-name vault_name
Optional Parameters
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 identifier.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the recovery services vault.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az site-recovery job resume
The operation to resume an Azure Site Recovery job.
az site-recovery job resume [--comments]
[--ids]
[--job-name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--vault-name]
Examples
job resume
az site-recovery job resume --job-name job_id -g rg --vault-name vault_name
Optional Parameters
Resume job comments.
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 identifier.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the recovery services vault.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az site-recovery job show
Get the details of an Azure Site Recovery job.
az site-recovery job show [--ids]
[--job-name]
[--resource-group]
[--subscription]
[--vault-name]
Examples
job show
az site-recovery job show -g rg --vault-name vault_name --job-name job_id
Optional Parameters
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 identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the recovery services vault.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI