You may follow the troubleshooting steps below to resolve the issue .Configure Bastion for native client connections.
- To allow a user to sign in to the VM over RDP, you must assign the Virtual Machine Administrator Login or Virtual Machine User Login role to the Virtual Machine resource.
- Disable the NTLM by navigating to your VM > Run command > DisableNLA
- Make sure to add the same user to the Remote Desktop Users group using the command below.
net localgroup "Remote Desktop Users" /add "AzureAD\******@Testdemo.onmicrosoft.com"
Ex: user VPN:******@Testdemo.onmicrosoft.com
Get-LocalGroupMember -Name "Remote Desktop users"
- Verify the Device Joining status by navigating to
Entra AD > Devices.
5. Check the Azure AD join status on the VM by running the dsregcmd /status
- To log in, you need to prefix your username with 'AzureAD'
For example: "****AzureAD*@something.com*"**
Verify that you have the following prerequisites to connect to a VM using Bastion and the Windows native client.
If you are still facing the issue, you can refer to the 'Connect to a VM using Bastion and the Windows native client' documentation for more details.
I hope this is helpful! Do not hesitate to let me know if you have any other questions
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.