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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Get-AdminPowerAppConnection is throwing error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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
    Microsoft Employee 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:

     
    Capture1.PNG

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard