We use Veeam Backup for Microsoft 365 to backup our Microsoft 365 tenant.
I have noticed a lot of removed SharePoint sites are still backed up, so i tried te remove them from the repository.
I can delete some sites, but the most sites give the following error:
Remove-VBOEntityData : Cannot validate argument on parameter 'Site'. The argument is null. Provide a valid value for th
e argument, and then try running the command again.
At line:1 char:52
+ Remove-VBOEntityData -Repository $repository -Site $site
+ ~~~~~
+ CategoryInfo : InvalidData: (:) [Remove-VBOEntityData], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Veeam.Archiver.PowerShell.Cmdlets.BackupItems.RemoveVBO
EntityData
I use the following commands in the PowerShell Toolkit:
When i try to remove a site from the repository based on the url, i get the same error.
I noticed when i executed the following command, no information is returned:
$site = Get-VBOEntityData -Type Site -Repository $repository -Name "https://*******.sharepoint.com/sites/name"
Could you do a $site to display what it gives? I still think it is not giving you the information you need. And I do assume you are using a very specific URL for your environment and not Mildurs example
When i only do $site i'm not receiving any information.
Yes i am using a url specific to my environment.
The site i want to remove is listed when using the following command:
Get-VBOEntityData -Type Site -Repository $repository | select title,Url,BackedUpTime
When executing $site = Get-VBOEntityData -Type Site -Repository $repository -Name "https://*******.sharepoint.com/sites/name" no information is being displayed.
It's almost like the entry is non existent.
We are probably overseeing something but I kind put my finger on it at this point in time.
I propose you log a support call so that an engineer can do a session together with you to figure out what is going on. That might make things much easier then trying to solve this through the forums.
Although I do believe that your first code is correct: ($site = Get-VBOEntityData -Type Site -Repository $repository -Name "examplesite")