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
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Description |
Specifies the description of the tenant backup job. |
|
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 |
|
False |
Named |
False |
|
EncryptionOptions |
Specifies encryption options.
Accepts the |
False |
Named |
False |
|
|
Name |
Specifies the name of the tenant backup job. |
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification options. The cmdlet will create the tenant backup job with these notification options.
Accepts the |
False |
Named |
False |
|
|
RetentionPolicy |
Specifies the retention policy in days for backups created by the tenant backup job. |
|
False |
Named |
False |
|
ScheduleOptions |
Specifies schedule options.
Accepts the |
|
False |
Named |
True (ByPropertyName, ByValue) |
|
SecondaryTarget |
Specifies secondary repository settings.
Accepts the |
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 |
False |
Named |
False |
|
|
Tenant |
Specifies the tenant whose data you want to back up.
Accepts the |
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:
- Run the
Get-VBREntraIdTenantReturns Microsoft Entra ID tenants added to the backup infrastructure. cmdlet. Specify theAzureTenantIdparameter value. Save the result to the$tenantvariable. - Run the
New-VBRDailyOptionsCreates new job daily schedule settings. cmdlet. Specify theDayOfWeekandPeriodparameter values. Save the result to the$dailyvariable. - Run the
New-VBRServerScheduleOptionsCreates the schedule for jobs. cmdlet. Set theDailyvalue as theTypeparameter value. Set the$dailyvariable as theDailyOptionsparameter value. Save the result to the$scheduleOptionsvariable. - Run the
Get-VBREncryptionKeyReturns encryption keys. cmdlet. Specify theDescriptionparameter value. Save the result to the$encKeyvariable. - Run the
New-VBREncryptionOptionsDefines encryption settings. cmdlet. Specify theEnableEncryptionparameter. Set the$encKeyvariable as theEncryptionKeyparameter value. Save the result to the$encOptionsvariable. - Run the
Add-VBREntraIDTenantBackupJobcmdlet. Specify the following settings:- Specify the
Nameparameter value. - Set the
$tenantvariable as theTenantparameter value. - Provide the
EnableScheduleparameter. - Set the
$scheduleOptionsvariable as theScheduleOptionsparameter value. - Set the
$encOptionsvariable as theEncryptionOptionsparameter value. - Save the result to the
$backupJobvariable.
- Specify the
Related Commands
Get-VBREntraIdTenantReturns Microsoft Entra ID tenants added to the backup infrastructure.New-VBRDailyOptionsCreates new job daily schedule settings.New-VBRServerScheduleOptionsCreates the schedule for jobs.Get-VBREncryptionKeyReturns encryption keys.New-VBREncryptionOptionsDefines encryption settings.New-VBREntraIDBackupSecondaryTargetDefines secondary repository settings.