web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : +VROE1nD5BREwWnHeeYeYi
Power Apps - Building Power Apps
Unanswered

Trying to set the AdimPowerAppsApistoByPassConsent

Like (0) ShareShare
ReportReport
Posted on 26 Jan 2024 14:10:46 by

Hi All,

I'm trying to stop the messages that users get to accept the connections the first time they connect to a PowerApp.

I've installed the modules

Microsoft.PowerApps.Administration.Powershell

Microsoft.PowerApps.PowerShell

 

I'm running PS in admin mode and when I try to run the command 

  Set-AdminPowerAppApisToBypassConsent and I pass in the correct EnvironmentName and Appname 

I get an error...

  "InvokeApi: The term 'Test-PowerAppsAccount' is not recognized as a name of a cmdlet..."

 

When I type in Test-PowerAppsAccount, PS resolves it but when I do a get-command on the module I can't see it listed.  

Anyone know what I'm doing wrong?

Regards

 

Categories:
I have the same question (0)
  • hanzelmans Profile Picture
    on 05 Apr 2024 at 17:08:33
    Re: Trying to set the AdimPowerAppsApistoByPassConsent

    I'm getting the same message.  

     

    I just switched to a Windows 11 box and updated to PowerShell 7.  I tried running it in PowerShell and using terminal in VS Code, but it didn't make a difference.

     

    I can run the script without an error on my old machine without a hitch.

     

    I'd love to know what is causing it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 733 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 532 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399 Super User 2025 Season 2

Last 30 days Overall leaderboard