The work-around described above is not a solution for the long term because the agent is updated by Microsoft Azure without user input involved. The default installation and update enables the APM option again, resulting in outage of this platform. The preferred solution is making sure that VMs can be equipped with the “OMS virtual machine agent extension for Windows” with the NOAPM switch enabled. Current documentation on the Microsoft site does not describe an option to do so. (https://docs.microsoft.com/en-us/azure/virtual-machines/windows/extensions-oms). Is there a way to achieve this?