Upgrade to Ubuntu 22.04

Ivet Rafegas Fonoll 20 Puntos de reputación
2025-09-10T14:55:25.4+00:00

We received a message some time ago warning us to upgrade our machines to Ubuntu 22.04:

"On 31 May 2025, Ubuntu 20.04 LTS reached end of support. To ensure continued support and prevent any kind of security breach, we request that you migrate to Ubuntu 22.04 LTS immediately. Please note that we won't be responsible for any kind of security vulnerabilities on any Ubuntu 20.04 clusters or instances after retirement. Required action To prepare for this upgrade on our end, starting 1 May 2025, when you create a new Azure Machine Learning (AML) compute instance or cluster, we automatically install Ubuntu 22.04 on the OS images by default. We tried to auto-migrate as many customers as we could, except in some cases in which customers had a locked RG, or an old compute instance, etcetera that prevented auto migration on our end. Please follow the steps here to complete the migration manually."

I’ve reviewed all the compute clusters we have, and they are still running Ubuntu 20.04. I’ve also tried creating new compute clusters, but they continue to be created with version 20.04.

I checked whether our resource group had any locks (via the portal → Resource groups → Settings → Locks), but none are shown.

What can we do to update these machines? The way we create them is through the Machine Learning Studio UI, using the portal → Compute → New → and selecting the machine.

Any help would be appreciated.

Thank you!

Azure
Azure

Plataforma e infraestructura de informática en la nube para crear, implementar y administrar aplicaciones y servicios a través de una red mundial de centros de datos administrados por Microsoft.


Respuesta aceptada por el autor de la pregunta
Anónimas
2025-09-10T17:26:51.4933333+00:00

Hello Ivet Rafegas Fonoll

Based on the message you received and the actions you've taken, it appears you're encountering a known issue where Azure Machine Learning Studio UI continues to provision compute clusters using Ubuntu 20.04, despite Microsoft's official announcement that support for Ubuntu 20.04 LTS ended on May 31, 2025. According to Microsoft’s guidance, starting May 1, 2025, all new Azure Machine Learning (AML) compute instances and clusters should default to Ubuntu 22.04 LTS. This change was intended to ensure continued support and mitigate security risks associated with outdated operating systems.

This issue is typically caused by legacy configurations, cached defaults, or region-specific rollout delays. Since you’ve confirmed there are no resource group locks, the recommended solution is to bypass the UI and use Azure CLI or Python SDK v2 to explicitly specify Ubuntu 22.04 or newer when creating new compute instances. Alternatively, you can deploy directly from the Azure Marketplace using Ubuntu Pro 22.04 or 24.04 LTS images. For existing clusters, Microsoft advises either in-place upgrades using do-release-upgrade via SSH or side-by-side migration to new VMs. These steps ensure continued support and security compliance. Let me know if you’d like help drafting CLI or SDK commands or guidance on migration.

Reference links : Upgrade your Data Science Virtual Machine to Ubuntu 20.04 , Canonical Ubuntu LTS end of standard support guidance , Ubuntu 24.04 LTS - all plans including Ubuntu Pro

Hope it Helps!

Thank you

¿Le ha resultado útil esta respuesta?

1 persona ha encontrado útil esta respuesta.
0 comentarios No hay comentarios

1 respuesta adicional

Ordenar por: Más antiguo
  1. Ivet Rafegas Fonoll 20 Puntos de reputación
    2025-09-12T08:55:37.6466667+00:00

    Thank you for the responses.

    @Anonymous I suspected it was an issue with the Azure Machine Learning Studio UI. I knew I could get it to work by creating the machines via Azure CLI, but I wanted to see if I could reuse the already created compute clusters by updating their Ubuntu version. I wasn’t able to connect via SSH to those compute clusters, but I eventually updated their image by specifying a Docker image with the desired Ubuntu version through the Python SDK:

    my_env=Environment.from_conda_specification(name='my-env', file_path='./my_env.yml')
    my_env.docker.enabled = True
    my_env.docker.base_image = "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.8-cudnn8-ubuntu22.04:latest"	
    
    my_env_config = RunConfiguration()
    my_env_config.environment = my_env
    
    
    my_step = PythonScriptStep(name="my_step",
                                  script_name='./my_script.py',
                                  compute_target=my_compute_target, 
                                  allow_reuse=False,
                                  runconfig=my_env_config,
                                  arguments=[])
    

    @Manas R Mohanty , that’s interesting. How did you create the machine where you’re running the notebook? Based on my experience and @Anonymous 's suggestion, it seems that creating machines through the UI doesn’t result in the expected Ubuntu version.

    Although I hope this bug in Azure Machine Learning Studio UI gets resolved soon, I consider this thread closed.

    Thanks for your help!

    ¿Le ha resultado útil esta respuesta?

    0 comentarios No hay comentarios

Su respuesta

Las respuestas pueden ser marcadas como "Aceptadas" por el autor de la pregunta y "Recomendadas" por los moderadores, lo que ayuda a los usuarios a saber que la respuesta ha resuelto el problema del autor.