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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get-AdminPowerAppConne...
Power Apps
Unanswered

Get-AdminPowerAppConnection is throwing error

(0) ShareShare
ReportReport
Posted on by

Hi, 

I am trying to get a list of all the connections in my tenant. When I run  

Get-AdminPowerAppConnection
I get this:

CreateConnectionObject : Cannot bind argument to parameter 'ConnectionObj' because it is null.
At C:\Program Files\WindowsPowerShell\Modules\Microsoft.PowerApps.Administration.PowerShell\2.0.52\Microsoft.PowerApps.Administ
ration.Powershell.psm1:5253 char:55
+ CreateConnectionObject -ConnectionObj $connection
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [CreateConnectionObject], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,CreateConnectionObject
 
 
How can i fix this?
I have the same question (0)
  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    Hi @Anonymous ,

    Have you logged in with your powerapps account successfully?

    Based on the error that you met, I think  you didn't import necessary PowerApps modules successfully within your PowerShell window and log in  with your powerapps account successfully.

    Please follow my steps:

    1)Run PowerShell as an administrator.

    203304.png

     

    2) Execute the following commands firstly:

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
    dir . | Unblock-File

    3). Import necessary modules:

    Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
    Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber

     4)Add your PowerApps account:

    Add-PowerAppsAccount /* <-- Open a dialog to provide your credentials */

    Please notice that if you want to run this  Get-AdminPowerAppConnection command, your account need to be admin of your talent.

    5)run this command:

    Get-AdminPowerAppConnection

    Then you will get all the connections information of your talent.

    What's more, only premium license of powerapps (per app plan/per user plan) could use this command.

     

     

    Best regards,

  • timtatam Profile Picture
    11 on at

    I also get the same error, even after completing the above mentioned steps.

     

    Cmd: 

     

    Get-AdminPowerAppEnvironment -Default | Get-AdminPowerAppConnection | Export-Csv -Path "$PSScriptRoot\$dateTimeString-PowerAutomateConnections.csv" -NoTypeInformation -Delimiter ";"

     

     

    Issue:

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard