Disk Constructors

Definition

Overloads

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.

Disk()

Initializes a new instance of the Disk class.

public Disk ();
Public Sub New ()

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.

public Disk (string location, Microsoft.Azure.Management.Compute.Models.CreationData creationData, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, string managedBy = null, Microsoft.Azure.Management.Compute.Models.DiskSku sku = null, System.Collections.Generic.IList<string> zones = null, Nullable<DateTime> timeCreated = null, Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> osType = null, string hyperVGeneration = null, Nullable<int> diskSizeGB = null, Nullable<long> diskSizeBytes = null, string uniqueId = null, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection = null, string provisioningState = null, Nullable<long> diskIOPSReadWrite = null, Nullable<int> diskMBpsReadWrite = null, string diskState = null);
new Microsoft.Azure.Management.Compute.Models.Disk : string * Microsoft.Azure.Management.Compute.Models.CreationData * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.DiskSku * System.Collections.Generic.IList<string> * Nullable<DateTime> * Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * string * Nullable<int> * Nullable<int64> * string * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * string * Nullable<int64> * Nullable<int> * string -> Microsoft.Azure.Management.Compute.Models.Disk

Parameters

location
String

Resource location

creationData
CreationData

Disk source information. CreationData information cannot be changed after the disk has been created.

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

managedBy
String

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

sku
DiskSku
zones
IList<String>

The Logical zone list for Disk.

timeCreated
Nullable<DateTime>

The time when the disk was created.

osType
Nullable<OperatingSystemTypes>

The Operating System type. Possible values include: 'Windows', 'Linux'

hyperVGeneration
String

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

diskSizeGB
Nullable<Int32>

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.

diskSizeBytes
Nullable<Int64>

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

uniqueId
String

Unique Guid identifying the resource.

encryptionSettingsCollection
EncryptionSettingsCollection

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

provisioningState
String

The disk provisioning state.

diskIOPSReadWrite
Nullable<Int64>

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

diskMBpsReadWrite
Nullable<Int32>

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.

diskState
String

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

Applies to