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

Codespace with AAD Conditional Access Policy might fail #4

Open
chhtw opened this issue May 29, 2022 · 0 comments
Open

Codespace with AAD Conditional Access Policy might fail #4

chhtw opened this issue May 29, 2022 · 0 comments

Comments

@chhtw
Copy link

chhtw commented May 29, 2022

"az ad signed-in-user show -o json" might fail when the environment is GitHub Codespace and the AAD with Conditional Access policy.

Once it happen, it cause w fail to get the current user id and azure deployment will fail at https://github.com/chhtw/reddog-aks/blob/6a5c933f73af1ced29f362a8c1dae4cf1f9e8f7c/deploy/bicep/main.bicep#L31 and

Here is what I got, when I ran "az ad signed-in-user show"

AADSTS50005: User tried to log in to a device from a platform (Unknown) that's currently not supported through Conditional Access policy. Supported device platforms are: iOS, Android, Mac, and Windows flavors.

after hard code the object id it will have another error at https://github.com/chhtw/reddog-aks/blob/6a5c933f73af1ced29f362a8c1dae4cf1f9e8f7c/walk-the-dog.sh#L178 with error "AADSTS50005: User tried to log in to a device from a platform (Unknown) that's currently not supported through Conditional Access policy. Supported device platforms are: iOS, Android, Mac, and Windows flavors." and warning "This command or command group has been migrated to Microsoft Graph API. Please carefully review all breaking changes introduced during this migration: https://docs.microsoft.com/cli/azure/microsoft-graph-migration"

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