Setup Release Pipeline using Power Apps Deploy Package task in DevOps

Vishnu Shukla
Capgemini Microsoft Blog
3 min readMay 13, 2020

In this post, we will learn how to setup a release pipeline in Azure DevOps using OOB Microsoft Power Apps Deploy Package task, available in Power Apps BuildTool, assuming that build pipeline has configured properly to create a package and published to the artifacts. For details about how to create package for package deployer follow the Microsoft document link.

Prerequisites:

The Power Apps Build Tools can be installed into your Azure DevOps Organisation from the Azure Marketplace.

Once installed, all tasks included in the Power Apps Build Tools will be available to add into any new or existing pipeline, and are easily found by searching for ‘Power Apps’ (see below).

Power Apps BuildTools and Tasks

Create Release pipeline using Power Apps Deploy Package task

  1. Create Release pipeline and set the Artifact.
Release pipeline Artifact

2. Add first task Power Apps Tool Installer in release pipeline. Look for the Power Apps Tool Installer task.

Task search window

Once you add this task it will look like below. Details will be auto populated. You don’t need to make any changes in this task.

PowerApps Tool Installer task

3. Add second task Power Apps Deploy Package in release pipeline. Look for the Power Apps Deploy Package task in task search window and add it.

Power Apps Deploy Package task

As you see above you need to set the Environment URL and Package File details in Power Apps Deploy Package task.

Power Apps Environment URL: it’s the URL of your target organisation where package will get deployed. In order to add new environment details please do the below steps :

Click on Manage link which is next to Power Apps Environment URL. It will open a new window where you can setup the new Service connections for your target organisation.

Service Connection Area

Click on new service connections and select the connection type ‘Generic’

Service connection type

It will open the service connection details window. Set the details and save.

Go back to your task screen in release pipeline it will list out all the connections in Power Apps Environment URL drop down. If it does not appear then click on refresh. Select your target Environment as in selected Cap test Prod in Power Apps Deploy Package task mentioned in the image (Power Apps Deploy Package task).

Package File — It’s complete path of your package file. In my case it looks like:

$(System.DefaultWorkingDirectory)/_CapgeminiPackage/CapgeminiPackage/Capgemini.Xrm.PackageDeployment.dll

It’s all done. Save and Run the release.

Run Release Pipeline

Reference: you can get more details for Power apps tasks here .

Thanks for reading — I hope this helps!

Keen to work more with the Power Platform? Take a look at our open roles here and join the Microsoft team at Capgemini.

--

--

Vishnu Shukla
Capgemini Microsoft Blog

MS Certified Dynamics 365 + Power Platform Solution Architect | MS Azure | Dynamics 365 CE