Skip to main content

workflow

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

Overview

Nameworkflow
TypeResource
Idazure_extras.devhub.workflow

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
artifactGenerationPropertiesobjectProperties for generating artifacts like dockerfile and manifests.
azurePipelineProfileobjectProfile of an azure pipeline.
githubWorkflowProfileobjectProfile of a github workflow.
locationstringThe geo-location where the resource lives. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
templateWorkflowProfileobjectProfile of an template workflow.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workflow_name, subscription_idGets a workflow. Gets a workflow.
list_by_resource_groupselectresource_group_name, subscription_idmanagedClusterResourceGets a list of workflows within a resource group. Gets a list of workflows within a resource group.
listselectsubscription_idGets a list of workflows associated with the specified subscription. Gets a list of workflows associated with the specified subscription.
create_or_updateinsertresource_group_name, workflow_name, subscription_id, locationCreates or updates a workflow. Creates or updates a workflow.
update_tagsupdateresource_group_name, workflow_name, subscription_idUpdates tags on a workflow. Updates tags on a workflow.
create_or_updatereplaceresource_group_name, workflow_name, subscription_id, locationCreates or updates a workflow. Creates or updates a workflow.
deletedeleteresource_group_name, workflow_name, subscription_idDeletes a workflow. Deletes a workflow.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workflow_namestringThe name of the workflow resource. Required.
managedClusterResourcestringThe ManagedCluster resource associated with the workflows. Default value is None.

SELECT examples

Gets a workflow. Gets a workflow.

SELECT
id,
name,
artifactGenerationProperties,
azurePipelineProfile,
githubWorkflowProfile,
location,
systemData,
tags,
templateWorkflowProfile,
type
FROM azure_extras.devhub.workflow
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workflow_name = '{{ workflow_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a workflow. Creates or updates a workflow.

INSERT INTO azure_extras.devhub.workflow (
tags,
location,
properties,
resource_group_name,
workflow_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ workflow_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates tags on a workflow. Updates tags on a workflow.

UPDATE azure_extras.devhub.workflow
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workflow_name = '{{ workflow_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a workflow. Creates or updates a workflow.

REPLACE azure_extras.devhub.workflow
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workflow_name = '{{ workflow_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a workflow. Deletes a workflow.

DELETE FROM azure_extras.devhub.workflow
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workflow_name = '{{ workflow_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;