New-VBRNotificationOptions

Short Description

Creates new job notification options.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

New-VBRNotificationOptions [-AdditionalAddress <String[]>] [-EnableAdditionalNotification] [-EnableDailyNotification] [-EnableSnmpNotification] [-NotificationSubject <String>] [-NotifyOnError] [-NotifyOnLastRetryOnly] [-NotifyOnSuccess] [-NotifyOnWarning] [-NotifyWhenWaitingForTape] [-SendTime <TimeSpan>] [-UseNotificationOptions]  [<CommonParameters>]

Detailed Description

This cmdlet creates the VBRNotificationOptions object. This object contains email notification settings for backup or replication jobs. You can use this object later to apply these settings to a job.

Important

Email notification can be configured for jobs only in case that the global email notifications are enabled. Note that you cannot enable the global email notifications with Veeam PowerShell. For more information, see the Configuring Global Email Notification Settings section of the Veeam Backup & Replication User Guide.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

EnableAdditionalNotification

Enables the email notification. You can set it to True (enabled) or False (disabled).

SwitchParameter

False

Named

False

AdditionalAddress

Specifies the email address for job notifications.

String

False

Named

False

UseNotificationOptions

Defines that the notifications must use custom or global settings. You can set it to True (custom settings) or False (global settings).

Use the following parameters to set the custom settings:

  • NotifyOnSuccess
  • NotifyOnWarning
  • NotifyOnError
  • NotifyOnLastRetryOnly

SwitchParameter

False

Named

False

NotificationSubject

Specifies the subject of the email notifications.

String

False

Named

False

NotifyOnSuccess

Defines that the cmdlet will send the email if the job finished successfully.

SwitchParameter

False

Named

False

NotifyOnWarning

Defines that the cmdlet will send the email if the job finished with warning.

SwitchParameter

False

Named

False

NotifyOnError

Defines that the cmdlet will send the email if the job finished with error.

SwitchParameter

False

Named

False

NotifyOnLastRetryOnly

Defines that the cmdlet will send the email about the final job status. If you do not enable this option, Veeam Backup & Replication will send one notification per every job retry.

Note: This parameter is not available for backup policies that Veeam Agent backup jobs use to back up computers.

SwitchParameter

False

Named

False

EnableSnmpNotification

Defines that the SNMP traps will be sent when the job completes successfully.

Note: This parameter is not available for the following types of jobs:

  • Backup policies that Veeam Agent backup jobs use to back up computers.
  • Veeam Agent backup jobs.

SwitchParameter

False

Named

False

NotifyWhenWaitingForTape

Defines that the cmdlet will send the email if the tape job cannot start because there are no available tapes.

Note: This parameter is not available for the following types of jobs:

  • Backup policies that Veeam Agent backup jobs use to back up computers.
  • Veaam Agent backup jobs.

SwitchParameter

False

Named

False

EnableDailyNotification

Defines that the cmdlet will send email notification daily.

Use the SendTime parameter to specify the time when the cmdlet must send the email notification.

SwitchParameter

False

Named

False

SendTime

Specifies the time when the cmdlet must send the email notification.

TimeSpan

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRNotificationOptions

Examples

Creating Notification Options for Backup Job

This command creates notification options for the backup job. Veeam Backup & Replication will send notifications about the job warning and when the job completes successfully.

New-VBRNotificationOptions -EnableAdditionalNotification -AdditionalAddress admin@domain.com -UseNotificationOptions -NotifyOnSuccess -NotifyOnWarning