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 / Issue with the 'pac au...
Power Apps
Unanswered

Issue with the 'pac auth create' command

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

The command 'pac auth create -u https://orgXXXXXXXX.crm4.dynamics.com' is having no effect/pop up for authentication in VS Code.

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    You need to also give it a name. Try:

    pac auth create --name myEnvironment --url myUrl
    or
    pac auth create -n myEnvironment -u myUrl
  • David Jenni Profile Picture
    Microsoft Employee on at

    @cchannon the --name parameter is optional, and should not play into what @Anonymous is experiencing.

    Note that pac auth create -u <url> will pop up the regular AAD dialog; since launching from the VS Code terminal, that dialog is not properly parented to the VS Code window. It is possible that the dialog is e.g. hidden behind VSCode, or on a different screen (if multi-screened)

    DavidJen_0-1627077848964.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @DavidJen ,

    I am not seeing a dialog behind or on another screen. Could there be a VS Code setting preventing it ?

  • cchannon Profile Picture
    4,702 Moderator on at

    Does it behave as expected in a normal command prompt/pshell outside VS Code?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It doesn't. Perhaps I have a restriction on my machine ? I do get the dialogue window from my browser though.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 509 Most Valuable Professional

#2
Haque Profile Picture

Haque 302

#3
11manish Profile Picture

11manish 265

Last 30 days Overall leaderboard