Skip to main content

tasks

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

Overview

Nametasks
TypeResource
Idazure.defender.tasks

Fields

The following fields are returned by SELECT queries:

Task details.

NameDatatypeDescription
propertiesobjectTask properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_workspaceselectresourceGroupName, subscriptionId, workspaceName, taskIdReturns a task in the given workspace.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
taskIdstringThe id of the Task.
workspaceNamestringThe name of the Workspace.

SELECT examples

Returns a task in the given workspace.

SELECT
properties
FROM azure.defender.tasks
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND taskId = '{{ taskId }}' -- required
;