Hi all
This might be a 'dumb' question but I have been working with with Power Platform CLI lately and for some reason I can't seem to change the 'org' which it connects to.
I have create an auth profile to my dev tenant, I am connected to the default environment of the def tenant. But whenever I do
pac org list
I keep getting a list of environments of my production tenant. Which means that I cannot test out the
pac org
or
pac solution
commands on my dev tenant.
However, when I do the following command;
pac org who
It shows me my dev tenant.
I am connected through a service principal with the application user having admin rights in the right Dataverse environment.
So to summarize, selected Auth profile connects to dev tenant successfully but other commands won't apart from 'pac org who'.
I have tried this out with PowerShell or Visual Studio Code.
Microsoft PowerPlatform CLI
Version: 1.24.3+g95fc6ea
I keep getting the following error also when using;
pac org select -env $envId
Error: Organization listing was called with incompatible auth profile
Thanks
Hi @NativeN
This feels like a bug in the PAC CLI. I would suggest reporting it to Microsoft Support.
When I run `pac org list` after authenticating with a Service Principal I'm getting "Need user interaction to continue" error. And when I run `pac org select` I'm getting "Organization listing was called with incompatible auth profile" error. Yet `pac org who` works fine
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
63
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1