VirtualMachineDiskProperties Class

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

Constructor

VirtualMachineDiskProperties()

Variables

Name Description
tier
str

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.

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.

performancePlus

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.

optimizedForFrequentAttach

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.

availabilityPolicy
<xref:<xref:"DiskAvailabilityPolicy">>

In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.

maxShares
int

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
Union[str, <xref:"VirtualMachineDiskNetworkAccessPolicy">]

Policy for accessing the disk via network. Known values are: "AllowAll", "AllowPrivate", and "DenyAll".

diskAccessId
str

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

diskIOPSReadOnly
int

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
int

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.

logicalSectorSize
int

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

Attributes

availabilityPolicy

In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.

availabilityPolicy: DiskAvailabilityPolicy

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.

burstingEnabled: bool

diskAccessId

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

diskAccessId: str

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.

diskIOPSReadOnly: int

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.

diskMBpsReadOnly: int

logicalSectorSize

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

logicalSectorSize: int

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.

maxShares: int

networkAccessPolicy

"AllowAll", "AllowPrivate", and "DenyAll".

networkAccessPolicy: str | VirtualMachineDiskNetworkAccessPolicy

optimizedForFrequentAttach

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.

optimizedForFrequentAttach: bool

performancePlus

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.

performancePlus: bool

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.

tier: str