Disk Class

Disk resource.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.compute.v2018_06_01.models._models_py3.Resource
Disk

Constructor

Disk(*, location: str, tags: Dict[str, str] | None = None, sku: _models.DiskSku | None = None, zones: List[str] | None = None, os_type: str | _models.OperatingSystemTypes | None = None, creation_data: _models.CreationData | None = None, disk_size_gb: int | None = None, encryption_settings: _models.EncryptionSettings | None = None, disk_iops_read_write: int | None = None, disk_m_bps_read_write: int | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
location
str

Resource location. Required.

tags

Resource tags.

sku

The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or UltraSSD_LRS.

zones

The Logical zone list for Disk.

os_type

The Operating System type. Known values are: "Windows" and "Linux".

creation_data

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

disk_size_gb
int

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.

encryption_settings

Encryption settings for disk or snapshot.

disk_iops_read_write
int

The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. For a description of the range of values you can set, see Ultra SSD Managed Disk Offerings.

disk_m_bps_read_write
int

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. For a description of the range of values you can set, see Ultra SSD Managed Disk Offerings.

Variables

Name Description
id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

location
str

Resource location. Required.

tags

Resource tags.

managed_by
str

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

sku

The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or UltraSSD_LRS.

zones

The Logical zone list for Disk.

time_created

The time when the disk was created.

os_type

The Operating System type. Known values are: "Windows" and "Linux".

creation_data

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

disk_size_gb
int

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.

encryption_settings

Encryption settings for disk or snapshot.

provisioning_state
str

The disk provisioning state.

disk_iops_read_write
int

The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. For a description of the range of values you can set, see Ultra SSD Managed Disk Offerings.

disk_m_bps_read_write
int

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. For a description of the range of values you can set, see Ultra SSD Managed Disk Offerings.