Class DiskData | Azure SDK for .NET
Andrew Henderson
Published Feb 16, 2026
A class representing the Disk data model.
Inheritance
Azure.ResourceManager.Models.TrackedResourceData
DiskData
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.Compute.dll
Syntax
public class DiskData : Azure.ResourceManager.Models.TrackedResourceData Constructors
DiskData(AzureLocation)
Initializes a new instance of DiskData.
Declaration
public DiskData (Azure.Core.AzureLocation location); Parameters
| Azure.Core.AzureLocation location The location. |
Properties
AcceleratedNetwork
True if the image from which the OS disk is created supports accelerated networking.
Declaration
public Nullable<bool> AcceleratedNetwork { get; set; } Property Value
| System.Nullable<System.Boolean> |
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.
Declaration
public Nullable<bool> BurstingEnabled { get; set; } Property Value
| System.Nullable<System.Boolean> |
CompletionPercent
Percentage complete for the background copy when a resource is created via the CopyStart operation.
Declaration
public Nullable<float> CompletionPercent { get; set; } Property Value
| System.Nullable<System.Single> |
CreationData
Disk source information. CreationData information cannot be changed after the disk has been created.
Declaration
public Azure.ResourceManager.Compute.Models.CreationData CreationData { get; set; } Property Value
DiskAccessId
ARM id of the DiskAccess resource for using private endpoints on disks.
Declaration
public string DiskAccessId { get; set; } Property Value
| System.String |
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.
Declaration
public Nullable<long> DiskIopsReadOnly { get; set; } Property Value
| System.Nullable<System.Int64> |
DiskIopsReadWrite
The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
Declaration
public Nullable<long> DiskIopsReadWrite { get; set; } Property Value
| System.Nullable<System.Int64> |
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.
Declaration
public Nullable<long> DiskMBpsReadOnly { get; set; } Property Value
| System.Nullable<System.Int64> |
DiskMBpsReadWrite
The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
Declaration
public Nullable<long> DiskMBpsReadWrite { get; set; } Property Value
| System.Nullable<System.Int64> |
DiskSizeBytes
The size of the disk in bytes. This field is read only.
Declaration
public Nullable<long> DiskSizeBytes { get; } Property Value
| System.Nullable<System.Int64> |
DiskSizeGB
If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
Declaration
public Nullable<int> DiskSizeGB { get; set; } Property Value
| System.Nullable<System.Int32> |
DiskState
The state of the disk.
Declaration
public Nullable<Azure.ResourceManager.Compute.Models.DiskState> DiskState { get; } Property Value
Encryption
Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
Declaration
public Azure.ResourceManager.Compute.Models.Encryption Encryption { get; set; } Property Value
EncryptionSettingsCollection
Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
Declaration
public Azure.ResourceManager.Compute.Models.EncryptionSettingsCollection EncryptionSettingsCollection { get; set; } Property Value
ExtendedLocation
The extended location where the disk will be created. Extended location cannot be changed.
Declaration
public Azure.ResourceManager.Compute.Models.ExtendedLocation ExtendedLocation { get; set; } Property Value
HyperVGeneration
The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
Declaration
public Nullable<Azure.ResourceManager.Compute.Models.HyperVGeneration> HyperVGeneration { get; set; } Property Value
ManagedBy
A relative URI containing the ID of the VM that has the disk attached.
Declaration
public string ManagedBy { get; } Property Value
| System.String |
ManagedByExtended
List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
Declaration
public System.Collections.Generic.IReadOnlyList<string> ManagedByExtended { get; } Property Value
| System.Collections.Generic.IReadOnlyList<System.String> |
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.
Declaration
public Nullable<int> MaxShares { get; set; } Property Value
| System.Nullable<System.Int32> |
NetworkAccessPolicy
Policy for accessing the disk via network.
Declaration
public Nullable<Azure.ResourceManager.Compute.Models.NetworkAccessPolicy> NetworkAccessPolicy { get; set; } Property Value
OSType
The Operating System type.
Declaration
public Nullable<Azure.ResourceManager.Compute.Models.OperatingSystemTypes> OSType { get; set; } Property Value
PropertyUpdatesInProgressTargetTier
The target performance tier of the disk if a tier change operation is in progress.
Declaration
public string PropertyUpdatesInProgressTargetTier { get; } Property Value
| System.String |
ProvisioningState
The disk provisioning state.
Declaration
public string ProvisioningState { get; } Property Value
| System.String |
PublicNetworkAccess
Policy for controlling export on the disk.
Declaration
public Nullable<Azure.ResourceManager.Compute.Models.PublicNetworkAccess> PublicNetworkAccess { get; set; } Property Value
PurchasePlan
Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}.
Declaration
public Azure.ResourceManager.Compute.Models.DiskPurchasePlan PurchasePlan { get; set; } Property Value
SecurityProfile
Contains the security related information for the resource.
Declaration
public Azure.ResourceManager.Compute.Models.DiskSecurityProfile SecurityProfile { get; set; } Property Value
ShareInfo
Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
Declaration
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.Compute.Models.ShareInfoElement> ShareInfo { get; } Property Value
Sku
The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS.
Declaration
public Azure.ResourceManager.Compute.Models.DiskSku Sku { get; set; } Property Value
SupportsHibernation
Indicates the OS on a disk supports hibernation.
Declaration
public Nullable<bool> SupportsHibernation { get; set; } Property Value
| System.Nullable<System.Boolean> |
Tier
Declaration
public string Tier { get; set; } Property Value
| System.String |
TimeCreated
The time when the disk was created.
Declaration
public Nullable<DateTimeOffset> TimeCreated { get; } Property Value
| System.Nullable<System.DateTimeOffset> |
UniqueId
Unique Guid identifying the resource.
Declaration
public string UniqueId { get; } Property Value
| System.String |
Zones
The Logical zone list for Disk.
Declaration
public System.Collections.Generic.IList<string> Zones { get; } Property Value
| System.Collections.Generic.IList<System.String> |