Skip to content

az ad signed-in-user show in 2.37.0 does not work: ADSTS50005: User tried to log in to a device from a platform (Unknown) that's currently not supported through Conditional Access policy. #22629

@torumakabe

Description

@torumakabe

Describe the bug

az ad signed-in-user show in 2.37.0 does not work in my env. The cause seems to be AD Conditional Access policy, but in the previous version (2.36.0), it works as expected without error.

The migration doc doesn't seem to have any known issues with this error.

This command is used in in common packages for HashiCorp products such as Terraform, so has a big impact.

If it's a tenant configuration issue, I'll talk to the admin. However, it worked in the previous Azure CLI version, so could you please check it? Thanks!

Command Name
az ad signed-in-user show

Errors:

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.
Trace ID: 0c31027b-05eb-4d4d-b600-1fec50530400
Correlation ID: 08abee16-3df6-480b-b128-2678be62ade3
Timestamp: 2022-05-26 03:04:09Z

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az ad signed-in-user show -o {}

Environment Summary

Linux-5.15.0-33-generic-x86_64-with-glibc2.35, Ubuntu 22.04 LTS
Python 3.10.4
Installer: DEB

azure-cli 2.37.0

Extensions:
ssh 1.1.1
aks-preview 0.5.74

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions