Menu

Azure Backup and Site Recovery with PowerShell 7: Find the Gaps Before You Need a Restore
📰

Azure Backup and Site Recovery with PowerShell 7: Find the Gaps Before You Need a Restore

DEV Community: azure·Anthony Buhnerkemper·about 12 hours ago
#nmQetrQK
#devtoazure#devto#dev#backup#every
Reading 0:00
15s threshold

Backups are easy to set up. They are also easy to forget about.

Then someone needs a restore, and you find out a VM was never protected. Or the last good backup was two weeks ago.

So I cleaned up the checks I use and shared them on GitHub. This toolkit uses PowerShell 7 and the Az.RecoveryServices module.

Repo: azure-backup-dr-powershell-toolkit

The problem it solves

A new VM goes live. Nobody turns on backup.

A backup job fails every night. The alert goes to a mailbox nobody reads.

Soft delete is off. One bad click and the backups are gone.

Site Recovery is set up, but nobody has ever run a test failover.

These scripts make those checks quick and repeatable.

Highlight scripts

Get-AzUnprotectedVmReport.ps1

Compares every VM in the subscription with every vault. It lists the VMs with no backup. VMs tagged Backup = Exempt are listed as exempt, so you can document why they are skipped.

. / Get - AzUnprotectedVmReport .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.