I'm trying to delete recovery vault but it has some old data generated by MARS agents on non-existent machines. There is no UI option to delete those.
I tried Powershell below but it fails with Get-AzureRmRecoveryServicesBackupItem : BackupManagementType is not expected for WorkloadType: AzureVM
Not sure what am I doing wrong
PS Azure:\> Get-AzureRmRecoveryServicesBackupContainer -ContainerType Windows -Status Registered -BackupManagementType MARS
Name ContainerType BackupManagementType
---- ------------- --------------------
tencapsql01. Windows MARS
tencapweb1. Windows MARS
Azure:\converted to MS-AZR-0003P sub
PS Azure:\> $containers = Get-AzureRmRecoveryServicesBackupContainer -ContainerType Windows -Status Registered -BackupManagementType MARS
Azure:\converted to MS-AZR-0003P sub
PS Azure:\> Get-AzureRmRecoveryServicesBackupItem -Container $containers[0] -WorkloadType AzureVM
Get-AzureRmRecoveryServicesBackupItem : BackupManagementType is not expected for WorkloadType: AzureVM
At line:1 char:1
+ Get-AzureRmRecoveryServicesBackupItem -Container $containers[0] -Work ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-AzureRmRecoveryServicesBackupItem], ArgumentException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.GetAzureRmRecoveryServicesBackupItem
