你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PSRecoveryServicesClient.EnableProtection Method

Definition

Creates Replicated Protected Item.

public Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.PSSiteRecoveryLongRunningOperation EnableProtection (string fabricName, string protectionContainerName, string replicationProtectedItemName, Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.EnableProtectionInput input);
member this.EnableProtection : string * string * string * Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.EnableProtectionInput -> Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.PSSiteRecoveryLongRunningOperation
Public Function EnableProtection (fabricName As String, protectionContainerName As String, replicationProtectedItemName As String, input As EnableProtectionInput) As PSSiteRecoveryLongRunningOperation

Parameters

fabricName
String

Fabric Name

protectionContainerName
String

Protection Container ID

replicationProtectedItemName
String

Virtual Machine ID or Replication group Id

input
EnableProtectionInput

Enable protection input.

Returns

Job response

Applies to