vw_virtual_hard_disks
Creates, updates, deletes, gets or lists a vw_virtual_hard_disks
resource.
Overview
Name | vw_virtual_hard_disks |
Type | View |
Id | azure_stack.azure_stack_hci.vw_virtual_hard_disks |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
location as location,
extendedLocation as extended_location,
tags as tags,
JSON_EXTRACT(properties, '$.blockSizeBytes') as "block_size_bytes",
JSON_EXTRACT(properties, '$.diskSizeGB') as "disk_size_gb",
JSON_EXTRACT(properties, '$.dynamic') as "dynamic",
JSON_EXTRACT(properties, '$.logicalSectorBytes') as "logical_sector_bytes",
JSON_EXTRACT(properties, '$.physicalSectorBytes') as "physical_sector_bytes",
JSON_EXTRACT(properties, '$.hyperVGeneration') as "hyper_v_generation",
JSON_EXTRACT(properties, '$.diskFileFormat') as "disk_file_format",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.containerId') as "container_id",
JSON_EXTRACT(properties, '$.status') as "status",
subscriptionId,
resourceGroupName,
virtualHardDiskName
FROM azure_stack.azure_stack_hci.virtual_hard_disks
WHERE subscriptionId = 'replace-me';
SELECT
location as location,
extendedLocation as extended_location,
tags as tags,
json_extract_path_text(properties, '$.blockSizeBytes') as "block_size_bytes",
json_extract_path_text(properties, '$.diskSizeGB') as "disk_size_gb",
json_extract_path_text(properties, '$.dynamic') as "dynamic",
json_extract_path_text(properties, '$.logicalSectorBytes') as "logical_sector_bytes",
json_extract_path_text(properties, '$.physicalSectorBytes') as "physical_sector_bytes",
json_extract_path_text(properties, '$.hyperVGeneration') as "hyper_v_generation",
json_extract_path_text(properties, '$.diskFileFormat') as "disk_file_format",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.containerId') as "container_id",
json_extract_path_text(properties, '$.status') as "status",
subscriptionId,
resourceGroupName,
virtualHardDiskName
FROM azure_stack.azure_stack_hci.virtual_hard_disks
WHERE subscriptionId = 'replace-me';