Skip to main content

workflow_runs

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

Overview

Nameworkflow_runs
TypeResource
Idazure.app_service.workflow_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource id.
namestringGets the workflow run name.
propertiesobjectThe workflow run properties.
typestringGets the workflow run type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, name, workflowName, runNameGets a workflow run.
listselectsubscriptionId, resourceGroupName, name, workflowName$top, $filterGets a list of workflow runs.
cancelexecsubscriptionId, resourceGroupName, name, workflowName, runNameCancels a workflow run.

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
namestringSite name.
resourceGroupNamestringName of the resource group to which the resource belongs.
runNamestringThe workflow run name.
subscriptionIdstringYour Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
workflowNamestringThe workflow name.
$filterstringThe filter to apply on the operation. Options for filters include: Status, StartTime, and ClientTrackingId.
$topinteger (int32)The number of items to be included in the result.

SELECT examples

Gets a workflow run.

SELECT
id,
name,
properties,
type
FROM azure.app_service.workflow_runs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND name = '{{ name }}' -- required
AND workflowName = '{{ workflowName }}' -- required
AND runName = '{{ runName }}' -- required
;

Lifecycle Methods

Cancels a workflow run.

EXEC azure.app_service.workflow_runs.cancel 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@name='{{ name }}' --required,
@workflowName='{{ workflowName }}' --required,
@runName='{{ runName }}' --required
;