DEV Community

Zero
Zero

Posted on

Power Platform Connect to Git

Happy New Year to all. Microsoft has deliver some new improvement for Power Platform source control that now automate some of the things we have been practicing when we implement CI/CD.

There is now an ability to connect solutions to Git (only works on Azure DevOps on the same tenant).
Image description

It could be MVP or by design, they only offer a Create without ability to Edit the connection or even remove it if you change your mind. It will ruin your environment as it will locked you down into the DevOps project and Git repo that you setup, so be very careful when doing this on an actual DEV environment. There is no UNDO, they warn you too. Hopefully they allow people to UNDO in future releases. You cannot even change the branch once you connected a solution to Git.

What it Does?
Basically, it detects changes to any configuration made in the solution; where you can then commit from the solution into the Git branch setup.

It will unpack (THE UNPACKING IS IN YML too, not the old school XML) into the branch. Best to link it to your develop branch (I was lazy and tested it on MAIN, and I am stuck with it now).
Image description

The code sync works both way too, you can make direct changes to the YML and pull it into the solution. Changing in Git Repo and Configure might cause conflict (have not tested how this works), so that is going to be a way of working to be define.
Image description

We can now revisit how we implement our CI/CD process; Bake in this new functionality which unpacks the solution into the branch.

Cons
It does not allow feature branching strategy. People might still stick with the current process of manually exporting and unpacking it.

Another issue is, you have no way to pick and choose which configuration you want to commit, it will commit all changes it detects, so changes by other developers will also go under your name when you are committing.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay