Forum Discussion
Deployment order for warehouse object using deployment pipelines
Hi,
in order to deploy a warehouse having named schemas, tables and views using deployment pipelins I've noticed that it doesn't seem exist an order to perform a such task and this causes errors.
It is very important that a deployment pipeline runs following the dependency order between warehouse objects. In general:
- first, deploying schemas;
- second, deploying tables;
- third, deploying views.
I think that deployment pipelines can be a very useful feature but they need to improve without having to use DevOps or Git.
Thanks
3 Replies
- Zanqueta
Super User
Hi pmscorca,
You are absolutely correct: deployment pipelines in Fabric currently do not enforce dependency order for warehouse objects (schemas β tables β views). This is a known limitation because pipelines treat objects as independent artefacts, and the deployment engine does not analyse dependencies.β Recommended Workarounds
- Manual Sequencing in Pipelines
- Break the deployment into three steps:
- Step 1: Deploy schemas.
- Step 2: Deploy tables.
- Step 3: Deploy views.
- This can be done by creating separate pipeline stages or using deployment rules to exclude certain objects in each stage.
- Break the deployment into three steps:
- Use SQL Scripts with Ordered Execution
- Instead of relying on object-level deployment, use a single SQL script that:
- Creates schemas first.
- Creates tables next.
- Creates views last.
- Add this script as a pipeline task in the deployment stage.
- Instead of relying on object-level deployment, use a single SQL script that:
- Alternative: Git Integration
- If you use Git integration, you can manage dependencies in your repository and control the order via CI/CD tools (Azure DevOps or GitHub Actions).
- This is currently the most robust option for complex dependency management.
Please, see the documentation:
Overview of Fabric deployment pipelines - Microsoft Fabric | Microsoft Learn
If this response was helpful in any way, Iβd gladly accept a πmuch like the joy of seeing a DAX measure work first time without needing another FILTER.
Please mark it as the correct solution. It helps other community members find their way faster (and saves them from another endless loop π.
- pmscorca
Post Prodigy
Hi, it would be a good thing if deployment pipelines improved without having to use DevOps or Git!
Thanks
Update: it seems that for a warehouse the deployment pipelines don't support the rules.
Is it appropriate to create an idea?
I've voted this idea Deployment pipeline: full and "intelligent" support to deploy a warehouse : please vote it, thanks
- AnonymousNot applicable
Hi pmscorca ,
Thanks for creating this thread and sharing your thoughts on the deployment pipeline improvements. We really appreciate you bringing this to the community. If you have any more questions or need help with anything related to this topic, please feel free to reach out to us.
Thank you.