PowerShell script exchange
Post Reply
aantonacci@shci.ca
Influencer
Posts: 21
Liked: never
Joined: Oct 19, 2020 7:42 pm
Full Name: Anthony Antonacci
Contact:

Pull Backup information from VCC

Post by aantonacci@shci.ca »

Hi,

Unfortunatly, for now, Veeam support has been unable to find how to properly refresh backup repositories using PowerShell, and told me the 'better" method would be to query the VCC server instead of requesting the information from the console.

there does not appear to be much documentation on VCC powershell, does someone know how I can get current backup usage space (or at least path)

I did find
Get-VBRBackupRepository = this gives me the path
and
Get-VBRCloudTenant = this will give me the tenants

With both i can figure out what tenant is in witch repository but i can't figure out how to see the space each tenant is consuming.

Note: i have yet to check if the ID of the tenant Matches up with the Console so i can match both information in my monitoring/invocing database.
david.domask
Veeam Software
Posts: 2123
Liked: 513 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Pull Backup information from VCC

Post by david.domask »

Hey Anthony,

As far as I know, a lot of the parts of VCC are abstracted out from Powershell currently; I think RESTApi gives a bit more but I've not played with it.

Awhile back I hacked this out for another purpose, and maybe it will help you: post397217.html#p397217

You'll need to customize it a bit to your desired needs, but maybe it will help you? I actually am not quite sure what your desired output should be, but maybe you can find some inspiration in that code (or maybe Oleg F. will save the day here shortly! :D )
David Domask | Product Management: Principal Analyst
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Pull Backup information from VCC

Post by oleg.feoktistov »

Hi Anthony,

Have you tried looking into tenant resources' properties?
Example:

Code: Select all

$tenant = Get-VBRCloudTenant
$tenant.Resources.UsedSpace
Thanks,
Oleg
aantonacci@shci.ca
Influencer
Posts: 21
Liked: never
Joined: Oct 19, 2020 7:42 pm
Full Name: Anthony Antonacci
Contact:

Re: Pull Backup information from VCC

Post by aantonacci@shci.ca »

No I didnt! the resource property appear to contain a GUID so i didn't bother to list it to see if it contained sub-properties...

Thanks this might do, I will check with my team if these numbers are in sync with actual disk usage!

il run a few tests from here, thanks!

** David, since all of our monitoring is done through PowerShell its easier to stay on that platform, but i have a bunch of REST-API functions i made for other monitoring elements... if PS doesn't provide what I'm looking for, I used in many other projects ;)
thanks for the lead, il see how the core command this commands works out!
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests