A few weeks back, I wanted to start an Azure Data Factory pipeline using PowerShell. It was the first time I tried that, and I thought it would be pretty simple: get the correct pipeline using Get-AzDataFactoryPipeline, supply all the parameters and pipe it to Invoke-AzDataFactoryPipeline. Something like:
1 |
Get-AzDataFactoryPipeline | Invoke-AzDataFactoryPipeline |
That, however, did not work. I got an error message stating that the resource was not found (HTTP Status Code NotFound, Error Code ResourceNotFound):
After double checking the commands and all parameters and for syntax errors and typos, I turned to the internet for help, but searching online didn’t provide an answer either. However, it turned out that the answer was pretty easy: for ADF version 2, you need to use the AzDataFactory V2 commands:
1 |
Get-AzDataFactoryV2Pipeline | Invoke-AzDataFactoryV2Pipeline |