You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -67,7 +69,9 @@ To understand the inner components of a Backup policy for Azure Disk Backup, ret
67
69
68
70
```azurecli-interactive
69
71
az dataprotection backup-policy get-default-policy-template --datasource-type AzureDisk
72
+
```
70
73
74
+
```output
71
75
{
72
76
"datasourceTypes": [
73
77
"Microsoft.Compute/disks"
@@ -124,7 +128,6 @@ az dataprotection backup-policy get-default-policy-template --datasource-type Az
124
128
}
125
129
]
126
130
}
127
-
128
131
```
129
132
130
133
The policy template consists of a trigger (which decides what triggers the backup) and a lifecycle (which decides when to delete/copy/move the backup). In Azure Disk Backup, the default values for trigger are a scheduled trigger for every 4 hours (PT4H) and to retain each backup for seven days.
@@ -139,7 +142,6 @@ The policy template consists of a trigger (which decides what triggers the backu
139
142
"R/2020-04-05T13:00:00+00:00/PT4H"
140
143
]
141
144
}
142
-
143
145
```
144
146
145
147
**Default retention lifecycle:**
@@ -178,7 +180,9 @@ Once the template is downloaded as a JSON file, you can edit it for scheduling a
178
180
```azurecli-interactive
179
181
az dataprotection backup-policy get-default-policy-template --datasource-type AzureDisk > policy.json
@@ -442,13 +448,11 @@ az dataprotection backup-instance list-from-resourcegraph --datasource-type Azur
442
448
"zones": null
443
449
}
444
450
]
445
-
446
-
447
451
```
448
452
449
453
You can specify a retention rule while triggering backup. To view the retention rules in policy, look through the policy JSON for retention rules. In the below example, the rule with the name _default_ is displayed and we'll use that rule for the on-demand backup.
0 commit comments