while converting VHD to image got "Disk is expected to have cookie value 'conectix'"

Eric Wagner 31 Reputation points
2023-03-16T09:38:57.0833333+00:00

Hi, I have created an vhd file from azure disk and trying to create image from it.

Wile doing the conversion getting below error:

code InvalidParameter, message The specified cookie value in VHD footer indicates that disk vhd with blob vhd is not a supported VHD. Disk is expected to have cookie value 'conectix'

Can you please suggest.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
0 comments No comments
{count} vote

Accepted answer
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-03-16T16:20:48.5033333+00:00

    @Eric Wagner

    If you already have an existing VM or disk it shouldn't be necessary to first create a VHD. There are other methods to create an image from an Azure VM or a managed disk. Some of the methods are:

    Using the Azure portal, you can capture an image from a VM by selecting Capture on the upper menu of the Virtual machine page

    Using Azure Compute Gallery, you can create an image definition and image version for your VM or disk3.

    Is there a reason you are following this method? If so could you provide some more details of the VM/disk you are trying to create an image of?

    Normally the VHD process is used when first importing a VM into Zzure. This problem occurs for one of the following reasons:

    • The VHD does not comply with the 1 MB alignment (offset). The supported disk size should be 1 MB * N. For example, the disk should be 102,401 MB.
    • The VHD is corrupted or not supported.

    To resolve this problem, resize the disk to comply with 1 MB alignment:

    Hope this resolves your issue. Let me know if you still need assistance and I will be happy to help.


    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful

Your answer

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