Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPPowerAppsEnvironment : hardcoded check for Certificate Thumbprint in Cert:\CurrentUser\My\ #2781

Closed
MarcelHeek opened this issue Jan 13, 2023 · 2 comments
Labels
Bug Something isn't working Power Platform V1.23.111.1 Version 1.23.111.1

Comments

@MarcelHeek
Copy link

Details of the scenario you tried and the problem that is occurring

I use a Github workflow where I add a certificate to the Cert:\LocalMachine\My certificate store. For other workloads, like SPO, TEAMS, OD, PLANNER this works just fine, but for the PP workload it fails as it expects the certificate in the CurrentUser certificate store

Verbose logs showing the problem

Exporting Microsoft 365 configuration for Workloads: PP
Finding all resources for workload {PP} and Mode {Full}
 
Authentication methods specified:
- Service Principal with Certificate Thumbprint
 
[1/3] Extracting [PPPowerAppsEnvironment] using {CertificateThumbprint}...Cannot find path 'Cert:\CurrentUser\My\***' because it does not exist.
Partial Export file was saved at: C:\Users\RUNNER~1\AppData\Local\Temp\332ee2db-7e9d-469e-bf1d-dbb9090c0d29.partial.ps1

Suggested solution to the issue

Make it work the same as for the other workloads

The DSC configuration that is used to reproduce the issue (as detailed as possible)

N/A

The operating system the target node is running

OsName               : Microsoft Windows Server 2022 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 20348.1.amd64fre.fe_release.210507-1500
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

Version of the DSC module that was used ('dev' if using current dev branch)

Version Microsoft DSC installed: 1.23.111.1

@powershellpr0mpt
Copy link
Contributor

This issue still exists, simply adding to currentuser 'fixes' it for now

@NikCharlebois
Copy link
Collaborator

This is coming from the PowerApps PowerShell module directly. For example, calling the Add-PowerAppsAccount cmdlet directly will throw the same error. Unfortunately it doesn't look like this requirement is documented anywhere.

image

I will update the Microsoft365DSC.com documentation to reflect this requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Power Platform V1.23.111.1 Version 1.23.111.1
Projects
None yet
Development

No branches or pull requests

4 participants