PowerShell script exchange
Post Reply
hasaranga
Lurker
Posts: 1
Liked: never
Joined: Aug 19, 2021 12:11 pm
Contact:

VeeamZIP backup notification

Post by hasaranga »

Hello ,

What I would like to do is to automate VeeamZIP job execution and get a notification after the job completed. Parameteres (VM name , retention) are passed to the script from a separate form. So I would like to get a usual notification after the VeeamZIP job is completed.
I have created VeemZIP job and it's working fine , however I want to add a command to enable email notification after the backup job is completed. Anybody can guide me to this .

Code: Select all

$vm = Find-VBRViEntity -Name $vmName
$rep = Get-VBRBackupRepository -Name $repo
Start-VBRZip -BackupRepository $rep -Entity $vm -AutoDelete $retention 

<need to add command to send an email notification here>
Thanks ,
Hasa
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: VeeamZIP backup notification

Post by oleg.feoktistov »

Hi,

We don't have any custom cmdlets for that, but you can use the native one provided by Microsoft.

Thanks,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests