az dataprotection backup-policy trigger

Note

This reference is part of the dataprotection extension for the Azure CLI (version 2.51.0 or higher). The extension will automatically install the first time you run an az dataprotection backup-policy trigger command. Learn more about extensions.

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

Manage backup schedule of a backup policy.

Commands

Name Description Type Status
az dataprotection backup-policy trigger create-schedule

Create backup schedule of a policy.

Extension Experimental
az dataprotection backup-policy trigger set

Associate backup schedule to a backup policy.

Extension Experimental

az dataprotection backup-policy trigger create-schedule

Experimental

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

Create backup schedule of a policy.

az dataprotection backup-policy trigger create-schedule --interval-count
                                                        --interval-type {Daily, Hourly, Weekly}
                                                        --schedule-days

Examples

create weekly backup schedule where backup is taken twice a week.

az dataprotection backup-policy trigger create-schedule --interval-type Weekly --interval-count 1 --schedule-days 2021-05-02T05:30:00 2021-05-03T05:30:00

create hourly backup schedule where backup frequency is every 4 hours

az dataprotection backup-policy trigger create-schedule --interval-type Hourly --interval-count 6 --schedule-days 2021-05-02T05:30:00

Required Parameters

--interval-count

Specify duration of backup frequency.

--interval-type

Specify Backup Frequency.

accepted values: Daily, Hourly, Weekly
--schedule-days

Specify the backup schedule time in UTC (yyyy-mm-ddTHH:MM:SS).

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 dataprotection backup-policy trigger set

Experimental

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

Associate backup schedule to a backup policy.

az dataprotection backup-policy trigger set --policy
                                            --schedule

Examples

associate daily backup schedule

az dataprotection backup-policy trigger set --policy policy.json --schedule R/2021-05-02T05:30:00+00:00/P1D

Required Parameters

--policy

Existing policy Json string or file.

--schedule

Specify schedule time intervals for backup rule.

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.