Language

VirtualMachineDiskProperties Class

Definition

Specifies the properties of a managed disk that can be set at the time of implicit creation of the disk.

public class VirtualMachineDiskProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.VirtualMachineDiskProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.VirtualMachineDiskProperties>
type VirtualMachineDiskProperties = class
    interface IJsonModel<VirtualMachineDiskProperties>
    interface IPersistableModel<VirtualMachineDiskProperties>
Public Class VirtualMachineDiskProperties
Implements IJsonModel(Of VirtualMachineDiskProperties), IPersistableModel(Of VirtualMachineDiskProperties)
Inheritance
VirtualMachineDiskProperties
Implements

Constructors

Name Description
VirtualMachineDiskProperties()

Initializes a new instance of VirtualMachineDiskProperties.

Properties

Name Description
AvailabilityActionOnDiskDelay

Determines how to handle disks with slow I/O.

BurstingEnabled

Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.

DiskAccessId

Azure resource Id of the DiskAccess resource for using private endpoints on disks.

DiskIopsReadOnly

The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.

DiskMBpsReadOnly

The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.

IsOptimizedForFrequentAttach

Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.

IsPerformancePlusEnabled

Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on disk creation time and cannot be disabled after enabled.

LogicalSectorSize

Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default.

MaxShares

The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only.

NetworkAccessPolicy

Policy for accessing the disk via network.

Tier

Performance tier of the disk (e.g., P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<VirtualMachineDiskProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<VirtualMachineDiskProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<VirtualMachineDiskProperties>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<VirtualMachineDiskProperties>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<VirtualMachineDiskProperties>.Write(ModelReaderWriterOptions)

Applies to