az dataprotection backup-policy trigger

Note

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

Manage backup schedule of a backup policy.

Commands

az dataprotection backup-policy trigger create-schedule

Create backup schedule of a policy.

az dataprotection backup-policy trigger set

Associate backup schedule to a backup policy.

az dataprotection backup-policy trigger create-schedule

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

az dataprotection backup-policy trigger set

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.