-
jsobell
- Influencer
- Posts: 13
- Liked: 1 time
- Joined: Nov 07, 2024 2:36 am
- Full Name: Jason Sobell
- Contact:
Retrieving Azure VM backups
When I look in the Jobs/Backup I see all my Object Storage Backup objects, which I'm able to retrieve through the PowerShell Cmdlets, but I also see some of type "Microsoft Azure VM" and "Microsoft Azure virtual network".
I can't find any PowerShell commands that return any of these jobs.
Is anyone aware of a command that returns these job results?
I can't find any PowerShell commands that return any of these jobs.
Is anyone aware of a command that returns these job results?
-
david.domask
- Veeam Software
- Posts: 3143
- Liked: 720 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Retrieving Azure VM backups
Hi jsobell,
You need to go through Get-VBRRestorePoint with the -Name parameter currently to grab such backups. Currently the cmdlet selection is limited on v12, but on v13 we have an extended list -- which version are you currently on?
https://helpcenter.veeam.com/docs/vbr/p ... tml?ver=13
You can see the v13 related cmdlets here (also search the a-z list for "azure")
You need to go through Get-VBRRestorePoint with the -Name parameter currently to grab such backups. Currently the cmdlet selection is limited on v12, but on v13 we have an extended list -- which version are you currently on?
https://helpcenter.veeam.com/docs/vbr/p ... tml?ver=13
You can see the v13 related cmdlets here (also search the a-z list for "azure")
David Domask | Product Management: Principal Analyst
-
jsobell
- Influencer
- Posts: 13
- Liked: 1 time
- Joined: Nov 07, 2024 2:36 am
- Full Name: Jason Sobell
- Contact:
Re: Retrieving Azure VM backups
Hi,
Thanks, that does return a list of VMs and BackupIDs, so what function do I pass each BackupId to in order to return the status information and durations etc?
Thanks,
Jason
Thanks, that does return a list of VMs and BackupIDs, so what function do I pass each BackupId to in order to return the status information and durations etc?
Thanks,
Jason
-
david.domask
- Veeam Software
- Posts: 3143
- Liked: 720 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Retrieving Azure VM backups
Happy to help.
When you say status information and durations, can you explain a bit more what you're looking for? Maybe screenshot of the property in the UI you want to retrieve with Powershell?
When you say status information and durations, can you explain a bit more what you're looking for? Maybe screenshot of the property in the UI you want to retrieve with Powershell?
David Domask | Product Management: Principal Analyst
-
jsobell
- Influencer
- Posts: 13
- Liked: 1 time
- Joined: Nov 07, 2024 2:36 am
- Full Name: Jason Sobell
- Contact:
Re: Retrieving Azure VM backups
I'm trying to get the same statistics that are shown in the following job status display:


-
jsobell
- Influencer
- Posts: 13
- Liked: 1 time
- Joined: Nov 07, 2024 2:36 am
- Full Name: Jason Sobell
- Contact:
Re: Retrieving Azure VM backups
Hi David, any further suggestions for this?
Thanks, Jason
Thanks, Jason
-
david.domask
- Veeam Software
- Posts: 3143
- Liked: 720 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Retrieving Azure VM backups
Hi Jason,
For v12, no supported methods, and looks like it's not yet supported in v13 either.
In v12 you can use this unsupported method to fetch it -- only use this for reporting, do not perform any other operations with the resulting objects:
This will return additional job types (e.g., Proxmox), but you can further filter on the TypeToString property, e.g.,:
For v12, no supported methods, and looks like it's not yet supported in v13 either.
In v12 you can use this unsupported method to fetch it -- only use this for reporting, do not perform any other operations with the resulting objects:
Code: Select all
Get-VBRLicenseAutoUpdateStatus | Out-Null #any normal cmdlet must be run first before using unsupported .NET reflection, this cmdlet is fastest usually
[Veeam.Backup.Core.CBackupjob]::GetByType('14000')Code: Select all
[Veeam.Backup.Core.CBackupjob]::GetByType('14000') | Where-Object {$_.TypeToString -like "*Azure*"}David Domask | Product Management: Principal Analyst
-
jsobell
- Influencer
- Posts: 13
- Liked: 1 time
- Joined: Nov 07, 2024 2:36 am
- Full Name: Jason Sobell
- Contact:
Re: Retrieving Azure VM backups
Awesome, thank you!
I have to say that the API's provided by VBR are truly terrible. Our solution for reporting requires a mass of messy powershell scripts because half of the REST API calls don't return the same information.
How did you find the undocumented type ID? Is there a table containing these IDs, or are they enums somewhere in a library?
Thanks for this extremely helpful information!
Jason
I have to say that the API's provided by VBR are truly terrible. Our solution for reporting requires a mass of messy powershell scripts because half of the REST API calls don't return the same information.
How did you find the undocumented type ID? Is there a table containing these IDs, or are they enums somewhere in a library?
Thanks for this extremely helpful information!
Jason
-
david.domask
- Veeam Software
- Posts: 3143
- Liked: 720 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Retrieving Azure VM backups
Glad I was able to assist Jason.
As for the API, just to confirm you mean the APIs return inconsistent information or the APIs don't have as much information? We're working hard to get 1:1 parity between the REST API and the remote console, so you should be able to go all-in on the APIs soon (I'm hopeful we should get pretty good coverage in 13.1 for the most common items)
> How did you find the undocumented type ID? Is there a table containing these IDs, or are they enums somewhere in a library?
Just experience regrettably, there is no documentation as the unsupported methods are .NET Reflection / .NET methods on objects, basically calling the actual code from DLLs but without the usual safety checks, hence why unsupported and why "reporting only".
I would say it's better to check here first for a supported solution so we can see where we're missing coverage and if feasible provide a safe method for retrieving the data.
As for the API, just to confirm you mean the APIs return inconsistent information or the APIs don't have as much information? We're working hard to get 1:1 parity between the REST API and the remote console, so you should be able to go all-in on the APIs soon (I'm hopeful we should get pretty good coverage in 13.1 for the most common items)
> How did you find the undocumented type ID? Is there a table containing these IDs, or are they enums somewhere in a library?
Just experience regrettably, there is no documentation as the unsupported methods are .NET Reflection / .NET methods on objects, basically calling the actual code from DLLs but without the usual safety checks, hence why unsupported and why "reporting only".
I would say it's better to check here first for a supported solution so we can see where we're missing coverage and if feasible provide a safe method for retrieving the data.
David Domask | Product Management: Principal Analyst
Who is online
Users browsing this forum: No registered users and 7 guests