Power Apps  

Setting Up CI/CD in Power Platform Using Power Platform Pipelines: A Step-by-Step Guide

Overview

This blog provides a comprehensive, step-by-step guide to set up CI/CD pipelines in Power Platform using Power Platform Pipelines. It walks you through creating development (SBX) and production environments, installing necessary components, and deploying solutions seamlessly between environments using the Deployment Pipeline App.

20260408_1435_Image Generation_simple_compose_01knp5dqb2fj3sxtp74e9tn61s

Power Platform Pipelines simplify the Application Lifecycle Management (ALM) process by automating the deployment of solutions between environments such as Development, Test (UAT), and Production. In this tutorial, you will create a solution and app in a Sandbox environment and deploy it to a Production environment using Power Platform Pipelines. All steps are outlined clearly, with supporting UI instructions and are beginner-friendly.

Step-by-Step Instructions

1. Create Two Environments – Development and Production

  • Environment Names: Assign meaningful names like SBX Environment (for development) and Prod Environment.

  • Region: Select your preferred region.

  • Environment Type: Choose Sandbox or Production.

  • Dataverse: Enable Dataverse data store → YesNext.

  • Security Group: Select NoneSave.

Create Environments

2. Open Power Apps

3. Open Power Platform Admin Center

  • On the left nav pane, click Power Platform, then select Power Platform Admin Center.

Power Platform Admin Center
  • Go to Environments.

4. Access Dynamics 365 Apps

There are two ways to access Dynamics 365 apps:

  • Method 1: Choose Resources > Dynamics 365 apps after clicking the ellipsis (...) next to SBX.

Method 1 Dynamics 365 Apps
  • Method 2: After selecting the SBX environment, select Resources > Dynamics 365 apps from the menu at the top.

Method 2 Dynamics 365 Apps

5. Install Power Platform Pipelines

  • In the top navbar, click Install app.

  • In the right pane, scroll down to Power Platform PipelinesNext.

Install Power Platform Pipelines
  • In the next panel, check the box: "I agree to the terms of service"Install (This will take a few minutes).

Agree to Terms
  • After successful installation, it will redirect to Dynamics 365 Apps.

Successful Installation

Note: If it's already installed, you can skip this step.

6. Create a Solution and App in SBX Environment

  • Go to Solutions.

  • Create a new solution named “Pipeline Demo”Create.

Create a Solution
  • Inside the solution, click App > New App > Choose either Canvas (add data source, lists, tables) or Model-driven (use existing Dataverse tables).

New App
  • Name the app: “Pipeline Demo App”Create.

Name App
  • Save and Publish the app.

Publish App

7. Copy Environment IDs

  • Go to Power Platform Admin Center.

  • Click on SBX and Prod environments.

  • Copy the Environment ID for both.

Copy Environment IDs

8. Open Deployment Pipeline App

Deployment Pipeline Configuration

9. Add Environments to Pipeline App

  • In the app, click Environments from the left pane → New.

New Environment

For the SBX Environment:

  • Environment Type: Development Environment.

  • Environment ID: Paste SBX ID from Step 7 → Save.

SBX Environment IDSBX Environment Saved

Repeat for Production:

  • Environment Type: Target Environment

  • Environment ID: Paste Prod ID

Prod Environment

It may take a few minutes for the validation status to change from Pending to Ready.

Validation Status Ready

10. Create a New Pipeline

  • Go to Pipelines in the left pane.

  • Click + New Pipeline, provide a Pipeline Name, and click Save.

New Pipeline

11. Link Development Environment

  • Under the pipeline, go to Linked Development Environments.

  • Click the ellipsis (...) → Add Existing Deployment Environment.

Add Existing Deployment Environment
  • Select the SBX record and click Add.

Select SBX Record

12. Create Deployment Stage

  • Click Deployment Stages+ New Deployment Stage.

New Deployment Stage

Fill the form:

  • Name: (e.g., Deploy to Prod)

  • Pipeline: Select your pipeline (SBX to Prod Pipeline)

  • Target Deployment Environment ID: Select Prod environment ID (Prod Env) → Save.

Save Deployment Stage

13. Assign Permissions (Optional)

  • Go to Deployment Stage → click ellipsis (...) → Share.

Share Deployment Stage
  • In the right pane, search and add your team member or security group.

  • Assign appropriate permissions → Share.

Assign PermissionsPermissions Shared

14. Deploy Solution from SBX to Prod

  • Go to SBX Environment > Solutions:

SBX Solutions
  • Option 1: Click the ellipsis (...) on Pipeline DemoDeploy.

Option 1 Deploy
  • Option 2: Open Pipeline Demo, then click the Pipelines icon in the left pane.

Option 2 Pipelines Icon
  • Select the pipeline → click Deploy Here.

  • In the deployment panel, click Next → then Deploy.

Deploy HereDeployment Panel
  • Wait for the deployment to finish. A successful run is indicated when the deployment status shows as Deploy Success.

Deploy Success

15. Verify in Production

Managed Solutions
  • Verify your application is available.

Verify in Production

Conclusion

This detailed guide walks you through configuring Power Platform Pipelines from a development (Sandbox) environment to production. With the Pipeline app, ALM becomes simple, scalable, and more consistent. From environment setup to final deployment, establishing these steps will help your team manage their Power Platform solutions more efficiently.