Forum Discussion
Azure devops pipeline to push code to fabric
- Anonymous1 year ago
Hi Debitsme,
Thank you for reaching out to Microsoft Fabric Community Forum.
Microsoft Fabric’s updateFromGit API only supports GitHub and requires a user PAT, so it doesn’t work with Azure DevOps or service principals — limiting full CI/CD automation from DevOps.
Instead of using the Fabric updateFromGit API, we can deploy our Power BI content — saved as .pbip (Power BI Project) or .pbix files — directly to the Fabric workspace using the Power BI REST API.
This works well with Azure DevOps, is secure, and it's 100% automated.
For reference: https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/pipeline-automation
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
Vinay Pabbu - 1 year ago
Hi Debitsme,
You can use the Fabric CI/CD package to streamline your deployment process. The fabric-cicd Python library is designed for deploying Microsoft Fabric items from a repository into a workspace. It supports various authentication methods, including user tokens, SPN, Managed Identity, etc. , and can help automate your CI/CD workflows.
Key Features of the Fabric CI/CD Module:
- Easy Configuration: Provide the target workspace ID, the local directory to deploy from, and the desired item types.
- Parameterization: Change environment-specific values at the time of deployment.
- Authentication: Supports all Azure TokenCredential methods (User, SPN, Managed Identity, etc.).
- Debuggability: Enable debugging to see all outbound API calls.
- Item Types: Supports Notebooks, Environments, Data Pipelines, Semantic Models, and Reports, with more to come based on community priorities.
You can build an Azure DevOps pipeline to integrate this package, ensuring a seamless and automated deployment process.
you can check the following documentation:
Introducing fabric-cicd Deployment Tool | Microsoft Fabric Blog | Microsoft Fabric
GitHub - microsoft/fabric-cicd: Jumpstart CICD deployments in Microsoft Fabric
Getting Started - fabric-cicd
Best Regards,
Shreya
Hi Debitsme, our team is working on releasing the SPN support for Azure DevOps in the upcoming weeks.
Stay tune.
Thanks