Hi,
According to the error message, you need to run Connect-AzAccount to login before Set-AzDataFactoryV2Trigger and the second line starting with -DataFactoryName should be in the same line with Set-AzDataFactoryV2Trigger. If you wan to split a command into multiple lines, you have to append a backtick character ` to the first line
Set-AzDataFactoryV2Trigger -ResourceGroupName $RSG-EDMASAP-DEV `
-DataFactoryName $asap-dev-adf1 -Name "Tg_MCFSeg" -DefinitionFile "C:\Users\adm.Akhan\Documents\Tg_MCFSegment.json"
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.