I have been an Azure DevOps enthusiast for years. The ease of use and flexibility of the platform are super. In this article I am sharing my not-so-complex take on deploying a Power Platform Solution across environments. I will explain how to use a repo, build pipeline and release to different environments.

Repos

There is no need to download the solution in a repo if you are not going to manipulate the source / zip file. Using the repo for the deployment settings json file is a good practice as these are configurations that are not managed in the solution. This way you can have version control over the deployment settings. The solution versions are managed in Power Platform or you can roll back from the artifact.

image

Pipelines - build artifact

I see pipelines as a means to create a deployable artifact of deployable item. So for me it can be limited to the steps to collect and package the components that need to be deployed. You can either schedule this or start this manually if you are ready to deploy.

pipeline actions

artifact content

This package contains everything you need to deploy to any environment. So even if you want to roll back the development environment you can do it with this package.

Pipelines - Release

The release stages are set up from the build output / artifact. Everything is in the artifact, there is no need for other sources. In this example we have three environments to deploy. This can be across tenants if needed. We use the service connections for the connections.

release stages

As far as actions go. Always install the tool on the agent and import the solution using the deployment settings json file we configured in the repo.

stage actions

deployment settings

That’s it. No need to overcomplicate.

Hope this helps! Feel free to reach out on LinkedIn.

Also check out this post if you are interested in Azure DevOps! Boosting Efficiency Docs-as-Code Strategies with Power Platform and Azure DevOps or this https://learn.microsoft.com/en-us/shows/devops-lab/how-to-deploy-power-platform-with-azure-devops

My focus is on structuring, automating and managing business processes using Agile and DevOps best practices. This creates working environments where business continuity, transparency and human capital come first. Reach out to me on LinkedIn or check out my github or blog for more tips and tricks.


The ideas and underlying essence are original and generated by a human author. The organization, grammar, and presentation may have been enhanced by the use of AI.