Add-VBREntraIDTenantBackupJob

Short Description

Creates a Microsoft Entra ID tenant backup job.

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

Syntax

Add-VBREntraIDTenantBackupJob [-Name <String>] [-Description <String>] -Tenant <VBREntraIDTenant>

[-RetentionPolicy <Int32>] [-NotificationOptions <VBRNotificationOptions>] [-EnableSchedule]

[-ScheduleOptions <VBRServerScheduleOptions>] [-EncryptionOptions <VBREncryptionOptions>]

[-SecondaryTarget <VBREntraIDBackupSecondaryTarget[]>] [-TargetBackup <VBREntraIDTenantBackup>] [<CommonParameters>]

Detailed Description

This cmdlet creates a backup job that protects a Microsoft Entra ID tenant.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Description

Specifies the description of the tenant backup job.

String

False

Named

False

EnableSchedule

Defines that the cmdlet will enable the custom schedule for the tenant backup job.

If you provide this parameter, the tenant backup job will run according to the schedule specified in ScheduleOptions. Otherwise, to run the job, you will need to start it manually.

SwitchParameter

False

Named

False

EncryptionOptions

Specifies encryption options.

Accepts the VBREncryptionOptions object. To create this object, run the New-VBREncryptionOptionsDefines encryption settings. cmdlet.

VBREncryptionOptions

False

Named

False

Name

Specifies the name of the tenant backup job.

String

False

Named

False

NotificationOptions

Specifies notification options. The cmdlet will create the tenant backup job with these notification options.

Accepts the VBRNotificationOptions object. To create this object, run the New-VBRNotificationOptionsCreates new job notification options. cmdlet.

VBRNotificationOptions

False

Named

False

RetentionPolicy

Specifies the retention policy in days for backups created by the tenant backup job.

Int32

False

Named

False

ScheduleOptions

Specifies schedule options.

Accepts the VBRServerScheduleOptions object. To create this object, run the New-VBRServerScheduleOptionsCreates the schedule for jobs. cmdlet.

VBRServerScheduleOptions

False

Named

True (ByPropertyName, ByValue)

SecondaryTarget

Specifies secondary repository settings.

Accepts the VBREntraIDBackupSecondaryTarget object. To create this object, run the New-VBREntraIDBackupSecondaryTargetDefines secondary repository settings. cmdlet.

VBREntraIDBackupSecondaryTarget[]

False

Named

False

TargetBackup

Specifies Entra ID backup copy settings. The cmdlet will use data of this backup to create a backup chain instead of creating the chain anew.

Accepts the VBREntraIDTenantBackup object. To get this object, run the Get-VBREntraIDTenantBackupReturns backups of Microsoft Entra ID tenants. cmdlet.

VBREntraIDTenantBackup

False

Named

False

Tenant

Specifies the tenant whose data you want to back up.

Accepts the VBREntraIDTenant object. To get this object, run the Get-VBREntraIDTenantReturns Microsoft Entra ID tenants added to the backup infrastructure. cmdlet.

VBREntraIDTenant

True

Named

False

<CommonParameters>

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

Output Object

The cmdlet returns the VBREntraIDTenantBackupJob object that contains setting of the created tenant backup job.

Examples

Creating Entra ID Tenant Backup Job

This example shows how to add a tenant backup job with scheduling options and enabled encryption.

$tenant = Get-VBREntraIdTenant -AzureTenantId "xxxx"

$daily = New-VBRDailyOptions -DayOfWeek Friday -Period 7:00

$scheduleOptions = New-VBRServerScheduleOptions -Type Daily -DailyOptions $daily

$encKey = Get-VBREncryptionKey -Description "For Entra ID encryption"

$encOptions = New-VBREncryptionOptions -EnableEncryption -EncryptionKey $encKey

$backupJob = Add-VBREntraIDTenantBackupJob -Name "Tenant Backup" -Tenant $tenant -EnableSchedule -ScheduleOptions $scheduleOptions -EncryptionOptions $encOptions

Perform the following steps:

  1. Run the Get-VBREntraIdTenantReturns Microsoft Entra ID tenants added to the backup infrastructure. cmdlet. Specify the AzureTenantId parameter value. Save the result to the $tenant variable.
  2. Run the New-VBRDailyOptionsCreates new job daily schedule settings. cmdlet. Specify the DayOfWeek and Period parameter values. Save the result to the $daily variable.
  3. Run the New-VBRServerScheduleOptionsCreates the schedule for jobs. cmdlet. Set the Daily value as the Type parameter value. Set the $daily variable as the DailyOptions parameter value. Save the result to the $scheduleOptions variable.
  4. Run the Get-VBREncryptionKeyReturns encryption keys. cmdlet. Specify the Description parameter value. Save the result to the $encKey variable.
  5. Run the New-VBREncryptionOptionsDefines encryption settings. cmdlet. Specify the EnableEncryption parameter. Set the $encKey variable as the EncryptionKey parameter value. Save the result to the $encOptions variable.
  6. Run the Add-VBREntraIDTenantBackupJob cmdlet. Specify the following settings:
    • Specify the Name parameter value.
    • Set the $tenant variable as the Tenant parameter value.
    • Provide the EnableSchedule parameter.
    • Set the $scheduleOptions variable as the ScheduleOptions parameter value.
    • Set the $encOptions variable as the EncryptionOptions parameter value.
    • Save the result to the $backupJob variable.

Page updated 2026-08-19

Page content applies to build 13.1.1.18