Enable the ‘automatic extension upgrade’ feature on the Azure Monitor agent extension to automatically get new extension versions rolled out to your virtual machines and scale sets in Azure.

Source