Skip to main content

vw_tasks

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

Overview

Namevw_tasks
TypeView
Idazure.defender.vw_tasks

Fields

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

SQL Definition

SELECT
JSON_EXTRACT(properties, '$.startedAt') as "started_at",
JSON_EXTRACT(properties, '$.completedAt') as "completed_at",
JSON_EXTRACT(properties, '$.lastPolledAt') as "last_polled_at",
JSON_EXTRACT(properties, '$.state') as "state",
JSON_EXTRACT(properties, '$.phase') as "phase",
JSON_EXTRACT(properties, '$.reason') as "reason",
JSON_EXTRACT(properties, '$.metadata') as "metadata",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
subscriptionId,
resourceGroupName,
workspaceName,
taskId
FROM azure.defender.tasks
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND workspaceName = 'replace-me' AND taskId = 'replace-me';