Disk Class

Disk resource.

Constructor

Disk(*args: Any, **kwargs: Any)

Variables

Name Description
id
str

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
str

The name of the resource.

type
str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

system_data

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags

Resource tags.

location
str

The geo-location where the resource lives. Required.

properties

Disk resource properties.

managed_by
str

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

managed_by_extended

List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.

sku

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

zones

The Logical zone list for Disk.

extended_location

The extended location where the disk will be created. Extended location cannot be changed.

Attributes

extended_location

The extended location where the disk will be created. Extended location cannot be changed.

extended_location: _models.ExtendedLocation | None

managed_by

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

managed_by: str | None

managed_by_extended

List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.

managed_by_extended: list[str] | None

properties

Disk resource properties.

properties: _models.DiskProperties | None

sku

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

sku: _models.DiskSku | None

zones

The Logical zone list for Disk.

zones: list[str] | None