LowCodeStacks™
Sign in

Deploy Power Platform solutions with Azure DevOps or GitHub

When to build a Power Platform deployment pipeline in Azure DevOps or GitHub instead of pipelines in Power Platform, how to connect it with a service principal, and the four steps every pipeline runs: export, unpack, check and import.

Azure + Power PlatformFix a problem7 min read

Checked against Microsoft Learn 8 sources · Updated By · drafted with AI help, checked by a personHow we write guides

Pipelines in Power Platform move a solution from development to test and production from inside the maker portal, and for many teams that's enough. You build a pipeline in Azure DevOps or GitHub when you need what those tools add: the solution's source in Git with reviewed changes, deployments to another tenant, your own approval gates, or Power Platform releases alongside the code they call. Microsoft provides the building blocks for both, the Power Platform Build Tools for Azure DevOps and GitHub Actions for Power Platform. This guide covers when to choose them, how they sign in, and the steps they run.

Ask whether you need any of three things: the solution's source in Git, with changes reviewed in pull requests; deployments to another tenant; or gates you already run, or Azure code that ships alongside the solution. If not, use pipelines in Power Platform: makers deploy from the solution's page, admins set up the stages, and approvals are available. If so, use Azure DevOps with the Power Platform Build Tools, or GitHub with GitHub Actions for Power Platform, signing in with a service principal. You don't have to pick one: pipelines in Power Platform can call Azure DevOps or GitHub, for example to commit each deployed version to a branch. An Azure DevOps or GitHub pipeline runs four steps: export the solution from development, unmanaged for source control and managed to deploy; unpack the unmanaged export into Git as readable files; check it with the solution checker; and import the managed solution into test, then production, with a deployment settings file filling in each environment's connection references and environment variable values. Deploy managed solutions everywhere except development.
Pipelines in Power Platform are enough until you need Git, another tenant or your own gates; then an Azure DevOps or GitHub pipeline runs four steps.

Start with pipelines in Power Platform

Pipelines in Power Platform need no Azure DevOps or GitHub at all: makers deploy a solution from its page, admins set up the stages, and approvals and service-principal deployments are available. They also store each deployed version, so you can redeploy an earlier one when that setting is on. Use Azure DevOps or GitHub instead, or alongside them, when:

  • The solution's source must live in Git, unpacked into readable files, so changes are reviewed in pull requests and you can see exactly what changed between releases.
  • You deploy to another tenant. Pipelines in Power Platform can't; Microsoft recommends Azure DevOps or GitHub for it.
  • Releases need gates you already run in Azure DevOps or GitHub, or the solution ships together with Azure code it depends on.

You don't have to pick one. Pipelines in Power Platform can be extended to call Azure DevOps or GitHub, for example to commit each deployed version to a branch.

If you find the ALM Accelerator in older guidance: Microsoft has deprecated it and points to pipelines in Power Platform instead.

Azure DevOps or GitHub

Azure DevOpsGitHub
What you installThe Power Platform Build Tools extension from the Visual Studio Marketplace (use version 2.0, built on the Power Platform CLI)Nothing: reference GitHub Actions for Power Platform in your workflow file
How it signs inA Power Platform service connection in the project settingsA service principal's details, stored as repository or environment settings
Recommended sign-inService principal with workload identity federation: no secret to store or renewService principal with OpenID Connect and a federated credential: no secret either (the actions call it a preview)
Good to knowDon't mix task versions in one pipelineRuns on Windows and Linux runners; needs an environment with a Dataverse database

Both cover the same solution steps, a solution checker step, and tasks to manage environments.

Connect with a service principal

  1. Register an app in Microsoft Entra ID for the pipeline. For Azure DevOps, prefer a service connection that uses workload identity federation; for GitHub, add a federated credential for OpenID Connect. Either way there's no secret to store. If you must use a client secret, note when it expires.
  2. Add it as an application user in every environment the pipeline touches (development, test, production), in the Power Platform admin center, with a security role that lets it export and import solutions.
  3. Create the connection: in Azure DevOps, a service connection of type Power Platform for each environment; in GitHub, the app ID and tenant ID on each GitHub environment, with id-token: write in the workflow (or a client secret stored as a secret, if you can't use OpenID Connect).

User name and password connections still exist, but they don't support multifactor authentication, so they break in any tenant that requires it.

The pipeline in four steps

  1. Export the solution from development, as unmanaged for source control and as managed to deploy. Use the solution's name, not its display name. Many teams first set the solution version from the build number, with the Set Solution Version task.
  2. Unpack the unmanaged export into source control. The exported zip isn't suitable for Git; unpacking turns it into files that show readable differences in a pull request. (The pack step turns those files back into a solution zip when you build from Git.)
  3. Check the solution with the solution checker step, which catches common problems before anything is deployed.
  4. Import the managed solution into test, then production. A deployment settings file fills in each environment's connection references and environment variable values, so nobody edits them by hand after the import.

Deploy managed solutions everywhere except development; Microsoft recommends it, and it keeps test and production from being edited directly.

To build these steps in Azure DevOps, with the YAML for both pipelines and a service connection that stores no secret, follow our step-by-step Azure DevOps setup. For GitHub, with sign-in that stores no secret, approvals and alerts, follow Power Platform ALM with GitHub Actions, end to end.

Things that catch people out

  • Managed Environments for pipeline targets. Starting in October 2026, when pipelines in Power Platform deploy to a target that isn't a Managed Environment, admins are notified and have 30 days to approve enabling it before further deployments to it are blocked.
  • The deploying identity owns what it deploys. Microsoft states it for pipelines in Power Platform: deploy with a service principal, and the service principal owns the deployed objects. Give it its role in each environment before the first run.
  • Client secrets expire, and a secret-based GitHub workflow or Azure DevOps connection stops when they do. Track the date, or use federation instead: workload identity federation in Azure DevOps, OpenID Connect in GitHub.

Sources

Add LowCodeStacks as a preferred source on Google

Did this fix it?

Get the weekly email

New guides and updates from LowCodeStacks, every Tuesday. One email a week, no more.

From LowCodeStacks, Regina, SK, contact@lowcodestacks.com. You can unsubscribe any time, from the link in every email or in your privacy settings. See the Privacy notice.

Comments

No comments yet. Share what worked for you.

Sign in to comment. Comments show under a display name you choose, never your email.