Skip to main content

vw_disks

Creates, updates, deletes, gets or lists a vw_disks resource.

Overview

Namevw_disks
TypeView
Idazure.dev_test_labs.vw_disks

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
JSON_EXTRACT(properties, '$.diskType') as "disk_type",
JSON_EXTRACT(properties, '$.diskSizeGiB') as "disk_size_gib",
JSON_EXTRACT(properties, '$.leasedByLabVmId') as "leased_by_lab_vm_id",
JSON_EXTRACT(properties, '$.diskBlobName') as "disk_blob_name",
JSON_EXTRACT(properties, '$.diskUri') as "disk_uri",
JSON_EXTRACT(properties, '$.storageAccountId') as "storage_account_id",
JSON_EXTRACT(properties, '$.createdDate') as "created_date",
JSON_EXTRACT(properties, '$.hostCaching') as "host_caching",
JSON_EXTRACT(properties, '$.managedDiskId') as "managed_disk_id",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.uniqueIdentifier') as "unique_identifier",
subscriptionId,
resourceGroupName,
labName,
userName,
name
FROM azure.dev_test_labs.disks
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND labName = 'replace-me' AND userName = 'replace-me';