Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Idazure.logic_apps.workflows

Fields

NameDatatypeDescription
idtextThe resource id.
nametextGets the resource name.
access_controltextfield from the properties object
access_endpointtextfield from the properties object
changed_timetextfield from the properties object
created_timetextfield from the properties object
definitiontextfield from the properties object
endpoints_configurationtextfield from the properties object
identitytextManaged service identity properties.
integration_accounttextfield from the properties object
integration_service_environmenttextfield from the properties object
locationtextThe resource location.
parameterstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe resource tags.
typetextGets the resource type.
versiontextfield from the properties object
workflowNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workflowNameGets a workflow.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of workflows by resource group.
list_by_subscriptionSELECTsubscriptionIdGets a list of workflows by subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, workflowNameCreates or updates a workflow.
deleteDELETEresourceGroupName, subscriptionId, workflowNameDeletes a workflow.
updateUPDATEresourceGroupName, subscriptionId, workflowNameUpdates a workflow.
disableEXECresourceGroupName, subscriptionId, workflowNameDisables a workflow.
enableEXECresourceGroupName, subscriptionId, workflowNameEnables a workflow.
generate_upgraded_definitionEXECresourceGroupName, subscriptionId, workflowNameGenerates the upgraded definition for a workflow.
moveEXECresourceGroupName, subscriptionId, workflowNameMoves an existing workflow.
regenerate_access_keyEXECresourceGroupName, subscriptionId, workflowNameRegenerates the callback URL access key for request triggers.
validate_by_locationEXEClocation, resourceGroupName, subscriptionId, workflowNameValidates the workflow definition.
validate_by_resource_groupEXECresourceGroupName, subscriptionId, workflowNameValidates the workflow.

SELECT examples

Gets a list of workflows by subscription.

SELECT
id,
name,
access_control,
access_endpoint,
changed_time,
created_time,
definition,
endpoints_configuration,
identity,
integration_account,
integration_service_environment,
location,
parameters,
provisioning_state,
resourceGroupName,
sku,
state,
subscriptionId,
tags,
type,
version,
workflowName
FROM azure.logic_apps.vw_workflows
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new workflows resource.

/*+ create */
INSERT INTO azure.logic_apps.workflows (
resourceGroupName,
subscriptionId,
workflowName,
properties,
identity,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workflowName }}',
'{{ properties }}',
'{{ identity }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a workflows resource.

/*+ update */
UPDATE azure.logic_apps.workflows
SET

WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workflowName = '{{ workflowName }}';

DELETE example

Deletes the specified workflows resource.

/*+ delete */
DELETE FROM azure.logic_apps.workflows
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workflowName = '{{ workflowName }}';