Install the module Az.DataFactory based on the error message
Invoke ADF pipeline using powershell script
i have run the below code but it does not seems to be. i'm geting below rerror
Invoke-AzDataFactoryV2Pipeline : The term 'Invoke-AzDataFactoryV2Pipeline' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
Login-AzureRmAccount
Select-AzureRmSubscription -Subscription "yourSubId"
$dfname = "youDataFActoryName"
$rgName = "yourResourceGroupName"
$pipe = "pipeName"
Invoke-AzureRmDataFactoryV2Pipeline -DataFactoryName $dfname -ResourceGroupName $rgName -PipelineName $pipe
Azure Data Factory
Windows for business | Windows Server | User experience | PowerShell
2 answers
Sort by: Most helpful
-
Nandan Hegde 36,716 Reputation points MVP Volunteer Moderator2023-01-18T08:04:23.4266667+00:00 -
PRADEEPCHEEKATLA 91,496 Reputation points Moderator2023-01-18T10:24:28.29+00:00 Hello @Josh,
Thanks for the question and using MS Q&A platform.
You are experiencing this issue due to -
The AzureRM PowerShell module is no longer recommended as this modules has been deprecatedTo resolve this issue - I would suggest you to use
The Az PowerShell module is the recommended PowerShell module for managing Azure resources on all platformsLogin-AzAccount Select-AzSubscription -Subscription "bXXXXX-XXXXXX-XXXXXX-XXXXf" $dfname = "chepra" $rgName = "Analytics-Resources" $pipe = "TestingCopy" Invoke-AzDataFactoryV2Pipeline -DataFactoryName $dfname -ResourceGroupName $rgName -PipelineName $pipeI'm able to Invokes a pipeline to start a run for it using the above powershell script.
Successfully able to run the pipeline using the above command.
For more details, refer to Invoke-AzDataFactoryV2Pipeline
Hope this helps. Do let us know if you any further queries.
Please don’t forget to
Accept Answerand wherever the information provided helps you, this can be beneficial to other community members.