microsoft / coe-starter-kit

Other
747 stars 220 forks source link

[ALM Accelerator - QUESTION] canvasshare and activateflow deployment settings #2110

Closed gswwsg closed 2 years ago

gswwsg commented 2 years ago

What is your question?

Have I missed a configuration setting as I have the following steps where manual intervention is required when exporting and deploying solutions:

Pipeline variable for deploy-validation-xxxx, deploy-test-xxxx and deploy-prod-xxxx needs updated manually:

Also after completing the validation and test pipelines successfully the canvas app share is blank, the aad security has to be shared manually even though the pipelines' canvasshare.roleName.xxxx variable is populated with the groupId configured in the deployment settings of the ALM Acc app....

image

Any suggestions would be appreciated

Cheers!

What component are you experiencing the issue with?

ALM Accelerator Pipelines

What solution version are you using?

1.0.20220131.1

mikefactorial commented 2 years ago

@gswwsg see below

  1. The activateas variables will be empty for now until we address them in the UI. They can be set manually if need be, but we have some general work in the backlog related to flow activation that will be in a future release. https://github.com/microsoft/coe-starter-kit/issues/1388
  2. The undefined.crm.dynamics.com in the service connection is something that has been reported and we are working towards a solution although haven't been able to replicate it yet. Any more information you can provide on this issue would be greatly appreciated. https://github.com/microsoft/coe-starter-kit/issues/2082
  3. For the sharing issue I suspect this is due to the need to register the Service Principal with New-PowerAppManagementApp. This is a step that was previously automated by the CLI but was removed due to some organizations not allowing this permission by default. We'll need to update the docs in the March release to call this out specifically, but below are the instructions. Assuming this is the issue you'll likely see a warning in the deployment pipeline step "Share Canvas App with AAD Group"
mikefactorial commented 2 years ago

Adding to March Milestone to update docs for New-PowerAppManagementApp

gswwsg commented 2 years ago

Adding to March Milestone to update docs for New-PowerAppManagementApp

@mikefactorial Thanks for the summary and quick reply!

The PowerShell code resolved the canvas share; so got workarounds in place for the other stuff. look forward to April release!

With regards to point 2, looking at the devops.ts file I saw this block of code

image

So decided to put in variables in the alm-accelerator-variable-group

image

This resolved the ServiceConnection undefined issue for the validation pipeline but not test and prod pipelines.

The other thing I noticed in the code was that the logic looks for other pipelines starting with Deploy-$template, so its now picking up the first pipelines created as I'm not sure how the source-build parameter is configured when doing it manually, should it be a path to the deploy-test-solution templates? image

It also happens when committing a new solution through the app...

image

image

Not sure what I'm missing, was thinking just to rename them in the meantime with a prefix to stop the code picking them up in the meantime?

cheers

mikefactorial commented 2 years ago

@gswwsg this is good feedback. Thanks for the details. The copying of the pipelines is leftover from a previous version and should be removed. Working on a PR to fix this.

CoEStarterKitBot commented 2 years ago

@gswwsg This has been fixed in the latest release. Please install the latest version of the toolkit following the instructions for installing updates. Note that if you do not remove the unmanaged layers as described there you will not receive updates from us.