Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Answered

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?
Categories:
  • timtatam Profile Picture
    11 on at
    Re: Get-AdminPowerAppConnection is throwing error

    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:

     
  • Verified answer
    v-yutliu-msft Profile Picture
    on at
    Re: Get-AdminPowerAppConnection is throwing error

    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,

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Governance and Administering

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 11 Super User 2025 Season 1

#2
bscarlavai33 Profile Picture

bscarlavai33 5 Super User 2025 Season 1

#3
getsplash Profile Picture

getsplash 2

Overall leaderboard

Featured topics