Azure / Azure/Azure-DataFactory
How can we Invoke-AzDataFactoryV2Pipeline with our current branch code (not what is on the collaboration branch/live mode)
- Dominant language
- PowerShell
- Stars
- 529
- Forks
- 623
- PR merge metrics
- No merged PRs in 30d
Description
Hi all, we need to be able to start a Pipeline but with the ADF pipeline from our current branch (not from collaboration branch - master). This allows us to change both ADF as well as other aspects of our code at the same time and our CICD testing tools will use the current branches version of the ADF instead of the version that is in the collaboration (master) branch
Clearly ADF can do this on a single instance as it is what happens when you invoke a pipeline through the adf web UI in git mode, but we are trying to do this via powershell instead for CICD reasons
I can see that Invoke-AzDataFactoryV2Pipeline has an -InputObject property which seems to suggest that we can provide a custom package instead of a named pipeline on the existing ADF instance - perhaps this is the answer?
If so I can't work out how to take our current ADF structured folder of json documents and convert this into the [PSPipeline Class](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.commands.datafactoryv2.models.pspipeline?view=az-ps-latest) that it needs. Willing to bet one of you guys can unlock that step for us. Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.