Power Platform Pipelines ALM Guide
Power Platform Pipelines ALM Guide
Table Of Contents 2
Create A Power Platform Pipeline ............................................................................................................................ 59
Create A New Power Platform Pipeline ......................................................................................................................... 59
Link A Development Environment To The Power Platform Pipeline ............................................................................. 62
Add A Test Environment Deployment Stage To The Pipeline ........................................................................................ 65
Configure A Production Environment Deployment Stage ............................................................................................. 68
Table Of Contents 3
Add Entra ID User & Deployment Stage Lookup Columns ........................................................................................... 125
Setup The Deployment Stage Approver Main Form .................................................................................................... 128
Configure The Test Deployment Stage Approver ........................................................................................................ 130
Assign The Production Deployment Stage Approver ................................................................................................... 135
Create A Power Platform Pipelines Approval Cloud Flow............................................................................................ 140
Get The Deployment Stage Approvers ........................................................................................................................ 142
Obtain The Approvers User Principal Name ................................................................................................................ 144
Send An Deployment Stage Approval To Teams.......................................................................................................... 145
Approve Or Reject The Request For Deployment ........................................................................................................ 146
Deploy The Solution To The Test Deployment Stage ................................................................................................... 148
Table Of Contents 4
Introduction
Welcome to The Complete Power Platform Pipelines ALM Setup Guide.
In this guide you will learn how to setup Power Platform Pipelines and the Dataverse Git Integration. I have spent the
past 5 years teaching Power Platform ALM best-practices and using them in my own projects. Now I want to share the
knowledge I’ve gained in this set of easy-to-understand, practical instructions.
Power Apps Pipelines already have official documentation by Microsoft. So why did I make my own? A few reasons:
• I wanted a guided-tutorial that anyone could understand which includes clear directions and lots of pictures.
• This tutorial can be continuously improved as new Power Apps Pipelines & ALM features hit "general
availability"
• Readers can leave comments on my website describing their own best practices which I can incorporate into
future versions
I hope you enjoy my Power Automate Coding Standards For Cloud Flows.
Introduction 5
Create Power Platform Managed
Environments For Dev-Test-Prod
The basic set of Power Platform managed environments required by ALM best practices are a development
environment, a test environment and a production environment. A development environment is where makers create
the solution. The test environment is where quality assurance testers and end-users test the solution. And the
production environment where end-users operate a live version of the solution.
• Name: choose a name for the environment and use the suffix (DEV). This will let developers know they are in a
development environment
• Make this a Managed Environment: select Yes. To use Power Platform Pipelines the environment must be a
managed environment
Test Environment
• Type – Sandbox
• URL – companyname-purpose-test
Production Environment
• Type – Production
• URL – companyname-purpose-prod
Once the solution import is completed the last successfully installed version and last deployed date will appear in the
production stage card.
Go to the Pipelines Host environment and create a new solution named Pipelines Extensions.
Also, in the no condition perform the same unbound action with an Approval Status of 30 (rejected). Although it is not
necessary in this scenario we have setup the no condition to understand how do it.
Go to the Pipelines menu for the sample solution and press the deploy here button to deploy the solution to the test
environment.
Start by adding a Dataverse - Get A Row By ID Action and target the Deployment Stage Runs table. Use the StageRunId
from the trigger as the Row ID. Then insert another Dataverse - Get A Row By ID action with the Deployment Stages
table. Supply the deployment stage id from the previous action in the Row ID field.
Write this code in the Filter Rows field to get all approvers with a matching deployment stage.
_new_deploymentstage_value eq @{outputs('Get_a_row_by_ID:_Deployment_Stage')?['body/deploymentstageid']}
Initialize a string variable named varStageApprovers. Then for each deployment stage approver,use the Office 365 Users
- Get User Profile (V2) action and supply the Entra User ID to retrieve the user principal name. Append each user
principal name to the string variable with a semi-colon at the end.
• Details: Please approve deployment of the <Artifact Name> solution to the <Deployment Stage Name> stage.
In the no condition perform the same unbound action with an Approval Status of 30 (rejected).
• Solution – YourSolutionName
• Branch – main