research-spoke/spoke-modules/airlock/content/StartAdfTriggers.ps1 (12 lines of code) (raw):
param(
[Parameter(Mandatory = $true)]
[string]$ResourceGroupName,
[Parameter(Mandatory = $true)]
[string]$AzureDataFactoryName,
[Parameter(Mandatory = $true)]
[string]$SubscriptionId
)
# Connect to Azure with the UAMI of the deploymentScript
Connect-AzAccount -Identity -Subscription $SubscriptionId
# Start all triggers in the Data Factory instance
Get-AzDataFactoryV2Trigger -DataFactoryName $AzureDataFactoryName -ResourceGroupName $ResourceGroupName | Start-AzDataFactoryV2Trigger -Force | Out-Null