Azure VM Domain joined - Domain user error - connection is denied because user is not authorized for remote login

MyAzQuery 171 Reputation points
2022-11-03T06:37:35.84+00:00

My Azure VM is domain joined to on-premises AD via the Express Route connectivity.

My VMs have Win2019, Win10 OS

Now the on-prem machines can communicate with the azure VM.

Since this VM is domain joined, users try to login to the Azure VM with the domain\username and password, but they endup getting the error

connection is denied because user is not authorized for remote login

We have around 1000 on-prem users who need to login to the azure VMs.

As a solution , i Navigated to Local Policies > User Rights Assignment.
From the list of policies, located Allow log on through Remote Desktop Services and double-click it and added my domain user account domain\user1. Then did gpupdate /force . Then tried to login the next day. Still user is not able to login and gets the same error (as mentioned in the question title)
Is it necessary to add users to Administrators group ?

Any suggestions please

Windows for business Windows Client for IT Pros Directory services Active Directory
0 comments No comments
{count} votes

Accepted answer
  1. rafalzak 3,251 Reputation points
    2022-11-03T06:54:02.65+00:00

    Hi @MyAzQuery ,

    Did you add users into Remote Desktop Users Group on Azure VM?
    256702-image.png

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 44,746 Reputation points
    2022-11-08T09:31:20.02+00:00

    Hello there,

    The Remote Desktop Protocol (RDP) connection to your Windows-based Azure virtual machine (VM) can fail for various reasons. After each troubleshooting step, try reconnecting to the VM:

    Reset Remote Desktop configuration.
    Check Network Security Group rules / Cloud Services endpoints.
    Review VM console logs.
    Reset the NIC for the VM.
    Check the VM Resource Health.
    Reset your VM password.
    Restart your VM.
    Redeploy your VM.

    Here is a link that has some additional troubleshooting steps which you can try and see if helps in overcoming your issue https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-connection

    Cannot connect remotely to a VM because RDP port is not enabled in NSG https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-nsg-problem

    ------------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    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.