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 --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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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 |
Job identifier.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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 |
The name of the recovery services vault.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
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 --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 following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The type of objects.
| Property | Value |
|---|---|
| Parameter group: | JobQueryParameter Arguments |
Date time to get jobs upto.
| Property | Value |
|---|---|
| Parameter group: | JobQueryParameter Arguments |
The Id of the fabric to search jobs under.
| Property | Value |
|---|---|
| Parameter group: | JobQueryParameter Arguments |
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 |
The job Name.
| Property | Value |
|---|---|
| Parameter group: | JobQueryParameter Arguments |
The output type of the jobs.
| Property | Value |
|---|---|
| Parameter group: | JobQueryParameter Arguments |
| Accepted values: | Excel, Json, Xml |
The states of the job to be filtered can be in.
| Property | Value |
|---|---|
| Parameter group: | JobQueryParameter Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Date time to get jobs from.
| Property | Value |
|---|---|
| Parameter group: | JobQueryParameter Arguments |
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 |
The timezone offset for the location of the request (in minutes).
| Property | Value |
|---|---|
| Parameter group: | JobQueryParameter Arguments |
The name of the recovery services vault.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Token to specify where to start paginating. This is the token value from a previously truncated response.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az site-recovery job restart
The operation to restart an Azure Site Recovery job.
az site-recovery job restart [--ids]
[--job-name --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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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 |
Job identifier.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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 |
The name of the recovery services vault.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az site-recovery job resume
The operation to resume an Azure Site Recovery job.
az site-recovery job resume [--comments]
[--ids]
[--job-name --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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Resume job comments.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
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 |
Job identifier.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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 |
The name of the recovery services vault.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az site-recovery job show
Get the details of an Azure Site Recovery job.
az site-recovery job show [--ids]
[--job-name --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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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 |
Job identifier.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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 |
The name of the recovery services vault.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |