Ubuntu Mate Desktop VM with VSCode

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Bicep Version

This template creates a Linux developer workstation as follows:

  • Create a VM based on the Ubuntu 18.04 image with Mate Desktop installed
  • Installs Azure CLI v2
  • Install Visual Studio Code editor
  • Opens the RDP port for users to connect using remote desktop

This template creates a new Ubuntu VM with Mate desktop enabled. Mate desktop is light weight and has a simple UI. In addition to a nice GUI, this template also installs developer tools like Azure CLI and Visual Studio Code for editing files. Users can connect to the Desktop UI using remote destop.

To connect, run "mstsc" from windows desktop and connect to the fqdn/public ip of the VM.

Deploy To Azure Deploy To Azure US Gov Visualize

Running at terminal

To open a terminal with Ctrl + Alt + t

Running VSCode

Manage IDE from the Command Line

The vscode IDE includes a command line tool called code which can use to manage the IDE directly from the Ubuntu terminal.

To open a new file, Execute:

code file_name

To open a folder with vscode, Type:

code dir_name

You can also use command line to add new extensions.For example, Following command will add eslint JavaScript extension to the vscode:

code --install-extension dbaeumer.vscode-eslint

To list installed extensions, Type:

code --list-extensions

Getting Started with VS Code

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).

Begin your journey with VS Code with these introductory videos

Visual Studio Code - Getting Started documents

Microsoft Learn - Learning Modules

Visual Studio Code Linux Virtual Machines on Azure Azure CLI

Tags: Microsoft.Network/publicIPAddresses, Microsoft.Network/virtualNetworks, Microsoft.Network/networkInterfaces, Microsoft.Network/networkSecurityGroups, Microsoft.Compute/virtualMachines, Microsoft.Compute/virtualMachines/extensions, CustomScript