getting error vm not supported for guest patching operations linuxConfiguration.patchSettings.patchMode whiile running az commands to attach data disk but manuallly attaching data disk is working

Abhishek Kumar 0 Reputation points
2024-05-13T06:11:55.0266667+00:00

getting error vm not supported for guest patching operations linuxConfiguration.patchSettings.patchMode whiile running az commands to attach data disk but manuallly attaching data disk is working.

ERROR: (InvalidParameter) The selected VM image is not supported for VM Guest patch operations. Learn more at: https://aka.ms/VMGuestPatchingCompatibility
 2024-05-08 10:34:02 Code: InvalidParameter
 2024-05-08 10:34:02 Message: The selected VM image is not supported for VM Guest patch operations. Learn more at: https://aka.ms/VMGuestPatchingCompatibility
 2024-05-08 10:34:02 Target: linuxConfiguration.patchSettings.patchMode
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
582 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
249 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 43,911 Reputation points Microsoft Employee
    2024-05-13T07:23:08.7866667+00:00

    @Abhishek Kumar Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    • May I know which version of OS are you using with SKU?
    • Is this a custom image?
    • Check the VM Guest patching configuration on the virtual machine to ensure that it is set up correctly. You can find more information on how to configure VM Guest patching at the following link
    • If the VM Guest patching configuration is set up correctly, you can try updating the VM agent on the virtual machine. To update the VM agent, you can follow the steps outlined in the following thread

    Automatic VM guest patching, on-demand patch assessment and on-demand patch installation are supported only on VMs created from images with the exact combination of publisher, offer and sku from the below supported OS images list. Custom images or any other publisher, offer, sku combinations aren't supported. More images are added periodically. Don't see your SKU in the list? Request support by filing out Image Support Request.

    Based on the error message: It means the update type needs to be set to -> Change it from Image default to Azure Orchestrated

    Example: Home -> Virtual Machine-> Updates-> Updates Setting->

    User's image

    User's image

    Additional information: Troubleshoot issues with Azure Update Manager

    Please let us know if you have any further queries. I’m happy to assist you further.    


    Please do not 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