Azure backup server protected items list using powershell script

Siva Sankararao Arudra 61 Reputation points

Good Morning,

I'm looking for a PowerShell script to get the list of all protected items with all property details like (backup item, item type, protected server, backup management, last recovery point, etc..) in the azure recovery service vault for the azure backup server. I'm using the below cmd but it fetches only the registered backup servers list not all the protected items listed inside them. please can you assist me with this? thanks in advance

$backupServersMARS = Get-AzRecoveryServicesBackupContainer -ContainerType "Windows" -BackupManagementType MAB -VaultId $RCvault.ID


Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,185 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
679 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,449 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,506 Reputation points

    Hi there,

    It seems you have not set the -VaultId parameter correctly to get the expected result.

    A container that is registered to an Azure Recovery Services vault can have one or more items that can be protected. For Azure virtual machines, there can be only one backup item in the virtual machine container. Set the vault context by using the -VaultId parameter.

    You can read more about this from the below article

    Azure Backup PowerShell samples


    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments