Skip to main content

Notifications

Community site session details

Community site session details

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

Automating the input of Credentials to Add-PowerAppsAccount

(0) ShareShare
ReportReport
Posted on by

Is there any way to pass the credentials required for Add-PowerAppsAccount to the function using parameters?

  • John_ Profile Picture
    13 on at
    Re: Automating the input of Credentials to Add-PowerAppsAccount

    I know I'm coming accross this post like several months later, however would suggest not putting your password in plaintext in a script file.

     

    -First export your credentials,

    Get-Credential | Export-CliXml 'C:\location.xml'

    Then each time after that, you can do this,

    $cred = Import-Clixml 'C:\location.xml'
    Add-PowerAppsAccount -Username $cred.UserName -Password $cred.Password
  • Community Power Platform Member Profile Picture
    on at
    Re: Automating the input of Credentials to Add-PowerAppsAccount

    Hi Eddie,

     

    If you download from the link on this page, you will get the V3 of the cmdlets.

    With this version, Add-PowerAppsAccount takes the additional parameters.

     

    Regards,

    Luzi

  • Community Power Platform Member Profile Picture
    on at
    Re: Automating the input of Credentials to Add-PowerAppsAccount

    There is no parameter for Username or Password. The only parameters available are:

     

    Add-PowerAppsAccount [[-Audience] <string>] [[-Endpoint] {prod | preview | tip1 | tip2}]  [<CommonParameters>]

     

    Where can I get your version of the Add-PowerAppsAccount cmdlet?

     

    Regards

     

    Eddie

  • jo Profile Picture
    on at
    Re: Automating the input of Credentials to Add-PowerAppsAccount

    Yes!  I call this out here: https://docs.microsoft.com/powerapps/administrator/powerapps-powershell#installation:

     

     

    # Here is how you can pass in credentials (avoiding opening a prompt)

     

    $pass = ConvertTo-SecureString "password" -AsPlainText -Force

    Add-PowerAppsAccount -Username foo@bar.com -Password $pass

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

🌸 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…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Governance and Administering

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 9 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