Skip to main content
Version: v0.4.3

Azure Data Factory

This module provides the following capabilities:

Installation

To have access to the following features, you have to import the module:

PS> Install-Module -Name Arcus.Scripting.DataFactory -RequiredVersion 0.4.3

Enabling a trigger of an Azure Data Factory pipeline

Enable a Data Factory V2 Trigger.

ParameterMandatoryDescription
ResourceGroupNameyesThe resource group containing the Azure Data Factory V2
DataFactoryNameyesThe name of the Azure Data Factory V2
DataFactoryTriggerNameyesThe name of the trigger to be enabled
FailWhenTriggerIsNotFoundnoIndicate whether to throw an exception if the trigger cannot be found (default: false)

Example

PS> Enable-AzDataFactoryTrigger -ResourceGroupName "my-resource-group" -DataFactoryName "my-data-factory-name" -DataFactoryTriggerName "my-data-factory-trigger-name"
# The trigger 'my-data-factory-trigger-name' has been enabled.
PS> Enable-AzDataFactoryTrigger -ResourceGroupName "my-resource-group" -DataFactoryName "my-data-factory-name" -DataFactoryTriggerName "unknown-data-factory-trigger-name" -FailWhenTriggerIsNotFound
# Error: Error retrieving trigger 'unknown-data-factory-trigger-name' in data factory 'my-data-factory'.

Disabling a trigger of an Azure Data Factory pipeline

Disable a Data Factory V2 Trigger.

ParameterMandatoryDescription
ResourceGroupNameyesThe resource group containing the Azure Data Factory V2
DataFactoryNameyesThe name of the Azure Data Factory V2
DataFactoryTriggerNameyesThe name of the trigger to be disabled
FailWhenTriggerIsNotFoundnoIndicate whether to throw an exception if the trigger cannot be found (default: false)

Example

PS> Disable-AzDataFactoryTrigger -ResourceGroupName "my-resource-group" -DataFactoryName "my-data-factory-name" -DataFactoryTriggerName "my-data-factory-trigger-name"
# The trigger 'my-data-factory-trigger-name' has been disabled.
PS> Disable-AzDataFactoryTrigger -ResourceGroupName "my-resource-group" -DataFactoryName "my-data-factory-name" -DataFactoryTriggerName "unknown-data-factory-trigger-name" -FailWhenTriggerIsNotFound
# Error: Error retrieving trigger 'unknown-data-factory-trigger-name' in data factory 'my-data-factory'.