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

Issue with the 'pac auth create' command

(0) ShareShare
ReportReport
Posted on by

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

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 405 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 280 Super User 2025 Season 2

#3
Kalathiya Profile Picture

Kalathiya 272

Last 30 days Overall leaderboard