Setting up Pipelines in Power Platform

 


Set up Pipelines in Power Platform



What is Pipelines for Power Platform?

Pipelines in Power Platform are a set of features designed to simplify the management of the application lifecycle for Power Platform and Dynamics 365 customers. Traditionally, ALM has been a complex and technical process that requires expertise in various areas like coding, deployment, and infrastructure. With the introduction of pipelines, all makers, admins, and developers can now automate their ALM processes, reducing the time and effort required to deploy applications and updates.

One of the key benefits of pipelines is the ability to achieve continuous integration and continuous delivery (CI/CD), which allows for faster and more frequent releases of updates and new features. This is achieved by automating the build, test, and deployment phases of the application lifecycle, ensuring that changes are thoroughly tested and approved before being released into production.

By democratizing ALM, pipelines in Power Platform provide a more approachable and user-friendly way for all stakeholders to manage their applications. This allows for more efficient collaboration between different teams, reducing the risk of errors and ensuring a faster time-to-market for new features and updates.


Benefits:

Pipelines bring significant benefits to teams or organizations looking to adopt healthy, automated ALM (Application Lifecycle Management) processes. With pipelines, the effort and expertise required to achieve a good return on investment (ROI) for ALM is significantly reduced.


Admins can now quickly and easily set up automated deployment pipelines in just a few minutes, as opposed to the days or weeks previously required. This makes it easier to manage deployments and updates, reducing the time and effort required.


For makers, pipelines provide an intuitive user experience that simplifies the process of deploying their solutions. This allows for faster testing and iteration, making it easier to bring new features and updates to market.


Professional developers also benefit from pipelines, as they can optionally run pipelines using their preferred tools, such as the Power Platform command line interface (CLI). This provides a more customizable and flexible approach to managing ALM, enabling developers to tailor their workflows to their specific needs.



Create a Pipeline:

Power Platform administrators can create one or more pipelines, associate any number of environments, then share access with those that will administer or run pipelines.


Choose Environments for Pipelines:

Development environment. This is where you’ll develop solutions. A pipeline can be run from within any development environments linked to it.

·                                  Target environment. The destination environment(s) a pipeline deploys to. For                             example, integration testing, UAT, production, etc.



Steps:


1: Install the Pipelines Application in your Host Environment.

    a) Go to Power Platform Admin Center.



    b) Click on Environments from the Left Navigation.



    c) Select the Host Environment (Which will contain all the configuration for the pipelines).



    d) Click on Resources > Dynamics 365 Apps.



    e) Click on Install Apps and choose Power Platform Pipelines from the list.



    f) Click Next > Agree to the terms & Install.
        
Power Platform Pipelines will be installed in your Environment and will be available in the Apps List.


2: Configure a Deployment Pipeline

Copy and paste the environment IDs of all environments participating in the pipelines to a clear text editor such as Notepad. You’ll need these later. More information: Find your environment and organization ID

1.     Once the Deployment Pipeline package installation has completed, go to Power Apps, then select the dedicated host environment (where you installed the application).

2.     Play the Deployment Pipeline Configuration app.



3.     Select Environments on the left pane, and then select New to create the environment records in Dataverse:




·        Name: Enter the name for the environment record. It's a good idea to include the same name as the actual environment, such as Contoso Dev.

·        Environment Type: Select either Development Environment or Target Environment. Select Development Environment for all source environments where unmanaged solutions will be developed. Select Target Environment for QA and production environments where the managed solution artifacts will be deployed.

·        Environment Id: Paste in the environment ID that you copied in the earlier step.

4.     Select Save.

5.     Refresh the form, then verify Validation Status equals Success.

6.     Repeat steps 4-6 until all environments that will participate in the pipeline have environment records created.

7.     Select Pipelines on the left navigation pane, and then select New to create a new deployment pipeline:



·        Name: Enter a name for the pipeline, such as Contoso Standard Deployment Pipeline or Contoso Hotfix Pipeline.

·        Description: Optionally, enter a meaningful description for the pipeline. 

8.     Within the Linked Development Environments grid, select Add Existing Development Environment, then associate one or more development environments. Note that a pipeline must have at least one development environment and one stage before it can be run. 

9.     Within the Deployment Stages grid, select New Deployment Stage, to display the quick create pane. 

10.  Enter the details for each stage, and then select Save and Close:

·        Name: The name of the stage.

·        Description (optional): Optional description for the stage.

·        Previous Deployment Stage (optional): Specifies a deployment stage that must be deployed to before deploying to the current stage. For example, when creating a production stage, you can add the test stage as the Previous Deployment Stage. Note that for the first stage, or pipelines containing only one stage, this should be left blank.

·        Target Deployment Environment: This is the target environment where this stage will deploy to.

11.  Repeat the previous two steps for each stage you'd like to add to the pipeline. Note that you must have at least one stage. You can add up to seven stages.


Grant access to edit or run pipelines

Pipeline security is managed within the host environment by assigning security roles. Additionally, users must currently have access to all environments associated with a pipeline in order to create or run the pipeline.

When you installed the Power Platform pipelines application, two security roles were added:

·        Deployment Pipeline User: Has privileges to run pipelines that have been shared with them.

·        Deployment Pipeline Administrator: Has full control over all pipeline configuration, without needing system administrator security role membership.

Share pipelines with makers

The Deployment Pipeline User security role grants access to run one or more pipelines. It doesn't grant access to create, edit, or delete pipelines. Users with the Deployment Pipeline User security role won't see the host environment within the environment picker in Power Apps or Power Automate, or otherwise need to be aware of it.

To share pipelines:

·        Assign makers the Deployment Pipeline User security role within the host environment. This security role is installed with the Power Platform pipelines application. More information: Assign a security role to a user

·        In the deployment pipeline configuration app, Share the pipeline record with makers (or Azure Active Directory groups). Read privilege is sufficient to view and run a pipeline from within the development environment. More information: Share rows with a user or team

·        Makers must also have privileges to export solutions from the source development environments, as well as privileges to import solutions to the target test and production environments for which the pipeline deploys to. By default, system customizer and environment maker roles have these privileges.

 
 Run a Pipeline


Unfortunately this blog has already gotten too lengthy. You can leverage the Microsoft Learn Link down below to reference how to run a Pipeline.



I hope you found this blog insightful. Do share it and give it a thumbs up. That'll keep me motivated. 



Comments