Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Idazure.logic_apps.workflows

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource id.
namestringGets the resource name.
identityobjectManaged service identity properties.
locationstringThe resource location.
propertiesobjectThe workflow properties.
tagsobjectThe resource tags.
typestringGets the resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, workflowNameapi-versionGets a workflow.
list_by_resource_groupselectsubscriptionId, resourceGroupNameapi-version, $top, $filterGets a list of workflows by resource group.
list_by_subscriptionselectsubscriptionIdapi-version, $top, $filterGets a list of workflows by subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, workflowNameapi-versionCreates or updates a workflow.
updateupdatesubscriptionId, resourceGroupName, workflowNameapi-versionUpdates a workflow.
deletedeletesubscriptionId, resourceGroupName, workflowNameapi-versionDeletes a workflow.
disableexecsubscriptionId, resourceGroupName, workflowNameapi-versionDisables a workflow.
enableexecsubscriptionId, resourceGroupName, workflowNameapi-versionEnables a workflow.
generate_upgraded_definitionexecsubscriptionId, resourceGroupName, workflowNameapi-versionGenerates the upgraded definition for a workflow.
moveexecsubscriptionId, resourceGroupName, workflowNameapi-versionMoves an existing workflow.
regenerate_access_keyexecsubscriptionId, resourceGroupName, workflowNameapi-versionRegenerates the callback URL access key for request triggers.
validate_by_resource_groupexecsubscriptionId, resourceGroupName, workflowNameapi-versionValidates the workflow.
validate_by_locationexecsubscriptionId, resourceGroupName, location, workflowNameapi-versionValidates the workflow definition.

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
locationstringThe workflow location.
resourceGroupNamestringThe resource group name.
subscriptionIdstringThe subscription id.
workflowNamestringThe workflow name.
$filterstringThe filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.
$topinteger (int32)The number of items to be included in the result.
api-versionstringThe API version.

SELECT examples

Gets a workflow.

SELECT
id,
name,
identity,
location,
properties,
tags,
type
FROM azure.logic_apps.workflows
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND workflowName = '{{ workflowName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Creates or updates a workflow.

INSERT INTO azure.logic_apps.workflows (
data__properties,
data__identity,
data__location,
data__tags,
subscriptionId,
resourceGroupName,
workflowName,
api-version
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ location }}',
'{{ tags }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ workflowName }}',
'{{ api-version }}'
RETURNING
id,
name,
identity,
location,
properties,
tags,
type
;

UPDATE examples

Updates a workflow.

UPDATE azure.logic_apps.workflows
SET
-- No updatable properties
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workflowName = '{{ workflowName }}' --required
AND api-version = '{{ api-version}}'
RETURNING
id,
name,
identity,
location,
properties,
tags,
type;

DELETE examples

Deletes a workflow.

DELETE FROM azure.logic_apps.workflows
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workflowName = '{{ workflowName }}' --required
AND api-version = '{{ api-version }}'
;

Lifecycle Methods

Disables a workflow.

EXEC azure.logic_apps.workflows.disable 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@workflowName='{{ workflowName }}' --required,
@api-version='{{ api-version }}'
;