Share via


A2ACreateProtectionIntentContent Constructor

Definition

Initializes a new instance of 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)

Parameters

fabricObjectId
ResourceIdentifier

The fabric specific object Id of the virtual machine.

primaryLocation
AzureLocation

The primary location for the virtual machine.

recoveryLocation
AzureLocation

The recovery location for the virtual machine.

recoverySubscriptionId
String

The recovery subscription Id of the virtual machine.

recoveryAvailabilityType
A2ARecoveryAvailabilityType

The recovery availability type of the virtual machine.

recoveryResourceGroupId
ResourceIdentifier

The recovery resource group Id. Valid for V2 scenarios.

Exceptions

fabricObjectId, recoverySubscriptionId or recoveryResourceGroupId is null.

Applies to