< Back

Update-AzureRmSiteRecoveryRecoveryPlan

Thu Apr 04, 2019 5:41 am

NAME Update-AzureRmSiteRecoveryRecoveryPlan



SYNOPSIS

Updates a recovery plan in Site Recovery.





SYNTAX

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



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





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Path <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RecoveryPlan <ASRRecoveryPlan>

Specifies a recovery plan that this cmdlet updates.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

ASRRecoveryPlan

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





OUTPUTS



NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... coveryplan

Get-AzureRmSiteRecoveryRecoveryPlan

New-AzureRmSiteRecoveryRecoveryPlan

Remove-AzureRmSiteRecoveryRecoveryPlan