Skip to main content

vw_snapshots

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

Overview

Namevw_snapshots
TypeView
Idazure.compute.vw_snapshots

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,
managedBy as managed_by,
sku as sku,
extendedLocation as extended_location,
type as type,
tags as tags,
JSON_EXTRACT(properties, '$.timeCreated') as "time_created",
JSON_EXTRACT(properties, '$.osType') as "os_type",
JSON_EXTRACT(properties, '$.hyperVGeneration') as "hyper_v_generation",
JSON_EXTRACT(properties, '$.purchasePlan') as "purchase_plan",
JSON_EXTRACT(properties, '$.supportedCapabilities') as "supported_capabilities",
JSON_EXTRACT(properties, '$.creationData') as "creation_data",
JSON_EXTRACT(properties, '$.diskSizeGB') as "disk_size_gb",
JSON_EXTRACT(properties, '$.diskSizeBytes') as "disk_size_bytes",
JSON_EXTRACT(properties, '$.diskState') as "disk_state",
JSON_EXTRACT(properties, '$.uniqueId') as "unique_id",
JSON_EXTRACT(properties, '$.encryptionSettingsCollection') as "encryption_settings_collection",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.incremental') as "incremental",
JSON_EXTRACT(properties, '$.incrementalSnapshotFamilyId') as "incremental_snapshot_family_id",
JSON_EXTRACT(properties, '$.encryption') as "encryption",
JSON_EXTRACT(properties, '$.networkAccessPolicy') as "network_access_policy",
JSON_EXTRACT(properties, '$.diskAccessId') as "disk_access_id",
JSON_EXTRACT(properties, '$.securityProfile') as "security_profile",
JSON_EXTRACT(properties, '$.supportsHibernation') as "supports_hibernation",
JSON_EXTRACT(properties, '$.publicNetworkAccess') as "public_network_access",
JSON_EXTRACT(properties, '$.completionPercent') as "completion_percent",
JSON_EXTRACT(properties, '$.copyCompletionError') as "copy_completion_error",
JSON_EXTRACT(properties, '$.dataAccessAuthMode') as "data_access_auth_mode",
subscriptionId,
resourceGroupName,
snapshotName
FROM azure.compute.snapshots
WHERE subscriptionId = 'replace-me';