Disk Class
Disk resource.
Constructor
Disk()
Variables
| Name | Description |
|---|---|
|
id
|
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
|
name
|
The name of the resource. |
|
type
|
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
|
system_data
|
<xref:<xref:"SystemData">>
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags
|
Resource tags. |
|
location
|
The geo-location where the resource lives. Required. |
|
properties
|
<xref:<xref:"DiskProperties">>
Disk resource properties. |
|
managed_by
|
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
|
<xref:<xref:"DiskSku">>
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
|
<xref:<xref:"ExtendedLocation">>
The extended location where the disk will be created. Extended location cannot be changed. |
Attributes
extendedLocation
The extended location where the disk will be created. Extended location cannot be changed.
extendedLocation: ExtendedLocation
managedBy
A relative URI containing the ID of the VM that has the disk attached.
managedBy: str
managedByExtended
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.
managedByExtended: list[str]
properties
Disk resource properties.
properties: DiskProperties
sku
The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
sku: DiskSku
zones
The Logical zone list for Disk.
zones: list[str]
id
id: str
location
location: str
name
name: str
systemData
systemData: SystemData
tags
tags: dict[str, str]
type
type: str