Skip to main content

vw_virtual_machines

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

Overview

Namevw_virtual_machines
TypeView
Idazure.nexus.vw_virtual_machines

Fields

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

SQL Definition

SELECT
location as location,
extendedLocation as extended_location,
tags as tags,
JSON_EXTRACT(properties, '$.adminUsername') as "admin_username",
JSON_EXTRACT(properties, '$.availabilityZone') as "availability_zone",
JSON_EXTRACT(properties, '$.bareMetalMachineId') as "bare_metal_machine_id",
JSON_EXTRACT(properties, '$.bootMethod') as "boot_method",
JSON_EXTRACT(properties, '$.cloudServicesNetworkAttachment') as "cloud_services_network_attachment",
JSON_EXTRACT(properties, '$.clusterId') as "cluster_id",
JSON_EXTRACT(properties, '$.cpuCores') as "cpu_cores",
JSON_EXTRACT(properties, '$.detailedStatus') as "detailed_status",
JSON_EXTRACT(properties, '$.detailedStatusMessage') as "detailed_status_message",
JSON_EXTRACT(properties, '$.isolateEmulatorThread') as "isolate_emulator_thread",
JSON_EXTRACT(properties, '$.memorySizeGB') as "memory_size_gb",
JSON_EXTRACT(properties, '$.networkAttachments') as "network_attachments",
JSON_EXTRACT(properties, '$.networkData') as "network_data",
JSON_EXTRACT(properties, '$.placementHints') as "placement_hints",
JSON_EXTRACT(properties, '$.powerState') as "power_state",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.sshPublicKeys') as "ssh_public_keys",
JSON_EXTRACT(properties, '$.storageProfile') as "storage_profile",
JSON_EXTRACT(properties, '$.userData') as "user_data",
JSON_EXTRACT(properties, '$.virtioInterface') as "virtio_interface",
JSON_EXTRACT(properties, '$.vmDeviceModel') as "vm_device_model",
JSON_EXTRACT(properties, '$.vmImage') as "vm_image",
JSON_EXTRACT(properties, '$.vmImageRepositoryCredentials') as "vm_image_repository_credentials",
JSON_EXTRACT(properties, '$.volumes') as "volumes",
subscriptionId,
resourceGroupName,
virtualMachineName
FROM azure.nexus.virtual_machines
WHERE subscriptionId = 'replace-me';