Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pac auth create ERROR:Unable to validate connection to default environment. #865

Closed
runr02 opened this issue Mar 4, 2024 · 1 comment
Closed

Comments

@runr02
Copy link

runr02 commented Mar 4, 2024

I'm encountering an issue while trying to connect to Power Apps via the Service Principal Name (SPN) and Certificate using the new --environment parameter. Interestingly, I'm able to connect successfully when using the deprecated --url parameter. Despite extensive research, I haven't been able to find a solution to this problem.

When I attempt to connect using my own credentials with the same URL, the connection is established without any issues. This leads me to believe that there might be a bug specifically related to the combination of SPN/Certificate authentication and the new --environment parameter.

If this is indeed a bug, when and which version of the pac cli will the --url parameter stop working?

Unable to validate connection to default environment.

Error: No default environment selected for current auth profile. Use auth profile with default environment or pass it as a parameter if command supports it

pac auth create --applicationId ${{parameters.p1}} --tenant ${{parameters.p2}} --environment ${{parameters.p3}} --certificateDiskPath $(parameters.p4) --certificatePassword ${{parameters.p5}}

@runr02 runr02 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2024
@runr02
Copy link
Author

runr02 commented Mar 12, 2024

Not an issue. Needed to update the version of Microsoft.PowerApps.CLI.Tool. oops!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant