vw_disks
Creates, updates, deletes, gets or lists a vw_disks
resource.
Overview
Name | vw_disks |
Type | View |
Id | azure.dev_test_labs.vw_disks |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
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';
SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
json_extract_path_text(properties, '$.diskType') as "disk_type",
json_extract_path_text(properties, '$.diskSizeGiB') as "disk_size_gib",
json_extract_path_text(properties, '$.leasedByLabVmId') as "leased_by_lab_vm_id",
json_extract_path_text(properties, '$.diskBlobName') as "disk_blob_name",
json_extract_path_text(properties, '$.diskUri') as "disk_uri",
json_extract_path_text(properties, '$.storageAccountId') as "storage_account_id",
json_extract_path_text(properties, '$.createdDate') as "created_date",
json_extract_path_text(properties, '$.hostCaching') as "host_caching",
json_extract_path_text(properties, '$.managedDiskId') as "managed_disk_id",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(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';