< Back

Update-AzureRmRecoveryServicesAsrRecoveryPlan

Tue Jan 29, 2019 10:03 pm

NAME Update-AzureRmRecoveryServicesAsrRecoveryPlan



SYNOPSIS

Updates the contents of an Azure Site recovery plan.





SYNTAX

Update-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRRecoveryPlan> [-WhatIf]

[<CommonParameters>]



Update-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Path <String> [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Update-AzureRmRecoveryServicesAsrRecoveryPlan cmdlet updates the contents of a recovery plan using the contents of the specified ASR recovery

plan object or ASR recovery plan definition json file.





PARAMETERS

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-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



-InputObject <ASRRecoveryPlan>

Input Object to the cmdlet: Specifies an ASR recovery plan object, the contents of which are used to update the recovery plan referred to by

the object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Path <String>

Specifies the path of the recovery plan definition json file used to update the recovery plan.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

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

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan







OUTPUTS

System.Object







NOTES









Example 1: Update a recovery plan



PS C:\\> $currentJob = Update-AzureRmRecoveryServicesAsrRecoveryPlan -RecoveryPlan $RP



Start the operation of updating a recovery plan using the contents of the specified ASR recovery plan object and returns the ASR job used to track

the operation.







RELATED LINKS

Online Version:

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

Get-AzureRmRecoveryServicesAsrRecoveryPlan

New-AzureRmRecoveryServicesAsrRecoveryPlan

Remove-AzureRmRecoveryServicesAsrRecoveryPlan