Add-VBREntraIDLogsBackupJob
Short Description
Creates a Microsoft Entra ID log backup job.
Product Edition: Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBREntraIDLogsBackupJob -Tenant <VBREntraIDTenant> [-ShortTermRetentionType <VBREntraIdLogsBackupShortTermRetentionType>] [-ShortTermRetentionPeriod <Int32>] [-Name <String>] [-Description <String>] -ShortTermBackupRepository <CBackupRepository> [-SecondaryTarget <VBRUnstructuredBackupSecondaryTarget[]>] [-StorageOptions <VBRStorageOptions>] [-HealthCheckOptions <VBRFullBackupOptions>] [-NotificationOptions <VBRNotificationOptions>] [-ScriptOptions <VBRJobScriptOptions>] [-ScheduleOptions <VBRServerScheduleOptions>] [-Force] [-HighPriority] [<CommonParameters>] |
Detailed Description
This cmdlet creates a backup job for Entra ID audit and sign-in logs.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Description |
Specifies the description of the log backup job. |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will create a log backup job without showing warnings or errors in the PowerShell console. |
|
False |
Named |
False |
|
HealthCheckOptions |
Specifies the healthcheck schedule. The cmdlet will create the log backup job with this healthcheck schedule.
Accepts the |
|
False |
Named |
False |
|
HighPriority |
Defines that Veeam Backup & Replication will prioritize this job higher than other similar jobs and will allocate resources to it in the first place. |
|
False |
Named |
False |
|
Name |
Specifies the name of the log backup job. |
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification options. The cmdlet will create the log backup job with these notification options.
Accepts the |
False |
Named |
False |
|
|
ScheduleOptions |
Specifies schedule options. The cmdlet will create the log backup job with these schedule options.
Accepts the |
|
False |
Named |
False |
|
ScriptOptions |
Specifies pre-job and post-job script options. The cmdlet will create the log backup job with these script options.
Accepts the |
False |
Named |
False |
|
|
SecondaryTarget |
Specifies the secondary backup repository. The cmdlet will use this repository as the secondary repository for the log backup job.
Accepts the |
|
False |
Named |
False |
|
ShortTermBackupRepository |
Specifies the primary backup repository. The cmdlet will use this repository as a primary storage for storing log backups.
Accepts the |
|
True |
Named |
False |
|
ShortTermRetentionPeriod |
For the Specifies the period of time to keep data in the primary backup repository. |
|
False |
Named |
False |
|
ShortTermRetentionType |
Specifies the type of the retention policy for the primary backup repository.
Use the |
|
False |
Named |
False |
|
StorageOptions |
Specifies storage optimization settings. The cmdlet will create the log backup job with these settings.
Accepts the |
|
False |
Named |
False |
|
Tenant |
Specifies the tenant whose logs 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 VBREntraIdLogsBackupJob object that contains settings of the Entra ID log backup job.
Examples
Adding Entra ID Log Backup Job
This example shows how to add an Entra ID log backup job with the 14 day retention period. The backups will also be copied to a secondary repository. From the secondary repository, the backups will be deleted after 2 months.
|
$tenant = Get-VBREntraIdTenant -AzureTenantId "xxxx" $shortRepo = Get-VBRBackupRepository -Name "Default Backup Repository" $repository = Get-VBRBackupRepository -Name "Secondary Backup Repository" $secondaryRepo = New-VBRUnstructuredBackupSecondaryTarget -BackupRepository $repository -CustomRetentionType Monthly -CustomRetentionPeriod 2 $logBackupJob = Add-VBREntraIDLogsBackupJob -Tenant $tenant -ShortTermRetentionType 0 -ShortTermRetentionPeriod 14 -Name "Log Backup" -ShortTermBackupRepository $shortRepo -SecondaryTarget $secondaryRepo |
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
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Specify theNameparameter value. Save the result to the$shortRepovariable. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Specify theNameparameter value. Save the result to the$repositoryvariable. - Run the
New-VBRUnstructuredBackupSecondaryTargetCreates secondary backup repository for file backup jobs and object storage backup jobs. cmdlet. Specify the following settings:- Set the
$repositoryvariable as theBackupRepositoryparameter value. - Specify the
CustomRetentionTypeandCustomRetentionPeriodparameter values. - Save the result to the
$secondaryRepovariable.
- Set the
- Run the
Add-VBREntraIDLogsBackupJobcmdlet. Specify the following settings:- Set the
$tenantvariable as theTenantparameter value. - Specify the
ShortTermRetentionTypeandShortTermRetentionPeriodparameter values. - Specify the
Nameparameter value. - Set the
$shortRepovariable as theShortTermBackupRepositoryparameter value. - Set the
$secondaryRepovariable as theSecondaryTargetparameter value. - Save the result to the
$logBackupJobvariable.
- Set the
Related Commands
Get-VBREntraIdTenantReturns Microsoft Entra ID tenants added to the backup infrastructure.Get-VBRBackupRepositoryReturns a list of backup repositories.New-VBRUnstructuredBackupSecondaryTargetCreates secondary backup repository for file backup jobs and object storage backup jobs.