Updating Ubuntu VMs in Azure

Bombbe 1,626 Reputation points
2022-04-01T11:15:31.653+00:00

Hi,
I'm currently running few Ubuntu 18.04 VMs in Azure but have small issue updating them from Internet. I know that Ubuntu VMs searches updates from http://azure.archive.ubuntu.com but the issue that the address is probably behind some kinda gateways / traffic managers so the IP address changes and because we are doing our networking restrictions in nsg by the ip it is hard to update and most of the times vms stop receiving updates (because ip-address of the http://azure.archive.ubuntu.com changes and the new ip is not added to the list). Last month it has changes at least few times.

So do anybody know are there some ip pools that I could maybe add to the nsg or are there service tag made for Linux VMs (there are on for the Windows servers, AzureUpdateDelivery (For accessing Windows Updates))? I would not want to open ports 80,443 for whole internet.

189093-image.png

189109-image.png

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,912 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 37,241 Reputation points Microsoft Employee
    2022-04-01T19:26:21.243+00:00

    @Bombbe I understand you are running Ubuntu updates on Azure VMs but facing issues with maintaining a list of IPs in your firewall for http://azure.archive.ubuntu.com. Please correct me if I am misunderstanding anything.

    Unfortunately, there is not currently an equivalent Linux/Ubuntu tag for AzureUpdateDelivery. One thing you might consider is running an Azure Firewall instead of local firewall. This would allow you to use FQDN filtering in your network rules.

    If you are not open to using Azure Firewall consider using your own private mirror or proxy. This thread gives several great workaround suggestion.

    Hope this helps. Let me know if you run into any issues or have further questions.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

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.