Azure Linux Support Team

Support for Linux on Azure

AZ 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: az login NOTE: You will get a code which you then have to type in the box using the link https://aka.ms/devicelogin… Read more

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

Linux Recovery: Fixing non-boot issues related to Kernel problems using chroot

In a previous article, it was described how to manually fix kernel related issues that could cause a Linux VM to not boot properly. There is also an option where you can use steps to use CHROOT and then use tools to automatically fix these same issues without the need to manually edit files. Assuming… Read more

Linux Recovery: Manually fixing non-boot issues related to Kernel problems

You have a Linux VM that had kernel changes applied recently such as a kernel upgrade and is no longer starting up properly due to kernel errors during the boot process. Kernel messages will vary; some examples could be: no root device found, kernel timeouts, null pointer, kernel panic errors. Most of the time the recovery steps… 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