Search Posts

Author: linuxazure

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

NOTE: Recently the azure cli has changed to the az cli, unless you have the older azure cli tools still installed, you should visit the new and updated post with instructions for the az cli here. Unless you are still using the old azure cli tool, the instructions bellow will not work in the new az cli. Before moving further, please, make sure you have the Azure CLI tools installed:Install the Azure CLI For the […]

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: ARMGROUPOriginal VM Name: LinuxVMLocation: southcentralusNIC Name: LinuxVM-NICStorage Account: ARMSTORAGEVHD URI: https://ARMSTORAGE.blob.core.windows.net/vhds/linuxvm.vhd You should be able to get a list of parameters from a given VM […]

Linux Recovery: Using CHROOT steps to recover VMs that are not accessible

You are facing an issue where you might need to basically delete a virtual machine (VM) , keep its OSDisk and attach it to another Linux VM where you can then repair whatever is wrong on that old VM, however in some instances you would also be able to have network access and some way of updating let’s say packages, adding a user account or doing any task that you can do on a normal […]

Why proactively ensuring you have access to GRUB and sysrq in your Linux VM could save you lots of down time?

Quite simply, to speed up the recovery time of your IaaS Linux Virtual Machine most recovery options will be possible if GRUB is configured. Recovering Linux Virtual Machines in Azure You will, at some point have to perform some type of recovery in your Linux VM unless you are very lucky, this inevitable. The reasons for performing a VM recovery are numerous and can be anything such as: • corrupt file systems/kernel/MBR • failed kernel […]