AADSTS50005: User tried to log in to a device from a platform (Unknown) that's currently not supported through Conditional Access policy
azcopy login is blocked because a Conditional Access policy only allows sign-in from certain device types.
azcopy login is blocked because a Conditional Access policy only allows sign-in from certain device types.
Why it happens
An administrator has a Conditional Access policy (a sign-in rule in Microsoft Entra ID) that limits sign-in by device type. AzCopy signs in with the device code flow, which cannot prove that the machine running AzCopy is the device you signed in from.
How to fix it
- 1
Step 1
If your device is a supported platform, run the transfer from Azure Storage Explorer instead. It includes AzCopy and passes device information during sign-in.
- 2
Step 2
On a server or VM, sign AzCopy in with a managed identity or a service principal instead of a user account.
- 3
Step 3
If your device is not supported, ask your Entra ID administrator to review the Conditional Access policy. See copy files with AzCopy for the sign-in options.
azcopy login