Restore-VBREntraIDTenantItemAttributes
Short Description
Restores properties of Microsoft Entra ID items.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Restore-VBREntraIDTenantItemAttributes -Session <VBREntraIDTenantRestoreSession> [-CredentialsId <Guid>] -RestorePoint <VBREntraIDTenantRestorePoint> -Item <VBREntraIDTenantItem> -IncludedProperties <VBREntraIDTenantItemIncludedProperty[]> [-Reason <String>] [<CommonParameters>] |
Detailed Description
This cmdlet restores properties of Entra ID items.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
CredentialsId |
Used only if you requested login using the
Specifies the ID of the login session. Set the parameter value to the value returned by the |
|
False |
Named |
False |
|
IncludedProperties |
Specifies an array of the properties that you want to restore.
Accepts the |
True |
Named |
False |
|
|
Item |
Specifies the item whose properties you want to restore.
Accepts the |
True |
Named |
False |
|
|
Reason |
Specifies the reason of the restore operation. |
|
False |
Named |
False |
|
RestorePoint |
Specifies a restore point from which you want to restore Entra ID items.
Accepts the |
True |
Named |
False |
|
|
Session |
Specifies the restore session started to recover items backed-up by a tenant backup job.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Guid.
Examples
Restoring Manager Reference of User
This example shows how to restore the manager reference of a user.
|
$tenantRestoreSession = Get-VBREntraIDTenantRestoreSession -Id "901e32ac-4c9e-4f7a-9b36-a4fd0f7248fe" $backup = Get-VBREntraIDTenantBackup -Name "Tenant backup" $oldRP = Get-VBREntraIDTenantRestorePoint -Backup $backup -Id "a66808bc-780e-46f2-8538-63ace3c8f9be" $item = Get-VBREntraIDTenantItem -Backup $backup -Type User -Name "Test Admin" $compareInfo = Compare-VBREntraIDTenantItem -Session $tenantRestoreSession -Item $item -OldRestorePoint $oldRP $managerReferenceObj = New-VBREntraIDTenantItemIncludedProperty -PropertyId $compareInfo.References.Values[0].ReferenceId -GroupId $compareInfo.References.ReferenceType[0] $sessionId = Restore-VBREntraIDTenantItemAttributes -Session $tenantRestoreSession -RestorePoint $oldRP -Item $item -IncludedProperties $managerReferenceObj |
Perform the following steps:
- Run the
Get-VBREntraIDTenantRestoreSessionReturns restore sessions started to recover Microsoft Entra ID tenant backups. cmdlet. Specify theIdparameter value. Save the result to the$tenantRestoreSessionvariable. - Run the
Get-VBREntraIDTenantBackupReturns backups of Microsoft Entra ID tenants. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBREntraIDTenantRestorePointReturns restore points of a Microsoft Entra ID tenant backup. cmdlet. Set the$backupvariable as theBackupparameter value. Specify theIdparameter value. Save the result to the$oldRPvariable. - Run the
Get-VBREntraIDTenantItemReturns Microsoft Entra ID items that a backup contains. cmdlet. Set the$backupvariable as theBackupparameter value. Specify theTypeandNameparameter value. Save the result to the$itemvariable. - Run the
Compare-VBREntraIDTenantItemCompares backed-up objects between two restore points or a restore point and the production state. cmdlet. Specify the following settings:- Set the
$tenantRestoreSessionvariable as theSessionparameter value. - Set the
$itemvariable as theItemparameter value. - Set the
$oldRPvariable as theOldRestorePointparameter value. - Save the result to the
$compareInfovariable.
- Set the
- Run the
New-VBREntraIDTenantItemIncludedPropertyDefines an object with item properties or references that you want to restore. cmdlet. Specify the following settings:- Set the
$compareInfo.References.Values[0].ReferenceIdvariable as thePropertyIdparameter value.The manager reference ID is the first in the received array of references.
- Set the
$compareInfo.References.ReferenceType[0]variable as theGroupIdparameter value.The manager reference is the first in the received array of references.
- Save the result to the
$managerReferenceObjvariable.
- Set the
- Run the
Restore-VBREntraIDTenantItemAttributescmdlet. Specify the following settings:- Set the
$tenantRestoreSessionvariable as theSessionparameter value. - Set the
$oldRPvariable as theRestorePointparameter value. - Set the
$itemvariable as theItemparameter value. - Set the
$managerReferenceObjvariable as theIncludedPropertiesparameter value. - Save the result to the
$sessionIdvariable.
- Set the
Related Commands
Get-VBREntraIDTenantRestoreSessionReturns restore sessions started to recover Microsoft Entra ID tenant backups.Get-VBREntraIDTenantBackupReturns backups of Microsoft Entra ID tenants.Get-VBREntraIDTenantRestorePointReturns restore points of a Microsoft Entra ID tenant backup.Get-VBREntraIDTenantItemReturns Microsoft Entra ID items that a backup contains.Compare-VBREntraIDTenantItemCompares backed-up objects between two restore points or a restore point and the production state.New-VBREntraIDTenantItemIncludedPropertyDefines an object with item properties or references that you want to restore.