Azure Linux Support Team

Support for Linux on Azure

Azure Linux Extensions: Custom Script for Linux

You have probably seen some extensions that are available on Azure, some of them listed/documented here: Azure Linux Extensions In this article, we will cover a few examples that you can use with the “Custom Script for Linux” extension. This extension basically allows you to run a script inside a Linux VM, so as long… Read more

Unsupported: How to install xRDP for GUI remote access on Linux

You want to access a Linux VM on Azure using a GUI through Remote Desktop or similar tools. The installation and configuration of 3rd party tools are beyond the scope of Azure Linux support but we have here a few notes and best practices to enable xRDP if needed. There are other ways of achieving similar… Read more

Linux Recovery: SSH daemon is not starting up properly

You have noticed that you lost SSH connectivity to a Linux VM and after examining the boot diagnostics you see messages related to errors in the SSHD configuration. The error around invalid configuration might be simply: Starting sshd: [FAILED] There were a few instances seen in SUSE and Red Hat where errors are seen due… Read more

Best Practices: Monitoring Linux VM utilization with sysstat

Sysstat is a very interesting option to enable system monitoring without sacrificing performance and disk storage. Some distributions have it installed but disabled by default, other distributions you have to install it manually. With the steps provided in this article you can get sysstat up and running so you can have history data to analyze… Read more

Linux Recovery: Cannot SSH to Linux VM due to file system errors (fsck, inodes)

When a Linux VM requires fsck to repair possible file system issues, manual intervention will be required. Below you can see four examples on how to identify file system issues by looking at the boot diagnostics on a given VM under: Virtual Machines > VMNAME >  All settings > Boot diagnostics Example (1) Checking all file systems. [/sbin/fsck.ext4… Read more

Best Practices: Using SSH keys to access Linux VMs on Azure

When deploying Linux workloads on Azure, Microsoft highly recommends using SSH keys since they provide a more secure way of logging on to a Linux instance using SSH than using normal passwords. Most of the time passwords can be cracked with for example a brute force attack whereas SSH keys are nearly impossible to decipher… Read more

Best Practices: Running Linux on Azure

A lot of times we help customers getting the best out of running their workloads on Azure using any of our Endorsed Linux Distributions. There are a few best practices and recommendations that will sure help getting the most out of your Linux virtual machines and we would like to share a few of them. A… Read more

Azure PowerShell: How to delete and re-deploy a VM from VHD

Before moving further, please make sure you have Azure PowerShell installed: How to install and configure Azure PowerShell For basic information about using Azure Powershell with Resource Manager (ARM), please have a look at: Using Azure PowerShell with Azure Resource Manager In this example, the following variables are being used: Resource Group: ARMGROUP Original VM… Read more

Azure CLI: How to delete and re-deploy a VM from VHD

Before moving further, please, make sure you have the Azure CLI tools installed: Install the Azure CLI For the steps to work properly, please, make sure you are logged in to the Azure CLI: Connect to an Azure subscription from the Azure Command-Line Interface (Azure CLI) For basic Azure CLI commands in Resource Manager (ARM),… Read more

Linux Recovery: Cannot SSH to Linux VM due to FSTAB errors.

There are a few cases where a VM might stop booting up properly if the syntax in fstab is not correct and also if a data disk is missing (not attached to the VM) as well as other reasons. Traditionally in Linux you can mount a scsi device by using the following format in fstab:… Read more