Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
Fabuser_123
Frequent Visitor

Automate the deployment pipelines programmatically(CICD)

I have two envs dev and prod. I am using deployment pipelines to deploy the changes from dev to prod. I want the process to be automated. Also, need to set up the deployment rules to change the vaiables between dev and prod. Can I get the detailed steps on how to implement this. 

 

I also want to automate the deployment to dev when my PR is merged to the main branch and changes are updated automatically to dev workspace.

 

Thanks in advance.

7 REPLIES 7
v-tsaipranay
Community Support
Community Support

Hi @Fabuser_123 ,

 

We haven’t received an update from you in some time. Could you please let us know if the issue has been resolved?
If you still require support, please let us know, we are happy to assist you.

 

Thank you.

v-tsaipranay
Community Support
Community Support

Hi @Fabuser_123

 

Thank you for providing the update. I appreciate you and will reach out to you again after a week to follow up on the progress.

v-tsaipranay
Community Support
Community Support

Hi @Fabuser_123 ,

Thanks for reaching out to the Microsoft fabric community forum.

 

Could you please let us know if the issue has been resolved? I wanted to check if you had the opportunity to review the information provided by @KevinChant , @svenchio and @tayloramy  . If you still require support, please let us know, we are happy to assist you.

 

Thank you.

HI, Thanks for checking. I will mark it as resolved once I implement the soution, which might take a few weeks.

 

Thanks

svenchio
Continued Contributor
Continued Contributor

Hi @Fabuser_123  this is a very big as ask  😅! I abstracted from your description these two requests  ... 

 

#1. How to automate a feature deployment using Fabric deployment pipelines (on git merge, trigger deployment stage dev>prod) 

#2. How to set up the deployment rules to change environemnt specific variables between dev and prod

 

If this is correct, let's tackle one at a time because the techniques and process are different, just contributing to the same goal. 

 

#1.

I'm going to assume you are using MSFT DevOps, in my blog some time ago, i published something similiar, I recorded a video 

showing how to Automating workspace updates using Fabric's 'Update From Git' REST API here's the link https://www.techtacofriday.com/automating-workspace-updates-using-fabric-api/  this is very close of what you're trying to achieve, you can take the code that pushes changed to the source and add a new process to trigger the deployment pipeline stage using API calls using these steps: 

 

Step #1. first you need to identify your deployment pipeline via Deployment Pipelines - Get Deployment Pipeline - REST API (Core) | Microsoft Learn 

Step 2. Then get the ID of your pipeline and get its stages via  Deployment Pipelines - List Deployment Pipeline Stages - REST API (Core) | Microsoft Learn

Step 3. Get the stage ID that correspond to dev>prod and deploy the state via Deployment Pipelines - Deploy Stage Content - REST API (Core) | Microsoft Learn  

 

#2.

For this one, there are basically two methods, using variable libraries, I also recently published a video on my blog on this topic  Deployment Pipelines in Fabric: The Right Way to Handle Lakehouse Shortcuts  and the second is DEPLOYMENT RULES, and I also have a video for you on this topic here Demystifying Fabric Deployment Pipelines 

 

Plenty of information to digest, right? I hope you find it useful, THERE'S A LOT OF MATERIAL AND TECHNIQUES IN THIS RESOURCES! The good thing is that is all on my blog and created by me, so, if you have a specific question on any of the videos or code, subscribe and give me a ping! If you find this information useful, WOULD YOU MIND GIVE ME A KUDOS?! I appreciate  and if this solve your problem, mark this as a solution for other people looking for the same info. 

tayloramy
Community Champion
Community Champion

Hi @Fabuser_123

 

See this blog post about deployment pipelines, Kevin does a great job at explaining them: 
Fabricators guide to Microsoft Fabric deployment pipelines - K Chant

 

If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution. 

I do my best. Just to add to this, if you are looking to automate the deployments to different stages in a deployment pipeline you'll probably want to go through this post which covers how to do it in Azure DevOps using the PowerShell script provided by Microsoft:

 

https://www.kevinrchant.com/2024/07/06/utilize-the-deploymentpipelines-deployall-powershell-script-a... 

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.