vm_backup_policies
Retrieve Azure VM backup schedules and retention settings across Recovery Services vaults per subscription; inspect policy details read-only.
Instructions
Schedule and retention of the Azure VM backup policies in each Recovery Services vault.
Read-only; needs the Reader role on the subscription. Per policy:
policy_type (V1 = SimpleSchedulePolicy, V2 =
SimpleSchedulePolicyV2 with an hourly / daily / weekly schedule),
schedule (frequency, run times in UTC, weekdays, or the hourly window),
retention (LongTermRetentionPolicy: daily / weekly / monthly /
yearly blocks with their day selection and duration), instant_rp_days,
timezone and protected_item_count (ARM's own count). A schedule or
retention type this server does not know is returned as
{"type": <name>, "unparsed": true}, never dropped.
subscription is an id or display name from list_subscriptions
(None = every visible subscription); an unknown or ambiguous name
returns found: false. Coverage flags as in vm_backup_status:
skipped_vaults per subscription, skipped subscriptions when the
budget ran out, capped overall.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_pages | No | ||
| subscription | No |