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

PowerShell 7.x causes device login #26

Open
mikeparkie opened this issue Apr 16, 2023 · 3 comments
Open

PowerShell 7.x causes device login #26

mikeparkie opened this issue Apr 16, 2023 · 3 comments

Comments

@mikeparkie
Copy link

Executing Enable-DCAzureADPIMRole on PS 7.x causes the module to try authenticate using device login. whereas 5.1 uses standard username/password popup.

Is this by design? Should I be launching in a different fashion for 7.x?

@yashcrest
Copy link

I think this is because PowerShell Core is developed to be cross platform, and I don't think window popup is supported on every platform, so they opt in to use device login for all platforms.

@mikeparkie
Copy link
Author

Possibly, but would be good to get confirmation.

@mikeparkie
Copy link
Author

done some further digging from the audit log and can see the failure based on a CA policy

Failure reason
Remote device flow blocked due to device based conditional access.

Additional Details
This request is authorizing a remote device, and there is a conditional access policy that requires device authentication. The request is blocked because we cannot assert the properties of the remote device. View the Conditional Access information for this request in the sign-in logs for more details about the policy applied here.

Looked into thge device compliance

Access controls
Grant Controls | Not satisfied > Require compliant device

But checking devce compliance

Device GUID = Compliant

Some I'm a little confused?

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

2 participants