Get-VBRInstantRecoveryMigration
Short Description
Returns running migration sessions launched during Instant Recovery.
Applies to
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Get-VBRInstantRecoveryMigration [-Id <guid[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns migration sessions launched during Instant Recovery (including Instant Recovery for first class disks, file shares and so on) and running at the moment.
If you do not specify cmdlet parameters, the cmdlet will return all running migration sessions launched during Instant Recovery.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Id | Specifies IDs of migration sessions that you want to return. Tip: You can find the session ID in an object returned by the cmdlet that launched the migration session. | Guid[] | False | Named | True (ByPropertyName) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Output Object
The cmdlet returns the InstantRecoveryMigration[] object that defines settings of migration sessions.
Examples
This example shows how to get the migration session. The example assumes that you have started NAS Instant Recovery as described in the Start-VBRNASInstantRecoveryMigration cmdlet.
$session = Start-VBRNASInstantRecoveryMigration -InstantRecovery $nasInstantRecovery -SwitchOverOptions $switchover $migrationsession = Get-VBRInstantRecoveryMigration -Id $session.Id |
Perform the following steps:
- Run the Start-VBRNASInstantRecoveryMigration. Save the result to the $session variable.
- Run the Get-VBRInstantRecoveryMigration cmdlet. Set the $Id variable as the Id property of the migration session object.