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.
Parameter | Mandatory | Description |
---|---|---|
ResourceGroupName | yes | The resource group containing the Azure Data Factory V2 |
DataFactoryName | yes | The name of the Azure Data Factory V2 |
DataFactoryTriggerName | yes | The name of the trigger to be enabled |
FailWhenTriggerIsNotFound | no | Indicate 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.
Parameter | Mandatory | Description |
---|---|---|
ResourceGroupName | yes | The resource group containing the Azure Data Factory V2 |
DataFactoryName | yes | The name of the Azure Data Factory V2 |
DataFactoryTriggerName | yes | The name of the trigger to be disabled |
FailWhenTriggerIsNotFound | no | Indicate 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'.