Forum Discussion
Deployment order for warehouse object using deployment pipelines
Hi pmscorca,
β 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 π.
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