I am trying to create multiple pipelines and datasets.
Some pipelines contain activities that use some of the datasets.
Let's say pipeline P contains a lookup activity that ueses a dataset D.
While running the deployment of the template via Azure DevOps ARM deployment task, I noticed that sometimes it fails because of this error:
[error]BadRequest: The document creation or update failed because of invalid reference 'D'.
My guess is that it tries to create the pipeline P before creating the dataset D. But P depends on D that is why it is failing.
My question is:
Is my guess correct ? If yes how can I tell the script to create the dataset before creating the pipeline ?
Thank you.