Update-AzureRmSiteRecoveryRecoveryPlan

Updates a recovery plan in Site Recovery.

Syntax

Update-AzureRmSiteRecoveryRecoveryPlan
      -RecoveryPlan <ASRRecoveryPlan>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]
Update-AzureRmSiteRecoveryRecoveryPlan
      -Path <String>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

The Update-AzureRmSiteRecoveryRecoveryPlan cmdlet updates a recovery plan in Azure Site Recovery and then publishes it.

Examples

Example 1: Update a recovery plan

PS C:\>Update-AzureRmSiteRecoveryRecoveryPlan -File "C:\Users\Contoso\Desktop\RecoveryPlan.xml"

This command updates the specified recovery plan, and then publishes it.

Required Parameters

-Path

Specifies the path of the recovery plan file of the recovery plan that this cmdlet updates.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryPlan

Specifies a recovery plan that this cmdlet updates.

Type:Microsoft.Azure.Commands.SiteRecovery.ASRRecoveryPlan
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ASRRecoveryPlan

Parameter 'RecoveryPlan' accepts value of type 'ASRRecoveryPlan' from the pipeline