Hello @Siegfried Heintze ,
Welcome back to Microsoft QnA.
To create an Azure Virtual Machine (VM) with an operating system (OS) VHD from an on-premises Windows disk, you will need to perform the following steps:
1.Prepare the on-premises disk:
a)If you are using a physical disk, you will need to attach it to a Windows server and create a VHD of the disk using the Disk Management tool or PowerShell.
b)If you are using a dynamic VHD or VHDX file, you will need to ensure that it is properly configured and contains a bootable Windows installation.
2.Upload the VHD to Azure:
a)You will need to use the Azure Storage Service to upload the VHD to a storage account in Azure. You can use Azure PowerShell, Azure CLI, or the Azure portal to do this.
3.Create the Azure VM:
a)Once the VHD is uploaded to Azure, you can use Azure PowerShell, Azure CLI, or the Azure portal to create a new VM and attach the VHD as the OS disk.
For detailed instructions on how to perform these steps, you can refer to the following Microsoft documentation:
- Prepare a Windows VHD or VHDX to upload to Azure
- Upload a generalized Windows VHD and use it to create new VMs in Azure and Upload a VHD to Azure or copy a managed disk to another region - Azure PowerShell
- Create a VM from a managed image
The above documentations belong to the same parent doc, and provides each step in detail. Hope this helps.
------------
Please accept as answer
and upvote
if the above information is helpful.