shashank shekhar
shashank shekhar

Reputation: 162

Enable Schedule Trigger in Azure Data factory through poweshell script

I am enabling schedule trigger in data factory through powershell script in release pipeline of Azure DevOps.

I have written script as below:

$triggersADF | ForEach-Object { Start-AzureRmDataFactoryV2Trigger -ResourceGroupName -DataFactoryName -Name $_.name -Force }

But I am getting below error. The term 'Start-AzureRmDataFactoryV2Trigger' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. PowerShell exited with code '1'

How it can be done?

Upvotes: 0

Views: 167

Answers (1)

Nandan
Nandan

Reputation: 4925

Install/update latest AzureRM.DataFactoryV2 module. And then Restart your powershell.

Upvotes: 1

Related Questions