Setup Linux VM in Azure Portal

Setting up Linux VM in Azure
1. Go to Azure portal > click on Create a resource > Under the Categories select Compute > select Ubuntu Server 20.04 LTS

2. Fill in your Project details and Instance details such as Subscription, Resource group, Virtual machine name, Region, Image and Size.

3. Fill in Administrator account such as Username, Password and Confirm password, and select Authentication type as Password.

4. For Inbound port rules, select Allow selected ports for Public inbound ports and HTTP(80) and SSH(22) for inbound ports.

5. Go to Management to set up Auto-shutdown time.

6. Click on Review + create button and click on Create button.

7. After finish deployment, Go to Connect and select SSH.

8. Go to Cloud Shell in Top bar in Azure and and select PowerShell.

9. Type the following command with your vm IP address and enter your vm password.

10. Install ubuntu desktop in vm and select Y when running second command.

12. Create a Downloads folder under your home directory, and go to Downloads folder.

13. Install RDP support by installing the xrdp project on the VM.

14. Install azure-cli with following command and select Y.

14. Login to Azure with following command and click on the URL provided for device login and paste the code to authenticate.

15. Type the following command for a new Inbound security rule to open port 3389.

16. Download RDP File from Step 7 and connect your VM. Enter username and password that you previously in Step 3 created and click OK.

17. You will see the Ubuntu Desktop in your VM.