Initializes DS move for Copy-AzRecoveryServicesVault. It is mandatory to run Test-AzRecoveryServicesDSMove
cmdlet before this cmdlet. This cmdlet generates a Correlation Id which can be used as Input to
Copy-AzRecoveryServicesVault cmdlet. This cmdlet is useful for cross tenant DS move scenario.
Examples
Example 1: Initialize DS Move for cross subscription copy
First cmdlet sets target subscription context.
Second cmdlet triggers some mandatory validations on target vault.
Third cmdlet sets source subscription context.
Then based on Test-AzRecoveryServicesDSMove cmdlet state, we fetch CorrelationId using
Initialize-AzRecoveryServicesDSMove cmdlet. $corr can be input to the Copy cmdlet.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.