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 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
Thank you for your response, I have three profiles. After selecting each profile, all of them give the same error.
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
mmbr1606
22
Super User 2025 Season 1
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1