Share via

While computing virtual machine coming up with following hyper v error

Varma 1,620 Reputation points
2024-02-16T14:43:51.3233333+00:00

polling after CreateOrUpdate: Code="Conflict" Message="The resource with id '/subscriptions/93048f2d-2d0f-44cc-b12c-4df25a3c5ff5/resourceGroups/vtest/providers/Microsoft.Compute/virtualMachines/pkrvm19skq7z0er' has a different Hypervisor generation ['V2'] than the parent gallery image Hypervisor generation ['V1']." Please suggest I am using following VM size

vm_size                             = "Standard_D4s_v4"
Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


1 answer

Sort by: Most helpful
  1. shiva patpi 13,396 Reputation points Microsoft Employee Moderator
    2024-02-18T15:49:49.5666667+00:00

    Varma ,

    As per the error message it clearly states that existing Image gallery was prepared with HyperV generation 1 and now you are creating a Virtual Machine using that image gallery by using a VM Sku which Supports only V2.

    You might have to re-create the original Image with appropriate settings which supports HyperVisor Generation2.

    Take a look at below document which shows SKUs vs Generation !

    https://learn.microsoft.com/en-us/azure/virtual-machines/generation-2#generation-2-vm-sizes

    Take a look at the below previous discussion:

    https://learn.microsoft.com/en-us/answers/questions/589997/how-to-get-list-of-vmsizes-which-support-only-gene

    Regards,

    Shiva.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.