PowerApps-Samples icon indicating copy to clipboard operation
PowerApps-Samples copied to clipboard

'add-powerAppsAccount' command was found in the module 'Microsoft.Powerapps.Administration.Powershell' but could not the module could not be loaded.

Open Keatnuxsuo opened this issue 1 year ago • 9 comments

Followed all the steps up until Connect enterprise policy to Dataverse environment. I have this error while trying to execute ./NewIdentity.ps1. I put in the right environmentid for dataverse at the armpolicyid that was generated in the previous step.

I use cloud shell for this. Powershell version is 7. I read this blog that this module won't work cross-platform (6+) because it relies on .Net Framework.

My question is "Is there another way to associate Dataverse to Azure Enterprise Policy"?

Thank you image

Keatnuxsuo avatar Jan 17 '24 00:01 Keatnuxsuo

@Keatnuxsuo I sent your question to the team that maintains the code.

phecke avatar Feb 23 '24 20:02 phecke

I am getting similar error while connecting VNet with PowerApps but PowerShell command is giving the similar error appreciate some help.

GBDCHA1 avatar Oct 01 '24 13:10 GBDCHA1

@JasonHQX @Mattp123 Any suggestions for @Keatnuxsuo?

phecke avatar Oct 01 '24 16:10 phecke

has there been any updates on this??

tkawas avatar Oct 02 '24 06:10 tkawas

did anyone try to use before importing? @Keatnuxsuo @phecke @JasonHQX @Mattp123 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force dir . | Unblock-File

ValerasNarbutas avatar Oct 02 '24 10:10 ValerasNarbutas

did anyone try to use before importing? @Keatnuxsuo @phecke @JasonHQX @Mattp123 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force dir . | Unblock-File

Just tried and it didn't help. The same error.

Michal-Ziemba avatar Oct 02 '24 12:10 Michal-Ziemba

yeah, we had same issue, colleagues specifically targeted 2.0.194 (previous working one) version instead of 2.0.197

ValerasNarbutas avatar Oct 02 '24 18:10 ValerasNarbutas

Before running the scripts please make sure you run the InstallPowerAppsCmdlets script as mentioned in the documentation below:

Image

sokashya avatar Jan 15 '25 18:01 sokashya

Did the answer from @sokashya help anybody? I get the following error: PS /home/floris> ./installPowerAppsCmdlets.ps1 ./installPowerAppsCmdlets.ps1: The term './installPowerAppsCmdlets.ps1' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. Image

Floriszz avatar May 09 '25 08:05 Floriszz