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
2 answers
Sort by: Most helpful
-
-
PRADEEPCHEEKATLA-MSFT 90,146 Reputation points Microsoft Employee
2023-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 deprecated
To resolve this issue - I would suggest you to use
The Az PowerShell module is the recommended PowerShell module for managing Azure resources on all platforms
Login-AzAccount Select-AzSubscription -Subscription "bXXXXX-XXXXXX-XXXXXX-XXXXf" $dfname = "chepra" $rgName = "Analytics-Resources" $pipe = "TestingCopy" Invoke-AzDataFactoryV2Pipeline -DataFactoryName $dfname -ResourceGroupName $rgName -PipelineName $pipe
I'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 Answer
and wherever the information provided helps you, this can be beneficial to other community members.