Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Idazure_extras.developer_hub.workflows

Fields

NameDatatypeDescription
artifact_generation_propertiestextfield from the properties object
azure_pipeline_profiletextfield from the properties object
github_workflow_profiletextfield from the properties object
locationtextThe geo-location where the resource lives
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
workflowNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workflowName
listSELECTsubscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
create_or_updateINSERTresourceGroupName, subscriptionId, workflowName
deleteDELETEresourceGroupName, subscriptionId, workflowName
update_tagsEXECresourceGroupName, subscriptionId, workflowName

SELECT examples

SELECT
artifact_generation_properties,
azure_pipeline_profile,
github_workflow_profile,
location,
resourceGroupName,
subscriptionId,
tags,
workflowName
FROM azure_extras.developer_hub.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_extras.developer_hub.workflows (
resourceGroupName,
subscriptionId,
workflowName,
tags,
location,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workflowName }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified workflows resource.

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