Mar 25 2022 05:00 AM
Hi all,
I've created W10VM from Azure AD portan and already enabled Azure AD login, added the user as Virtual Machine Administrator Login under Access Control.
When i join the machine to Azure AD, i've no problem to sign in by using the Azure AD account. But after a while, it will disconnect me. Then there is no way that i can connect to the VM again even i restart the VM. Same issue happens when i login by using company portal.
May i know any tricks that i need to do in order to make it work?
thanks
Terence
Mar 25 2022 05:30 AM
Hi @Terence2022,
Did you enable a firewall policy or the Security baseline?
Are you using a Hyper-V VM? If so, are you using an enhanced session?
Kind regards,
Rene
Mar 25 2022 05:35 AM
Mar 25 2022 08:06 AM
Thanks for all prompt reply.
The VM provision is done at Azure Portal. I chose the image as Window 10 Enterprise and used all default setting. Region is on UK South. I also enabled Azure AD login. Everything was smooth and i was able to login the VM. After that, i clicked setting and connect to input Azure AD account. Again, everything was smooth. But later it would disconnect me. I tried to reconnect but never succeeded. Even i rebooted the VM, problem was still the same. Below is the error that i got during using RDP to connect
Remote Desktop can't connect to the remote computer for one of these reasons:
1)Remote access to the server is not enabled
2)The remote computer is turned off
3)The remote computer is not available on the network
Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.
I tried to delete the VM and recreated again. Everything when i tried to join the Azure AD, i would experience the same problem. I've already added the Azure AD user to the Virtual Machine Administrator Login but i won't help.
In Azure AD portal, i found the VM is under Azure AD registered and not compliant.
Welcome for any idea to solve the problem
thanks
Terence
Mar 28 2022 02:38 AM
Mar 28 2022 04:28 AM - edited Mar 28 2022 04:30 AM
Hi, You keep telling us you enroll the existing VM into azure (and intune ?).
Intune Enrollment For Windows 10 Azure VM|Azure AD - HTMD Blog #2 (howtomanagedevices.com)
Why not do so by configuring upfront?
https://docs.microsoft.com/en-us/azure/virtual-desktop/deploy-azure-ad-joined-vm#deploy-azure-ad-joi...
Also looking at the requirements.. did you configured the role assignments
https://docs.microsoft.com/en-us/azure/active-directory/devices/howto-vm-sign-in-azure-ad-windows#co...