How to integrate powerapps with azure devops
Asked Answered
A

5

6

I am doing some research for Powerapps integration with Azure DevOps.

However there is limitated information for it.

It is possible to integrate powerapps inside a Task for AzureDevops?

Based on, that we have a .zip file with the Powerapp, and we want to create a Build and Release/Deploy for several environments.

Thank You.

Argentum answered 7/5, 2019 at 18:57 Comment(2)
Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.Danish
Hello, there is now a solution to this. I've posted an answer here: https://mcmap.net/q/1610934/-how-to-integrate-powerapps-with-azure-devops Feel free to accept it as an answer in case it helps.Titanite
T
12

It is possible to integrate powerapps inside a Task for AzureDevops?

Yes it is. You can leverage the Solution concept of the Microsoft Power Platform and the Power Apps BuildTools (preview) extension for Azure DevOps.

Update 11/2020: This is now GA and called Power Platform Build Tools

I've written a complete step-by-step guide on this topic:

A Continuous Delivery Approach for No-Code Solutions in Microsoft’s Power Platform

Bottom line:

With this build tool, you can automatically check-in a Solution into source control and deploy it using a continuous delivery approach with the help of Azure DevOps. See the screenshot for a sample configuration of the Export and Import Solution Task.

Power Apps Export BuildTools Task in Azure DevOps

Power Apps Import BuildTools Task in Azure DevOps

It works for everything you can organize inside a Solution, e.g.:

  • Power Apps
  • Power Automate Flows
  • AI Builder Models
  • Common Data Service Entities
Titanite answered 3/5, 2020 at 17:59 Comment(3)
thank you for the article. Please, is there a way we can also set parameters? For ex.: different urls, or data sources?Companionship
Hello @Companionship - Parameters inside Azure DevOps or the Power Platform content? You might looking for the „environment variables“ concept inside Power Platform. Contact me by mail or LinkedIn.Titanite
thank you Sebastian, I will reach out to you on LinkedIn :) I will look into environment variables for power apps - colinvermander.com/2019/10/30/…Companionship
D
3

It is possible to integrate powerapps inside a Task for AzureDevops?

I am afraid there is no such Task integrate powerapps for AzureDevops at this moment.

If you want to integrate powerapps with azure devops, you can follow the guide step by step:

Microsoft Teams – Integration with Visual Studio Team Services using PowerApps.

Besides, AFAIK, PowerApps should not be "Build/Deployed" through Azure Devops.

When you are developing with PowerApps, there is no way to do Source Control. There are no source files. The only artifact you can version control is the .zip file that you can export.

And

In PowerApps, you don’t have to build your code. Any change you make to the application is live for you to test it. In that way it is very productive. To publish the application you just click on the publish button and it is live.

Check this great blog: PowerApps From A DevOps Perspective for some more details.

Hope this helps.

Danish answered 8/5, 2019 at 3:45 Comment(1)
Hi there. This is no longer the case. I've written an alternative answer: https://mcmap.net/q/1610934/-how-to-integrate-powerapps-with-azure-devopsTitanite
G
1

Solutions are a way to package your components in a single zip file and use Powerapps build tools to import your solution on to a different environment or tenant.

It is still a an improvement from manually importing each app or environment variable and then import it on to target system, but it lacks what we call as automation of deployment.

To provide an eg, I will explain what I have done, and what still constitutes of a manual task:

  1. I created an enterprise level app using powerapp canvas model. My app consumes data from around 20 APIs. These API calls are implemented in power automate.

  2. We have 4 environments, dev, sit, uat and prod. Now I cant keep on importing flows in each environment and change their api URLs to point to the deployed environment. So I used environment variables for each environment which stores api URLs for each environment. This can be done under solution.

  3. Under the same solution, I added my app. So now my solution has 2 things, my app and the environment variable which consists of api URLs.

  4. I then use powerapps build tools to move this solution from dev to sit.

  5. Steps: use build tools tasks to perform the following

    1. Export solution
    2. Unpack it in git
    3. Pack it
    4. Import the solution.
  6. This successfully moves my solution to sit.

  7. But the solution environment variable still points to the dev url.

  8. So I have to override environment variables to store sit URLs.

This manual intervention to edit environment variable is as good as doing all the tasks manually.

Gott answered 7/5, 2019 at 18:57 Comment(1)
Can't you do the env variables (connections) editing in the release/deploy pipeline?Stilton
P
0

This was the case when PowerApps was first announced; however, this is no longer the case. While it is technically true that there is no actual code that would be managed and deployed with a PowerApp or Flow but that doesn't mean that you can not use the power of Azure DevOps. Additionally, when creating a PowerApp / flow you would also be creating entities and even Model Driven apps - and these uses solutions - which naturally work well to deplooy within Azure DevOps.

Microsoft is building out this whole construct to enable all these to deploy... While the whole incorporation of PowerApps and flows into Solutions is not fully baked yet - they are targeting to have this ready around the October time frame this year.

We have been talking to Microsoft about also enabling PowerApps and flows to follow the same expansion that solutions do so that they can take advantage of the full branching strategy.

So even though you would be simply exporting out zip files into your repo - you can still take advantage of the full devops pipeline which is highly recommended.

Parker answered 28/8, 2019 at 5:41 Comment(0)
P
0

Use this component, it still on preview mode but is working fine on my side

https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerApps-BuildTools

Panaggio answered 26/9, 2019 at 19:46 Comment(1)
Please don't just post some tool or library as an answer. At least demonstrate how it solves the problem in the answer itself.Asberry

© 2022 - 2024 — McMap. All rights reserved.