How to disable Auto update for my instance

Wazen Shbair 20 Reputation points
2025-01-26T10:50:59.31+00:00

How I can disable the auto-updates of an instance with Ubuntu 20.4 on Azure ?

Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
339 questions
0 comments No comments
{count} votes

Accepted answer
  1. Abiola Akinbade 22,730 Reputation points
    2025-01-26T11:24:03.8333333+00:00

    Hello Wazen Shbair,

    Thanks for your question

    Ubuntu uses the unattended-upgrades package to handle automatic updates. You can disable this service to prevent automatic updates.

    See and remove

    sudo systemctl stop unattended-upgrades
    sudo systemctl disable unattended-upgrades
    
    #Then 
    
    sudo nano /etc/apt/apt.conf.d/20auto-upgrades
    
    

    See 3rd part doc: https://linuxconfig.org/disable-automatic-updates-on-ubuntu-22-04-jammy-jellyfish-linux

    Also check Azure update management:

    1.	Go to your VM in the Azure Portal.
    
    2.	Navigate to Update management under the Operations section.
    
    3.	If your VM is enrolled, consider removing it from the update deployment schedule.
    

    https://learn.microsoft.com/en-us/azure/automation/update-management/overview

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


0 additional answers

Sort by: Most helpful

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.