@Olov Günther-Hanssen Sorry for delay. This has been identified as a bug which is causing the command to look for either -Parameter or -ParameterFile as an additional input to this command when using -InputObject. Product team has created an internal work item to fix this issue however provided the below workarounds to invoke the pipeline if you are using -InputObject :
- Invoke the pipeline with dummy parameters even if the pipeline doesn't use parameters as shown below :
$runId = Invoke-AzDataFactoryV2Pipeline $pipeline *-Parameter @{ Number = 1 }*
- Use the pipeline object to populate datafactory, resourcegroup and pipeline names
$runId = Invoke-AzDataFactoryV2Pipeline -DataFactoryName $pipeline.DataFactoryName -ResourceGroupName $pipeline.ResourceGroupName -PipelineName $pipeline.Name
Thanks for reporting this.
Please let me know if you have any questions.
Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.