Using Console
Using CLI
az backup policy show --name <backup-policy-name> --resource-group <resource-group-name> --vault-name <vault-name>
Replace <backup-policy-name>
, <resource-group-name>
and <vault-name>
with the actual names of your backup policy, resource group and vault respectively.
retentionPolicy
object in the output to see the current retention period.
az backup policy set --name <backup-policy-name> --resource-group <resource-group-name> --vault-name <vault-name> --retention-days <number-of-days>
Replace <backup-policy-name>
, <resource-group-name>
, <vault-name>
and <number-of-days>
with the actual names of your backup policy, resource group, vault and the desired number of retention days respectively.
retentionPolicy
object in the output.
Using Python
RecoveryServicesBackupClient
object using the credentials: