To resolve the OSProvisioningTimedOut error when creating an Azure VM:
- Check Compatibility
Verify that the selected Standard NV18ads A10 v5 GPU size supports the chosen image (e.g., Data Science Ubuntu). Use a compatible image or Ubuntu Server.
- Try Another Image
If issues persist, use Ubuntu Server and install required tools manually.
- Enable Boot Diagnostics
Enable boot diagnostics in the Azure Portal to check VM startup logs for errors.
- Verify Network Settings
Ensure outbound internet access is allowed via the NSG and no restrictive firewall rules are blocking provisioning.
- Recreate VM
Delete the VM and recreate it using Azure CLI or Portal:
az vm create \
--resource-group MyResourceGroup \
--name MyVM \
--image microsoft-dsvm:ubuntu-data-science-vm:ubuntu-20-04:latest \
--size Standard_NV18ads_A10_v5
- Update Drivers
SSH into the VM after creation and install the NVIDIA driver:
sudo apt update
sudo apt install nvidia-driver-510
- Contact Support
If the issue persists, contact Azure Support with boot diagnostics logs.