Skip to main content
Version: v1.0.0

Azure Data Factory

Installation

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

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

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"
# Started Azure Data Factory trigger 'my-data-factory-trigger-name' of data factory 'my-data-factory-name' in resource group 'my-resource-group'
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"
# Stopped Azure Data Factory trigger 'my-data-factory-trigger-name' of data factory 'my-data-factory-name' in resource group 'my-resource-group'
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'.