microsoft / coe-starter-kit

Other
740 stars 216 forks source link

[ALM Accelerator - QUESTION] Can this app automate the actual deployment of solution to test environment? #8554

Open carusyte opened 2 months ago

carusyte commented 2 months ago

What is your question?

When I click the "Deploy" button in the app for a specific solution, it seems that it just create a pull request in the Azure DevOps, from main branch to UAT branch, for example.

And after I complete the PR in ADO, the Deploy progress indicator changes to green checkmark, but the solution is not actually imported into our UAT environment in Power Platform.

Is this the expected behavior by design? How could I actually deploy the committed solution to another environment?

What component are you experiencing the issue with?

ALM Accelerator Canvas App

What solution version are you using?

1.0.20240305.1

AB#3689

carusyte commented 2 months ago

I found this video which was published 3 months ago: Power Platform Solution Deployment Using Azure DevOps | CI/CD Tutorial for Beginners

It's using ADO classic pipelines, and seems nothing to do with the ALM Accelerator apps. Is this the recommended approach to do the deployment?

carusyte commented 2 months ago

Hi there, much appreciated if anyone could share any updates on this ticket. Specifically, when I tried to follow the official documentation and setup the profile using ALM canvas app and Admin App, I have been struggling for days with the following error when I deploy the solution in the ALM canvas app:

Error completing pull request (UpdatePullRequest): {"$id":"1","innerException":null,"message":"Invalid argument value.\r\nParameter name: Invalid pull request auto complete set by id. Valid values are either the current user identity id, or an empty guid (to unset auto complete).","typeName":"Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer","typeKey":"InvalidArgumentValueException","errorCode":0,"eventId":0}

Having gone through similar troubleshooting activities akin to this issue #7256 , and upgraded to CenterofExcellenceCoreComponents_4.33_managed.zip (seems no new versions for ALM accelerator per se ever since March), I'm still wondering whether replacing the service principal account with a generic, sharable, and "ordinary" account pre-configured in the connection of CustomAzureDevOps is the only option.

Grateful if the sections on creating connections for the custom connector could be more clear about which account(s) to be used; https://learn.microsoft.com/en-us/power-platform/guidance/alm-accelerator/setup-admin-tasks#test-the-custom-connector https://learn.microsoft.com/en-us/power-platform/guidance/alm-accelerator/setup-components-manually#test-the-custom-connector

MaheshSripada commented 2 months ago

We could not reproduce this issue. Please go through below issue to understand how the commit and deploy process works.

https://github.com/microsoft/coe-starter-kit/issues/7057