Skip to main content

pipelines

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

Overview

Namepipelines
TypeResource
Idazure.devops.pipelines

Fields

The following fields are returned by SELECT queries:

The Azure Pipeline has been fetched successfully.

NameDatatypeDescription
idstringResource Id
namestringResource Name
locationstringResource Location
propertiesobjectCustom properties of the Pipeline.
tagsobjectResource Tags
typestringResource Type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, pipelineNameGets an existing Azure Pipeline.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all Azure Pipelines under the specified resource group.
list_by_subscriptionselectsubscriptionIdLists all Azure Pipelines under the specified subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, pipelineName, data__propertiesCreates or updates an Azure Pipeline.
updateupdatesubscriptionId, resourceGroupName, pipelineNameUpdates the properties of an Azure Pipeline. Currently, only tags can be updated.
deletedeletesubscriptionId, resourceGroupName, pipelineNameDeletes an Azure Pipeline.

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
pipelineNamestringThe name of the Azure Pipeline resource.
resourceGroupNamestringName of the resource group within the Azure subscription.
subscriptionIdstringUnique identifier of the Azure subscription. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).

SELECT examples

Gets an existing Azure Pipeline.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.devops.pipelines
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND pipelineName = '{{ pipelineName }}' -- required
;

INSERT examples

Creates or updates an Azure Pipeline.

INSERT INTO azure.devops.pipelines (
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
pipelineName
)
SELECT
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ pipelineName }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

Updates the properties of an Azure Pipeline. Currently, only tags can be updated.

UPDATE azure.devops.pipelines
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND pipelineName = '{{ pipelineName }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

Deletes an Azure Pipeline.

DELETE FROM azure.devops.pipelines
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND pipelineName = '{{ pipelineName }}' --required
;