How can I Upgrade my Azure Linux VM from Ubuntu 18.04 to 20.04

Volker Braun 80 Reputation points
2023-02-06T15:06:21.3366667+00:00

Because the security support for Ubuntu 18.04 expires on 30.04.2023, we have to upgrade our Azure Linux VMs from Ubuntu 18.04 LTS to 20.04 LTS.

Question:

Is there a process for this like the In-Place Update for Data Science VMs (DSVS)?

Or is such an upgrade of the operating system not possible at all?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,040 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
320 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jackson Martins 10,556 Reputation points MVP
    2023-02-06T15:12:21.27+00:00

    Hi

    Azure does not currently support an upgrade of the operating system of a Microsoft Azure Virtual Machine, Instead, you should create a new Azure virtual machine that is running the supported version of the operating system that is required and then migrate the workload.

    Reference: https://learn.microsoft.com/en-US/troubleshoot/azure/virtual-machines/server-software-support

    There is a similar article using Azure Data science

    https://learn.microsoft.com/en-us/azure/machine-learning/data-science-virtual-machine/ubuntu-upgrade

    Best Regards

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Andrew Boy 55 Reputation points
    2023-06-09T14:40:58.3133333+00:00

    Yes, you can upgrade the Azure Virtual Machines.

    Procedure to upgrade Ubuntu 18.04 to 20.04

    1. Create a backup of your server or vm (take a snapshot)
    2. Upgrade all installed packages of Ubuntu version
    sudo apt update && sudo apt upgrade
    
    1. Reboot the Ubuntu Linux system
      sudo reboot
    2. Install the Ubuntu update tool
      sudo apt install update-manager-core
    
    1. Start the upgrade procedure
      sudo do-release-upgrade
    2. Reboot the box
    sudo reboot
    
    1. Verify upgrades
      lsb_release -a
    11 people found this answer helpful.

  2. JC 0 Reputation points
    2023-08-24T15:58:55.2266667+00:00

    You can perform an in-place upgrade from Ubuntu Server to Ubuntu Pro on Azure. This upgrade enables you to leverage advanced features and extended security maintenance without redeploying your VM. Detailed steps and more information can be found at this link.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.