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
System.Object
Disk
Attributes

Constructors

Disk()

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.

DiskSizeGB

Gets or sets if creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD 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.

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)
Zones

Gets or sets the Logical zone list for Disk.

Methods

Validate()

Validate the object.

Applies to