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

A2ACreateProtectionIntentContent 构造函数

定义

初始化 A2ACreateProtectionIntentContent 的新实例。

public A2ACreateProtectionIntentContent (Azure.Core.ResourceIdentifier fabricObjectId, Azure.Core.AzureLocation primaryLocation, Azure.Core.AzureLocation recoveryLocation, string recoverySubscriptionId, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2ARecoveryAvailabilityType recoveryAvailabilityType, Azure.Core.ResourceIdentifier recoveryResourceGroupId);
new Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2ACreateProtectionIntentContent : Azure.Core.ResourceIdentifier * Azure.Core.AzureLocation * Azure.Core.AzureLocation * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2ARecoveryAvailabilityType * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2ACreateProtectionIntentContent
Public Sub New (fabricObjectId As ResourceIdentifier, primaryLocation As AzureLocation, recoveryLocation As AzureLocation, recoverySubscriptionId As String, recoveryAvailabilityType As A2ARecoveryAvailabilityType, recoveryResourceGroupId As ResourceIdentifier)

参数

fabricObjectId
ResourceIdentifier

虚拟机的结构特定对象 ID。

primaryLocation
AzureLocation

虚拟机的主位置。

recoveryLocation
AzureLocation

虚拟机的恢复位置。

recoverySubscriptionId
String

虚拟机的恢复订阅 ID。

recoveryAvailabilityType
A2ARecoveryAvailabilityType

虚拟机的恢复可用性类型。

recoveryResourceGroupId
ResourceIdentifier

恢复资源组 ID。对于 V2 方案有效。

例外

fabricObjectIdrecoverySubscriptionIdrecoveryResourceGroupId 为 null。

适用于