unable to create a disk

Mda Khmm 1 Reputation point
2021-11-04T09:26:40.507+00:00

Hi All

i have a vhd file and i want to deploy a VM from it. So i have created storage account and i have uploaded this VHD file. From this VHD file when i try to create disk i am getting the below error.

Deployment to resource group 'myresourcegroup' failed.
Additional details from the underlying API that might be helpful: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.

Disk 'myfile.vhd' with blob https://mystoreaccount.blob.core.windows.net:8443/mycontainer/myfile.vhd is of Dynamic VHD type. Please retry with fixed VHD type

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,113 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,683 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,427 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ayoub Kochbati 21 Reputation points
    2021-11-04T09:45:01.637+00:00

    Hello,

    Make sure the following:

    • Do not generalize the VM by using Sysprep.
    • Remove any guest virtualization tools and agents that are installed on the VM (such as VMware tools).
    • The maximum size allowed for the OS VHD on a generation 1 VM is 2 TB

    Regarding this error "myfile.vhd is of Dynamic VHD type. Please retry with fixed VHD type"

    You can convert a VHDX file to VHD, convert a dynamically expanding disk to a fixed-size disk.

    The best way to Upload a VHD to Azure is using Azure PowerShell with AzCopy.exe

    Regards,
    Ayoub

    0 comments No comments