An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
Hello @Baby Kempanna,
Thank you reaching out to Microsoft Q&A.
I can see exactly what's happening. Azure Bastion is defaulting to an SSH terminal session for your Linux VM (that's standard behavior), so you're not seeing the graphical desktop yet. The good news is that full RDP/GUI access is fully supported for Kali Linux VMs without any public IP. You just need xrdp installed on the VM and Bastion set to Standard SKU or higher.
Here's the quickest way to get it working:
- Check/upgrade your Bastion tier In the Azure portal, go to your Bastion resource → Configuration → change the tier to Standard (or Premium) and save.
- Install xrdp on your Kali VM (do this via your current Bastion SSH session)
- Connect with RDP - Back in the Azure portal, go to your VM → Connect → Bastion. Expand the settings, choose Protocol: RDP, enter your Linux username/password, and click Connect. The full Kali Xfce desktop should now load right in your browser.
- RDP to virtual machine using Azure Bastion. you can run the below command it will download the RDP file in your local machine with the help of this you can access the VM directly.
az network bastion rdp --name MyBastionHost --resource-group MyResourceGroup --target-resource-id vmResourceId
That’s it no public IP or extra client required.
The Kali image works great with the Ubuntu instructions in the second link (both are Debian-based).
See these official Microsoft docs:
• Connect to a Linux VM using RDP – Azure Bastion
• Use xrdp with Linux VMs in Azure
If the answer is helpful, please click "Accept Answer". If you have extra questions about this answer, please click "Comment".