Skip to main content

pipelines

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

Overview

Namepipelines
TypeResource
Idazure.data_factory.pipelines

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.
activitiesarrayList of activities in pipeline.
annotationsarrayList of tags that can be used for describing the Pipeline.
concurrencyintegerThe max number of concurrent runs for the pipeline.
descriptionstringThe description of the pipeline.
etagstring"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").
folderobjectThe folder that this Pipeline is in. If not specified, Pipeline will appear at the root level.
parametersobjectList of parameters for pipeline.
policyobjectPipeline Policy.
runDimensionsobjectDimensions emitted by Pipeline.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
variablesobjectList of variables for pipeline.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, factory_name, pipeline_name, subscription_idGets a pipeline.
list_by_factoryselectresource_group_name, factory_name, subscription_idLists pipelines.
create_or_updateinsertresource_group_name, factory_name, pipeline_name, subscription_id, propertiesCreates or updates a pipeline.
create_or_updatereplaceresource_group_name, factory_name, pipeline_name, subscription_id, propertiesCreates or updates a pipeline.
deletedeleteresource_group_name, factory_name, pipeline_name, subscription_idDeletes a pipeline.
create_runexecresource_group_name, factory_name, pipeline_name, subscription_idreferencePipelineRunId, isRecovery, startActivityName, startFromFailureCreates a run of a 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
factory_namestringThe factory name. Required.
pipeline_namestringThe pipeline name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
isRecoverybooleanRecovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped under the same groupId. Default value is None.
referencePipelineRunIdstringThe pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. Default value is None.
startActivityNamestringIn recovery mode, the rerun will start from this activity. If not specified, all activities will run. Default value is None.
startFromFailurebooleanIn recovery mode, if set to true, the rerun will start from failed activities. The property will be used only if startActivityName is not specified. Default value is None.

SELECT examples

Gets a pipeline.

SELECT
id,
name,
activities,
annotations,
concurrency,
description,
etag,
folder,
parameters,
policy,
runDimensions,
systemData,
type,
variables
FROM azure.data_factory.pipelines
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND factory_name = '{{ factory_name }}' -- required
AND pipeline_name = '{{ pipeline_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a pipeline.

INSERT INTO azure.data_factory.pipelines (
properties,
resource_group_name,
factory_name,
pipeline_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ factory_name }}',
'{{ pipeline_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Creates or updates a pipeline.

REPLACE azure.data_factory.pipelines
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND factory_name = '{{ factory_name }}' --required
AND pipeline_name = '{{ pipeline_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Deletes a pipeline.

DELETE FROM azure.data_factory.pipelines
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND factory_name = '{{ factory_name }}' --required
AND pipeline_name = '{{ pipeline_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Creates a run of a pipeline.

EXEC azure.data_factory.pipelines.create_run 
@resource_group_name='{{ resource_group_name }}' --required,
@factory_name='{{ factory_name }}' --required,
@pipeline_name='{{ pipeline_name }}' --required,
@subscription_id='{{ subscription_id }}' --required,
@referencePipelineRunId='{{ referencePipelineRunId }}',
@isRecovery={{ isRecovery }},
@startActivityName='{{ startActivityName }}',
@startFromFailure={{ startFromFailure }}
;