Automate Application Upgrade in Azure VMs
Do you think this might help you?
https://docs.microsoft.com/en-us/azure/automation/update-management/update-mgmt-overview#:~:text=You%20can%20use%20Update%20Management,and%20in%20other%20cloud%20environments.&amp;text=For%20multiple%20Azure%20VMs%20by,page%20in%20the%20Azure%20portal.
If your VM is disposable and you can replace it with a new VM then you can also use VM Image galleryfor Linux where you can have images for a VM or multiple VM types and you can update it at one place using Azure DevOps and then update the underlying VM image
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/image-builder-gallery-update-image-version