Skip to main content

vw_machines

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

Overview

Namevw_machines
TypeView
Idazure.hybrid_compute.vw_machines

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,
identity as identity,
JSON_EXTRACT(properties, '$.osProfile') as "os_profile",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.status') as "status",
JSON_EXTRACT(properties, '$.lastStatusChange') as "last_status_change",
JSON_EXTRACT(properties, '$.errorDetails') as "error_details",
JSON_EXTRACT(properties, '$.agentVersion') as "agent_version",
JSON_EXTRACT(properties, '$.vmId') as "vm_id",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.machineFqdn') as "machine_fqdn",
JSON_EXTRACT(properties, '$.physicalLocation') as "physical_location",
JSON_EXTRACT(properties, '$.clientPublicKey') as "client_public_key",
JSON_EXTRACT(properties, '$.osName') as "os_name",
JSON_EXTRACT(properties, '$.osVersion') as "os_version",
subscriptionId,
resourceGroupName,
name
FROM azure.hybrid_compute.machines
WHERE subscriptionId = 'replace-me';