Skip to main content

pipelines

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

Overview

Namepipelines
TypeResource
Idazure.devops.pipelines

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name
bootstrap_configurationtextfield from the properties object
locationtextResource Location
organizationtextfield from the properties object
pipelineNametextfield from the properties object
pipeline_idtextfield from the properties object
projecttextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource Tags
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTpipelineName, resourceGroupName, subscriptionIdGets an existing Azure Pipeline.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all Azure Pipelines under the specified resource group.
list_by_subscriptionSELECTsubscriptionIdLists all Azure Pipelines under the specified subscription.
create_or_updateINSERTpipelineName, resourceGroupName, subscriptionId, data__propertiesCreates or updates an Azure Pipeline.
deleteDELETEpipelineName, resourceGroupName, subscriptionIdDeletes an Azure Pipeline.
updateUPDATEpipelineName, resourceGroupName, subscriptionIdUpdates the properties of an Azure Pipeline. Currently, only tags can be updated.

SELECT examples

Lists all Azure Pipelines under the specified subscription.

SELECT
id,
name,
bootstrap_configuration,
location,
organization,
pipelineName,
pipeline_id,
project,
resourceGroupName,
subscriptionId,
tags,
type
FROM azure.devops.vw_pipelines
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.devops.pipelines (
pipelineName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ pipelineName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a pipelines resource.

/*+ update */
UPDATE azure.devops.pipelines
SET
tags = '{{ tags }}'
WHERE
pipelineName = '{{ pipelineName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified pipelines resource.

/*+ delete */
DELETE FROM azure.devops.pipelines
WHERE pipelineName = '{{ pipelineName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';