az dataprotection backup-policy trigger
Note
This reference is part of the dataprotection extension for the Azure CLI (version 2.57.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
Name | Description | Type | Status |
---|---|---|---|
az dataprotection backup-policy trigger create-schedule |
Create backup schedule of a policy. |
Extension | GA |
az dataprotection backup-policy trigger set |
Associate backup schedule to a backup policy. |
Extension | GA |
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
Specify duration of backup frequency.
Specify Backup Frequency.
Specify the backup schedule time in UTC (yyyy-mm-ddTHH:MM:SS).
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 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
Existing policy Json string or file.
Specify schedule time intervals for backup rule.
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.