Disk Class

A Disk.

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

Constructor

Disk(*, location: str | None = None, tags: dict[str, str] | None = None, disk_type: str | _models.StorageType | None = None, disk_size_gi_b: int | None = None, leased_by_lab_vm_id: str | None = None, disk_blob_name: str | None = None, disk_uri: str | None = None, storage_account_id: str | None = None, host_caching: str | None = None, managed_disk_id: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
location
str

The location of the resource.

Default value: None
tags

The tags of the resource.

Default value: None
disk_type

The storage type for the disk (i.e. Standard, Premium). Known values are: "Standard", "Premium", and "StandardSSD".

Default value: None
disk_size_gi_b
int

The size of the disk in Gibibytes.

Default value: None
leased_by_lab_vm_id
str

The resource ID of the VM to which this disk is leased.

Default value: None
disk_blob_name
str

When backed by a blob, the name of the VHD blob without extension.

Default value: None
disk_uri
str

When backed by a blob, the URI of underlying blob.

Default value: None
storage_account_id
str

When backed by a blob, the storage account where the blob is.

Default value: None
host_caching
str

The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).

Default value: None
managed_disk_id
str

When backed by managed disk, this is the ID of the compute disk resource.

Default value: None

Variables

Name Description
id
str

The identifier of the resource.

name
str

The name of the resource.

type
str

The type of the resource.

location
str

The location of the resource.

tags

The tags of the resource.

disk_type

The storage type for the disk (i.e. Standard, Premium). Known values are: "Standard", "Premium", and "StandardSSD".

disk_size_gi_b
int

The size of the disk in Gibibytes.

leased_by_lab_vm_id
str

The resource ID of the VM to which this disk is leased.

disk_blob_name
str

When backed by a blob, the name of the VHD blob without extension.

disk_uri
str

When backed by a blob, the URI of underlying blob.

storage_account_id
str

When backed by a blob, the storage account where the blob is.

created_date

The creation date of the disk.

host_caching
str

The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).

managed_disk_id
str

When backed by managed disk, this is the ID of the compute disk resource.

provisioning_state
str

The provisioning status of the resource.

unique_identifier
str

The unique immutable identifier of a resource (Guid).