Export-VBREntraIDTenantItemToJson
Short Description
Exports Microsoft Entra ID tenant item properties and metadata in the JSON format.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Export-VBREntraIDTenantItemToJson -ExportMapping <VBREntraIDTenantItemExportMapping[]> -Session <VBREntraIDTenantRestoreSession> [<CommonParameters>] |
Detailed Description
This cmdlet exports properties and metadata of Microsoft Entra ID items (users, groups, roles, administrative units, applications, conditional access policies, intune policies, contacts and devices) from a backup and saves the exported data in the JSON format.
To specify a restore point for data export, use the New-VBREntraIDTenantItemExportMappingDefines an object with a restore point that you want to use when exporting Microsoft Entra ID item data. cmdlet.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ExportMapping |
Specifies an object with a restore point that you want to use when exporting Microsoft Entra ID item data.
Accepts an array of |
True |
Named |
False |
|
|
Session |
Specifies the session launched to export Microsoft Entra ID item data.
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 a JSON string.
Note |
|
All the data is exported as a single string. If you plan to export multiple items, consider running the cmdlet several times. |
Examples
Exporting Entra ID Tenant Item Data
This example shows how to export properties and metadata of the Admin-12 user backed-up by the Tenant-backup-1 job.
|
$backup = Get-VBREntraIDTenantBackup -Name "Tenant-backup-1" $rp = Get-VBREntraIDTenantRestorePoint -Backup $backup -Id "61448046-067f-4908-88ad-31e785477fc6" $item = Get-VBREntraIDTenantItem -Backup $backup -Type User -Name "Admin-12" $mapping = New-VBREntraIDTenantItemExportMapping -Item $item -RestorePoint $rp $session = Start-VBREntraIDTenantRestore -Backup $backup $json = Export-VBREntraIDTenantItemToJson -ExportMapping $mapping -Session $session |
Perform the following steps:
- 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$rpvariable. - Run the
Get-VBREntraIDTenantItemReturns Microsoft Entra ID items that a backup contains. cmdlet. Set the$backupvariable as theBackupparameter value. Specify theTypeandNameparameter values. Save the result to the$itemvariable. - Run the
New-VBREntraIDTenantItemExportMappingDefines an object with a restore point that you want to use when exporting Microsoft Entra ID item data. cmdlet. Set the$itemvariable as theItemparameter value, and the$rpvariable as theRestorePointparameter value. Save the result to the$mappingvariable. - Run the
Start-VBREntraIDTenantRestoreStarts a restore session for a Microsoft Entra ID tenant. cmdlet. Set the$backupvariable as theBackupparameter value. Save the result to the$sessionvariable. - Run the
Export-VBREntraIDTenantItemToJsoncmdlet and do the following:- Set the
$mappingvariable as theExportMappingparameter value. - Set the
$sessionvariable as theSessionparameter value. - Save the result to the
$jsonvariable.
- Set the
Notes
All the data is exported as a single string. If you plan to export multiple items, consider running the cmdlet several times.
Related Commands
New-VBREntraIDTenantItemExportMappingDefines an object with a restore point that you want to use when exporting Microsoft Entra ID item data.