Install Apple macOS computer on Azure Virtual Machine
MAC OS is not a general supported version of operating system that can be directly installed in azure premises. Moreover, Azure support Windows and Linux flavors. So, we I am explaining a way, to show how we can setup an iOS operating system in an Azure Virtual machine with the help of Hyper-V
We are relaying on builds available in two GitHub repositories for this purpose. You may download the releases from those repositories or use the necessary packages (MAC OS UEFI image and Mac OS recovery image) only that I have uploaded below
As the first step, create an azure Windows virtual machine with at least 16GB RAM and 8 CPU (To make sure that your iOS has enough resources available). I have created a Windows 11 virtual machine with 32 CPU and 32GB RAM
Open PowerShell in the VM and install the Hypervisor components and restart the VM to enable the Hyper-V platform in the computer.
Enable Hypervisor Platform and restart the workstation
Enable-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform -All
Enable Microsoft Hyper-V and restart the workstation
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

Once the computer is ready, prepare the MAC OS UEFI image and Mac OS recovery image. Copy the files indicated above and kept in a suitable folder in the VM

Extract the files also. Copy the ISO image in a folder in C: drive as below

Mount the disk as a drive and the following folders can be found inside

Now we wanted to process the Mac OS recovery image with the help of Python program. If you don’t have Python installed, install it from Microsoft store

Open the macrecovery folder in the downloaded files as below

Open a command prompt within the folder

Now you need to find the command to be executed from the following website
Copy the command for the latest version something shown as below:

python3 ./macrecovery.py -b Mac-937A206F2EE63C01 -m 00000000000000000 download
Run the command in the command window

The command will download the Mac Sonoma recovery file and download should complete as beow:

There should be a new folder created as below:

Copy the folder and paste it inside the UEFI drive as below:

After that, Eject the UEFI drive
Now we are going to start creating the virtual machine in the Hyper-V console. Please make sure that you follow the similar steps and settings shown in the below screenshots








Finish the steps and go to the Hyper-V console again and open the settings of the Virtual machine. Make sure that, you are following the exact settings as shown in the settings window:




Add a new Hard disk from the SCSI controller

Select the UEFI vhdx file as the disk as shown below:

Set the boot order as shown below:

Connect the vm from Hyper V console and press start to start preparing the mac machine

You should see the following screen after couple of minutes to start the disk preparation

Select the Disk Utility and Erase the disk, give a name as desired


Once the disk is ready, close the window

Now, we are going to start the Re-installation by selecting the option as shown below:



The installation will prompt you to do the desired settings as below after around 30 minutes

Finish the settings to get your iOS virtual machine in your Azure windows virtual machine 🙂
Congratulations!
