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.