I’ll probably skip the creating of the a VM, and assume that you already have SSH access to a Ubuntu VM hosted on Azure.

Following this guide here, below are the list of commands

<br /> sudo apt-get update<br /> sudo apt-get install apt-transport-https ca-certificates curl software-properties-common<br /> curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -<br /> sudo apt-key fingerprint 0EBFCD88<br /> sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"<br /> sudo apt-get update<br /> sudo apt-get install docker-ce<br /> sudo groupadd docker<br /> sudo usermod -aG docker $USER

<br /> sudo apt-get install lxde -y<br /> sudo apt-get install xrdp -y

/etc/init.d/xrdp start

sudo apt-get install xfce4
sudo echo “xfce4-session” > ~/.xsession
sudo /etc/init.d/xrdp start
sudo /etc/init.d/xrdp status

enabling ubuntu desktop https://sorcia25.wordpress.com/2018/03/02/how-to-setup-an-ubuntu-linux-vm-in-azure-with-remote-desktop-rdp-access-ubuntu-desktop-gui/ and https://buildazure.com/2018/02/28/how-to-setup-an-ubuntu-linux-vm-in-azure-with-remote-desktop-rdp-access/

restart VM