ArmRecoveryServicesSiteRecoveryModelFactory.A2ACreateProtectionIntentContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of A2ACreateProtectionIntentContent.
public static Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2ACreateProtectionIntentContent A2ACreateProtectionIntentContent(Azure.Core.ResourceIdentifier fabricObjectId = default, Azure.Core.AzureLocation primaryLocation = default, Azure.Core.AzureLocation recoveryLocation = default, string recoverySubscriptionId = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2ARecoveryAvailabilityType recoveryAvailabilityType = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ProtectionProfileCustomDetails protectionProfileCustomContent = default, Azure.Core.ResourceIdentifier recoveryResourceGroupId = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.StorageAccountCustomDetails primaryStagingStorageAccountCustomContent = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryAvailabilitySetCustomDetails recoveryAvailabilitySetCustomContent = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryVirtualNetworkCustomDetails recoveryVirtualNetworkCustomContent = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryProximityPlacementGroupCustomDetails recoveryProximityPlacementGroupCustomContent = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AutoProtectionOfDataDisk? autoProtectionOfDataDisk = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2AProtectionIntentDiskDetails> vmDisks = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2AProtectionIntentManagedDiskDetails> vmManagedDisks = default, string multiVmGroupName = default, string multiVmGroupId = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.StorageAccountCustomDetails recoveryBootDiagStorageAccount = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryDiskEncryptionInfo diskEncryptionInfo = default, string recoveryAvailabilityZone = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryAgentAutoUpdateStatus? agentAutoUpdateStatus = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AutomationAccountAuthenticationType? automationAccountAuthenticationType = default, Azure.Core.ResourceIdentifier automationAccountArmId = default);
static member A2ACreateProtectionIntentContent : Azure.Core.ResourceIdentifier * Azure.Core.AzureLocation * Azure.Core.AzureLocation * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2ARecoveryAvailabilityType * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ProtectionProfileCustomDetails * Azure.Core.ResourceIdentifier * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.StorageAccountCustomDetails * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryAvailabilitySetCustomDetails * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryVirtualNetworkCustomDetails * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryProximityPlacementGroupCustomDetails * Nullable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AutoProtectionOfDataDisk> * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2AProtectionIntentDiskDetails> * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2AProtectionIntentManagedDiskDetails> * string * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.StorageAccountCustomDetails * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryDiskEncryptionInfo * string * Nullable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryAgentAutoUpdateStatus> * Nullable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AutomationAccountAuthenticationType> * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.A2ACreateProtectionIntentContent
Public Shared Function A2ACreateProtectionIntentContent (Optional fabricObjectId As ResourceIdentifier = Nothing, Optional primaryLocation As AzureLocation = Nothing, Optional recoveryLocation As AzureLocation = Nothing, Optional recoverySubscriptionId As String = Nothing, Optional recoveryAvailabilityType As A2ARecoveryAvailabilityType = Nothing, Optional protectionProfileCustomContent As ProtectionProfileCustomDetails = Nothing, Optional recoveryResourceGroupId As ResourceIdentifier = Nothing, Optional primaryStagingStorageAccountCustomContent As StorageAccountCustomDetails = Nothing, Optional recoveryAvailabilitySetCustomContent As RecoveryAvailabilitySetCustomDetails = Nothing, Optional recoveryVirtualNetworkCustomContent As RecoveryVirtualNetworkCustomDetails = Nothing, Optional recoveryProximityPlacementGroupCustomContent As RecoveryProximityPlacementGroupCustomDetails = Nothing, Optional autoProtectionOfDataDisk As Nullable(Of AutoProtectionOfDataDisk) = Nothing, Optional vmDisks As IEnumerable(Of A2AProtectionIntentDiskDetails) = Nothing, Optional vmManagedDisks As IEnumerable(Of A2AProtectionIntentManagedDiskDetails) = Nothing, Optional multiVmGroupName As String = Nothing, Optional multiVmGroupId As String = Nothing, Optional recoveryBootDiagStorageAccount As StorageAccountCustomDetails = Nothing, Optional diskEncryptionInfo As SiteRecoveryDiskEncryptionInfo = Nothing, Optional recoveryAvailabilityZone As String = Nothing, Optional agentAutoUpdateStatus As Nullable(Of SiteRecoveryAgentAutoUpdateStatus) = Nothing, Optional automationAccountAuthenticationType As Nullable(Of AutomationAccountAuthenticationType) = Nothing, Optional automationAccountArmId As ResourceIdentifier = Nothing) As A2ACreateProtectionIntentContent
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.
- protectionProfileCustomContent
- ProtectionProfileCustomDetails
The protection profile custom inputs. Please note ProtectionProfileCustomDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ExistingProtectionProfile and NewProtectionProfile.
- recoveryResourceGroupId
- ResourceIdentifier
The recovery resource group Id. Valid for V2 scenarios.
- primaryStagingStorageAccountCustomContent
- StorageAccountCustomDetails
The primary staging storage account input. Please note StorageAccountCustomDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ExistingStorageAccount.
- recoveryAvailabilitySetCustomContent
- RecoveryAvailabilitySetCustomDetails
The recovery availability set input. Please note RecoveryAvailabilitySetCustomDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ExistingRecoveryAvailabilitySet.
- recoveryVirtualNetworkCustomContent
- RecoveryVirtualNetworkCustomDetails
The recovery virtual network input. Please note RecoveryVirtualNetworkCustomDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ExistingRecoveryVirtualNetwork and NewRecoveryVirtualNetwork.
- recoveryProximityPlacementGroupCustomContent
- RecoveryProximityPlacementGroupCustomDetails
The recovery proximity placement group custom input. Please note RecoveryProximityPlacementGroupCustomDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ExistingRecoveryProximityPlacementGroup.
- autoProtectionOfDataDisk
- Nullable<AutoProtectionOfDataDisk>
A value indicating whether the auto protection is enabled.
The list of vm disk inputs.
- vmManagedDisks
- IEnumerable<A2AProtectionIntentManagedDiskDetails>
The list of vm managed disk inputs.
- multiVmGroupName
- String
The multi vm group name.
- multiVmGroupId
- String
The multi vm group id.
- recoveryBootDiagStorageAccount
- StorageAccountCustomDetails
The boot diagnostic storage account. Please note StorageAccountCustomDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ExistingStorageAccount.
- diskEncryptionInfo
- SiteRecoveryDiskEncryptionInfo
The recovery disk encryption information (for two pass flows).
- recoveryAvailabilityZone
- String
The recovery availability zone.
- agentAutoUpdateStatus
- Nullable<SiteRecoveryAgentAutoUpdateStatus>
A value indicating whether the auto update is enabled.
- automationAccountAuthenticationType
- Nullable<AutomationAccountAuthenticationType>
A value indicating the authentication type for automation account. The default value is "RunAsAccount".
- automationAccountArmId
- ResourceIdentifier
The automation account arm id.
Returns
A new A2ACreateProtectionIntentContent instance for mocking.
Applies to
Azure SDK for .NET