Share via


IaasVmRestoreContent Class

Definition

IaaS VM workload-specific restore. Please note IaasVmRestoreContent 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 IaasVmRestoreWithRehydrationContent.

public class IaasVmRestoreContent : Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreContent, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmRestoreContent>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmRestoreContent>
type IaasVmRestoreContent = class
    inherit RestoreContent
    interface IJsonModel<IaasVmRestoreContent>
    interface IPersistableModel<IaasVmRestoreContent>
Public Class IaasVmRestoreContent
Inherits RestoreContent
Implements IJsonModel(Of IaasVmRestoreContent), IPersistableModel(Of IaasVmRestoreContent)
Inheritance
IaasVmRestoreContent
Derived
Implements

Constructors

IaasVmRestoreContent()

Initializes a new instance of IaasVmRestoreContent.

Properties

AffinityGroup

Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines.

DiskEncryptionSetId

DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.

DoesCreateNewCloudService

Should a new cloud service be created while restoring the VM. If this is false, VM will be restored to the same cloud service as it was at the time of backup.

DoesRestoreWithManagedDisks

Flag to denote of an Unmanaged disk VM should be restored with Managed disks.

EncryptionDetails

Details needed if the VM was encrypted at the time of backup.

ExtendedLocation

Target extended ___location where the VM should be restored, should be null if restore is to be done in public cloud

IdentityBasedRestoreDetails

IaaS VM workload specific restore details for restores using managed identity.

IdentityInfo

Managed Identity information required to access customer storage account.

OriginalStorageAccountOption

Original Storage Account Option.

RecoveryPointId

ID of the backup copy to be recovered.

RecoveryType

Type of this recovery.

Region

Region in which the virtual machine is restored.

ResourceGuardOperationRequests

ResourceGuardOperationRequests on which LAC check will be performed.

(Inherited from RestoreContent)
RestoreDiskLunList

List of Disk LUNs for partial restore.

SecuredVmOSDiskEncryptionSetId

Gets or Sets Disk Encryption Set Id for Secured VM OS Disk.

SourceResourceId

Fully qualified ARM ID of the VM which is being recovered.

StorageAccountId

Fully qualified ARM ID of the storage account to which the VM has to be restored.

SubnetId

Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource ID used to represent the subnet.

TargetDiskNetworkAccessSettings

Specifies target network access settings for disks of VM to be restored,.

TargetDomainNameId

Fully qualified ARM ID of the ___domain name to be associated to the VM being restored. This applies only to Classic Virtual Machines.

TargetResourceGroupId

This is the ARM Id of the resource group that you want to create for this Virtual machine and other artifacts. For e.g. /subscriptions/{subId}/resourcegroups/{rg}

TargetVirtualMachineId

This is the complete ARM Id of the VM that will be created. For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}

VirtualNetworkId

This is the virtual network Id of the vnet that will be attached to the virtual machine. User will be validated for join action permissions in the linked access.

Zones

Target zone where the VM and its disks should be restored.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<IaasVmRestoreContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<IaasVmRestoreContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<RestoreContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from RestoreContent)
IJsonModel<RestoreContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from RestoreContent)
IPersistableModel<IaasVmRestoreContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<IaasVmRestoreContent>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<IaasVmRestoreContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<RestoreContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from RestoreContent)
IPersistableModel<RestoreContent>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from RestoreContent)
IPersistableModel<RestoreContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from RestoreContent)

Applies to