Get-AzureSiteRecoveryRecoveryPlanFile
AZURE Site Recovery プランを XML 形式でダウンロードします。
注意
このドキュメントで参照されているコマンドレットは、Service Management API を使用するレガシ Azure リソースを管理するためのものです。 Azure Resource Manager リソースを管理するためのコマンドレットについては、Az PowerShell モジュールを参照してください。
構文
Get-AzureSiteRecoveryRecoveryPlanFile
-Path <String>
-RecoveryPlan <ASRRecoveryPlan>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Get-AzureSiteRecoveryRecoveryPlanFile
-Path <String>
-Id <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
説明
Get-AzureSiteRecoveryRecoveryPlanFile コマンドレットは、XML 形式で Azure Site Recovery プランをダウンロードします。 このファイルを使用して復旧計画を更新し、Site Recovery サーバーにアップロードできます。
復旧計画では、フェールオーバーと復旧の目的で、グループ内の仮想マシンを収集します。
例
例 1: 復旧計画ファイルを取得する
PS C:\> $RecoveryPlan = Get-AzureSiteRecoveryRecoveryPlan
PS C:\> Get-AzureSiteRecoveryRecoveryPlanFile -RecoveryPlan $RecoveryPlan -Path "C:\Users\Contoso\Desktop\RecoveryPlan.xml"
このコマンドでは、 Get-AzureSiteRecoveryRecoveryPlan コマンドレットを使用して復旧計画を取得し、$RecoveryPlan変数に格納します。
2 番目のコマンドでは、 GetAzureSiteRecoveryRecoveryPlanFile コマンドレットを使用して、$RecoveryPlan内のサイト復旧計画 XML ファイルを取得します。 このコマンドは、指定したパスに XML ファイルを格納します。
パラメーター
-Id
取得する復旧計画の ID を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Path
復旧計画の XML ファイルを格納する完全パスを指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
このコマンドレットが読み取る Azure プロファイルを指定します。 プロファイルを指定しない場合、このコマンドレットはローカルの既定のプロファイルから読み取ります。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RecoveryPlan
復旧計画の 取得元となる ASRRecoveryPlan オブジェクトを指定します。 ASRRecoveryPlan オブジェクトを取得するには、Get-AzureSiteRecoveryRecoveryPlan コマンドレットを使用します。
Type: | ASRRecoveryPlan |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |