Unable to login to newly created Virtual Machine using a Microsoft 365 account with Azure

Troy Johnson 1 Reputation point
2022-06-28T21:55:28.367+00:00

I just created a test VM using the setup wizard on the Azure Desktop Portal. But now that the machine is on, I am unable to login to newly created Virtual Machine using a Microsoft 365 account with Azure it only allows the local "Admin" account to login to the VM that was created with the setup wizard.

Machine is joined to AZURE AD
Under "Other Users", it shows the account linked with AZURE AD

When I try to login to it with the Azure account, it just kicks an error saying the method you are using to trying to use isn't allowed? WTH? What am I missing here.

See attached photo.215818-error.jpg

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,321 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,552 Reputation points Microsoft Employee
    2022-06-28T23:41:54.65+00:00

    @Troy Johnson Thanks for posting on Microsoft Q&A.

    There is a very detailed documentation on Login to Windows virtual machine in Azure using Azure Active Directory authentication which contains all information about login using AAD credentials as well as the common errors troubleshooting steps.

    As per the document,

    If you see the following error message when you initiate a remote desktop connection to your VM:
    The sign-in method you're trying to use isn't allowed. Try a different sign-in method or contact your system administrator.

    Then check the following:
    If you've configured a Conditional Access policy that requires multi-factor authentication (MFA) before you can access the resource, then you need to ensure that the Windows 10 or newer PC initiating the remote desktop connection to your VM signs in using a strong authentication method such as Windows Hello. If you don't use a strong authentication method for your remote desktop connection, you'll see the previous error.

    Let me know if you have further questions or this doesn't resolve your issue. I would recommend going through the document to make sure you are not missing any step, for e.g. configuring role assignments.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.