For starters, note that Azure does not support booting from ISO like traditional hypervisors (e.g., VMware, Hyper-V). Azure VMs are created from managed images or marketplace images.
That said, if you're trying to upload an ISO to the VM for installation purposes (e.g., software) — not for booting — here's how to do it:
Option 1: Upload ISO to Azure Storage and mount inside VM
- Upload ISO to Azure Storage account:
- Create a Storage Account and a Blob Container (e.g.,
myisos
). - Use Azure Portal, Azure CLI, or Azure Storage Explorer to upload the ISO:
az storage blob upload \ --account-name <storage_account> \ --container-name myisos \ --name myimage.iso \ --file ./myimage.iso
- Create a Storage Account and a Blob Container (e.g.,
- Generate a SAS URL (Shared Access Signature):
- From the portal or CLI:
az storage blob generate-sas \ --account-name <storage_account> \ --container-name myisos \ --name myimage.iso \ --permissions r \ --expiry 2025-06-01 \ --output tsv
- Combine with blob URL to form a full URL:
https://<account>.blob.core.windows.net/myisos/myimage.iso?<SAS_TOKEN>
- From the portal or CLI:
- Download ISO on the VM:
- RDP/SSH into the VM.
- Run:
- Windows:
Invoke-WebRequest -Uri "<URL>" -OutFile "C:\Users\<username>\Downloads\myimage.iso"
- Linux:
wget "<URL>" -O ~/myimage.iso
- Windows:
- Mount ISO:
- Windows: Right-click → Mount.
- Linux: Create a mount point and mount:
sudo mkdir /mnt/iso sudo mount -o loop ~/myimage.iso /mnt/iso
Keep in mind that booting from ISO is not supported in Azure for general-purpose VMs. For this, you’d need to:
- Use a custom image built from the ISO in Hyper-V or on-prem, then upload as a VHD.
- Use Azure Image Builder.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin