Agentless, cloud-native backup for Microsoft Azure
Post Reply
ratkinsonuk
Expert
Posts: 137
Liked: 22 times
Joined: Dec 10, 2018 10:59 am
Full Name: Robert Atkinson
Contact:

Veeam for Azure Powershell API

Post by ratkinsonuk »

I'd made an assumption that there would be Add-VBRAzureBackup type cmdlets in Veeam v12. After some hunting and disappointment, it seems only the REST API is available at the moment.

Please can you confirm my understanding is correct, and if there's anything likely to be added to the roadmap or should I concentrate on developing a REST framework instead?

Thanks, Rob.
oleg.feoktistov
Veeam Software
Posts: 2034
Liked: 677 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Veeam for Azure Powershell API

Post by oleg.feoktistov »

Hi Robert,

Atr the moment our focus is directed towards REST API, so I'd expect enhancements in VBR REST sooner than in Powershell.
But in regards to Powershell, can I ask what kind of methods/cmdlets are you looking for?

Best regards,
Oleg
ratkinsonuk
Expert
Posts: 137
Liked: 22 times
Joined: Dec 10, 2018 10:59 am
Full Name: Robert Atkinson
Contact:

Re: Veeam for Azure Powershell API

Post by ratkinsonuk »

Morning Oleg.

I have a number of scripts for creating backup jobs, repositories and reporting on B&R using VMWare based commands, e.g.

Code: Select all

Write-Host "Creating Veeam BACKUP job '$BackupJobName' using repository $TargetRepository..."

Try {
    Add-VBRViBackupJob -Name $BackupJobName -BackupRepository $TargetRepository -Description $Description `
        -Entity (Find-VBRViEntity -VMsAndTemplates -Name $aryServerList.Name) | Out-Null
}
Catch {
    Write-Host "Failed to create the backup job:" $Error[0].Exception.Message -ForegroundColor Red
    Exit
}

Write-Host "Updating Storage options..."
Try {
    Get-VBRJob -name $BackupJobName | Set-VBRJobAdvancedStorageOptions -CompressionLevel 5 -StorageBlockSize 5 -EnableDeduplication $false | Out-Null
}
Catch {
    Write-Host "Unable to update the Storage options:" $Error[0].Exception.Message -ForegroundColor Red
    exit
}

Write-Host "Updating Full Backup options..."
Try {
    Get-VBRJob -name $BackupJobName | Set-VBRJobAdvancedBackupOptions -EnableFullBackup $true -TransformFullToSyntethic $false | Out-Null
}
Catch {
    Write-Host "Unable to configure Full Backup:" $Error[0].Exception.Message -ForegroundColor Red
    exit
}
We're migrating over to Azure, so I need to recreate/rewrite the same utilities. I was hoping I could just tweak the cmdlets, but looks like I'll be re-writing from scratch.

Cheers, Rob.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests