Disk Class

Definition

Disk resource.

[Microsoft.Rest.Serialization.JsonTransformation]
public class Disk : Microsoft.Azure.Management.Compute.Models.Resource
type Disk = class
    inherit Resource
Public Class Disk
Inherits Resource
Inheritance
Attributes
Microsoft.Rest.Serialization.JsonTransformationAttribute

Constructors

Disk()

Initializes a new instance of the Disk class.

Disk(String, CreationData, String, String, String, IDictionary<String,String>, String, DiskSku, IList<String>, Nullable<DateTime>, Nullable<OperatingSystemTypes>, String, Nullable<Int32>, Nullable<Int64>, String, EncryptionSettingsCollection, String, Nullable<Int64>, Nullable<Int32>, String)

Initializes a new instance of the Disk class.

Properties

CreationData

Gets or sets disk source information. CreationData information cannot be changed after the disk has been created.

DiskIOPSReadWrite

Gets or sets the number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.

DiskMBpsReadWrite

Gets or sets 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.

DiskSizeBytes

Gets the size of the disk in bytes. This field is read only.

DiskSizeGB

Gets or sets 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.

DiskState

Gets the state of the disk. Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', 'ActiveUpload'

EncryptionSettingsCollection

Gets or sets encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.

HyperVGeneration

Gets or sets the hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2'

Id

Gets resource Id

(Inherited from Resource)
Location

Gets or sets resource location

(Inherited from Resource)
ManagedBy

Gets a relative URI containing the ID of the VM that has the disk attached.

Name

Gets resource name

(Inherited from Resource)
OsType

Gets or sets the Operating System type. Possible values include: 'Windows', 'Linux'

ProvisioningState

Gets the disk provisioning state.

Sku
Tags

Gets or sets resource tags

(Inherited from Resource)
TimeCreated

Gets the time when the disk was created.

Type

Gets resource type

(Inherited from Resource)
UniqueId

Gets unique Guid identifying the resource.

Zones

Gets or sets the Logical zone list for Disk.

Methods

Validate()

Validate the object.

Applies to