Skip to main content

disks

Overview

Namedisks
TypeResource
Idazure.compute.disks

Fields

NameDatatypeDescription
idstringResource Id
namestringResource name
extendedLocationobjectThe complex type of the extended location.
locationstringResource location
managedBystringA relative URI containing the ID of the VM that has the disk attached.
managedByExtendedarrayList 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.
propertiesobjectDisk resource properties.
skuobjectThe disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
tagsobjectResource tags
typestringResource type
zonesarrayThe Logical zone list for Disk.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiskName, resourceGroupName, subscriptionIdGets information about a disk.
listSELECTsubscriptionIdLists all the disks under a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the disks under a resource group.
create_or_updateINSERTdiskName, resourceGroupName, subscriptionIdCreates or updates a disk.
deleteDELETEdiskName, resourceGroupName, subscriptionIdDeletes a disk.
_listEXECsubscriptionIdLists all the disks under a subscription.
_list_by_resource_groupEXECresourceGroupName, subscriptionIdLists all the disks under a resource group.
grant_accessEXECdiskName, resourceGroupName, subscriptionId, data__access, data__durationInSecondsGrants access to a disk.
revoke_accessEXECdiskName, resourceGroupName, subscriptionIdRevokes access to a disk.
updateEXECdiskName, resourceGroupName, subscriptionIdUpdates (patches) a disk.