[POWERSHELL]Is it possible to find out the number of VM’s backed up by a policy?

So we’re trying to script some backup policy work. The idea is to find out how many VMs are being backed up by a policy and then pick the policy backing up the lowest number of VM’s.

Is there any command or commandlet that would do this.

Get-AzureRmRecoveryServicesBackupProtectionPolicy gets the policies, but no data behind them.

Any help would be appreicated.

submitted by /u/nofate301
[link] [comments]

Leave a Reply