Skip to main content
Community site session details

Community site session details

Session Id : F798ASJ7Iv2+iOzH/n3se9
Power Apps - Microsoft Dataverse
Unanswered

Power Platform CLI Doesn't Connect to Dataverse

Like (0) ShareShare
ReportReport
Posted on 17 Jul 2023 19:16:00 by 3

Hello!

 

I was trying to download my power portal website using the CLI, however whenever I run any pac commands, I get an error stating "Failed to Connect to Dataverse". I have logged into Visual Studio and checked my credentials, what else could be causing this issue?

ray_rashid_0-1689621293320.png

 

Categories:
  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on 20 Jul 2023 at 18:50:09
    Re: Power Platform CLI Doesn't Connect to Dataverse

    @ray_rashid What credentials do each of your auth profiles use? Have you confirmed you're able to log in to the application UI using the same credentials? Just to rule out any account/privilege issues

     

    Are you using PAC CLI with VS Code or in a command prompt? Try checking for the log files in %localappdata%\Microsoft\PowerAppsCLI\Microsoft.PowerApps.CLI.X.X.X\tools\logs

  • Rashid2002 Profile Picture
    3 on 20 Jul 2023 at 17:50:21
    Re: Power Platform CLI Doesn't Connect to Dataverse

    Thank you for your response, I have three profiles. After selecting each profile, all of them give the same error.

  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on 17 Jul 2023 at 20:45:54
    Re: Power Platform CLI Doesn't Connect to Dataverse

    Hi @ray_rashid ,

     

    I would suggest running `pac auth list` to very which authentication profiles you already have. Then ensure you have selected the intended authentication profile corresponding to the correct environment using `pac auth select`. If there's no authentication profile available corresponding to the intended environment, then create one using `pac auth create`

     

    https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/auth#pac-auth-list

    https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/auth#pac-auth-select

    https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/auth#pac-auth-create

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics