Class IaasVmRestoreContent
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.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.RecoveryServicesBackup.dll
Syntax
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>
Constructors
IaasVmRestoreContent()
Properties
AffinityGroup
Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines.
Declaration
public string AffinityGroup { get; set; }
Property Value
|
System.String
|
DiskEncryptionSetId
DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.
Declaration
public string DiskEncryptionSetId { get; set; }
Property Value
|
System.String
|
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.
Declaration
public Nullable<bool> DoesCreateNewCloudService { get; set; }
Property Value
|
System.Nullable<System.Boolean>
|
DoesRestoreWithManagedDisks
Flag to denote of an Unmanaged disk VM should be restored with Managed disks.
Declaration
public Nullable<bool> DoesRestoreWithManagedDisks { get; set; }
Property Value
|
System.Nullable<System.Boolean>
|
EncryptionDetails
Details needed if the VM was encrypted at the time of backup.
Declaration
public Azure.ResourceManager.RecoveryServicesBackup.Models.VmEncryptionDetails EncryptionDetails { get; set; }
Property Value
|
VmEncryptionDetails
|
ExtendedLocation
Target extended location where the VM should be restored, should be null if restore is to be done in public cloud
Declaration
public Azure.ResourceManager.Resources.Models.ExtendedLocation ExtendedLocation { get; set; }
Property Value
|
Azure.ResourceManager.Resources.Models.ExtendedLocation
|
IdentityBasedRestoreDetails
IaaS VM workload specific restore details for restores using managed identity.
Declaration
public Azure.ResourceManager.RecoveryServicesBackup.Models.IdentityBasedRestoreDetails IdentityBasedRestoreDetails { get; set; }
Property Value
|
IdentityBasedRestoreDetails
|
IdentityInfo
Managed Identity information required to access customer storage account.
Declaration
public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupIdentityInfo IdentityInfo { get; set; }
Property Value
|
BackupIdentityInfo
|
OriginalStorageAccountOption
Original Storage Account Option.
Declaration
public Nullable<bool> OriginalStorageAccountOption { get; set; }
Property Value
|
System.Nullable<System.Boolean>
|
RecoveryPointId
ID of the backup copy to be recovered.
Declaration
public string RecoveryPointId { get; set; }
Property Value
|
System.String
|
RecoveryType
Type of this recovery.
Declaration
public Nullable<Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType> RecoveryType { get; set; }
Property Value
|
System.Nullable<FileShareRecoveryType>
|
Region
Region in which the virtual machine is restored.
Declaration
public Nullable<Azure.Core.AzureLocation> Region { get; set; }
Property Value
|
System.Nullable<Azure.Core.AzureLocation>
|
RestoreDiskLunList
List of Disk LUNs for partial restore.
Declaration
public System.Collections.Generic.IList<int> RestoreDiskLunList { get; }
Property Value
|
System.Collections.Generic.IList<System.Int32>
|
SecuredVmOSDiskEncryptionSetId
Gets or Sets Disk Encryption Set Id for Secured VM OS Disk.
Declaration
public Azure.Core.ResourceIdentifier SecuredVmOSDiskEncryptionSetId { get; set; }
Property Value
|
Azure.Core.ResourceIdentifier
|
SourceResourceId
Fully qualified ARM ID of the VM which is being recovered.
Declaration
public Azure.Core.ResourceIdentifier SourceResourceId { get; set; }
Property Value
|
Azure.Core.ResourceIdentifier
|
StorageAccountId
Fully qualified ARM ID of the storage account to which the VM has to be restored.
Declaration
public Azure.Core.ResourceIdentifier StorageAccountId { get; set; }
Property Value
|
Azure.Core.ResourceIdentifier
|
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.
Declaration
public Azure.Core.ResourceIdentifier SubnetId { get; set; }
Property Value
|
Azure.Core.ResourceIdentifier
|
TargetDiskNetworkAccessSettings
Specifies target network access settings for disks of VM to be restored,.
Declaration
public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupTargetDiskNetworkAccessSettings TargetDiskNetworkAccessSettings { get; set; }
Property Value
|
BackupTargetDiskNetworkAccessSettings
|
TargetDomainNameId
Fully qualified ARM ID of the domain name to be associated to the VM being restored. This applies only to Classic Virtual Machines.
Declaration
public Azure.Core.ResourceIdentifier TargetDomainNameId { get; set; }
Property Value
|
Azure.Core.ResourceIdentifier
|
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}
Declaration
public Azure.Core.ResourceIdentifier TargetResourceGroupId { get; set; }
Property Value
|
Azure.Core.ResourceIdentifier
|
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}
Declaration
public Azure.Core.ResourceIdentifier TargetVirtualMachineId { get; set; }
Property Value
|
Azure.Core.ResourceIdentifier
|
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.
Declaration
public Azure.Core.ResourceIdentifier VirtualNetworkId { get; set; }
Property Value
|
Azure.Core.ResourceIdentifier
|
Zones
Target zone where the VM and its disks should be restored.
Declaration
public System.Collections.Generic.IList<string> Zones { get; }
Property Value
|
System.Collections.Generic.IList<System.String>
|
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
Declaration
protected override void JsonModelWriteCore (System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
|
System.Text.Json.Utf8JsonWriter
writer
The JSON writer. |
|
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The client options for reading and writing models. |
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.
Declaration
Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmRestoreContent IJsonModel<IaasVmRestoreContent>.Create (ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
|
System.Text.Json.Utf8JsonReader
reader
The System.Text.Json.Utf8JsonReader to read. |
|
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to use. |
Returns
|
IaasVmRestoreContent
A |
Exceptions
|
System.FormatException
If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format. |
IJsonModel<IaasVmRestoreContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
Writes the model to the provided System.Text.Json.Utf8JsonWriter.
Declaration
void IJsonModel<IaasVmRestoreContent>.Write (System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
|
System.Text.Json.Utf8JsonWriter
writer
The System.Text.Json.Utf8JsonWriter to write into. |
|
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to use. |
Exceptions
|
System.FormatException
If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format. |
IPersistableModel<IaasVmRestoreContent>.Create(BinaryData, ModelReaderWriterOptions)
Converts the provided System.BinaryData into a model.
Declaration
Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmRestoreContent IPersistableModel<IaasVmRestoreContent>.Create (BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
|
System.BinaryData
data
The System.BinaryData to parse. |
|
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to use. |
Returns
|
IaasVmRestoreContent
A |
Exceptions
|
System.FormatException
If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format. |
IPersistableModel<IaasVmRestoreContent>.GetFormatFromOptions(ModelReaderWriterOptions)
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.
Declaration
string IPersistableModel<IaasVmRestoreContent>.GetFormatFromOptions (System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
|
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to consider when serializing and deserializing the model. |
Returns
|
System.String
The format that the model uses when communicating with the serivce. |
IPersistableModel<IaasVmRestoreContent>.Write(ModelReaderWriterOptions)
Writes the model into a System.BinaryData.
Declaration
BinaryData IPersistableModel<IaasVmRestoreContent>.Write (System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
|
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to use. |
Returns
|
System.BinaryData
A binary representation of the written model. |
Exceptions
|
System.FormatException
If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format. |