An Azure service that is used to provision Windows and Linux virtual machines.
The deployment is failing because the selected VM size uses an uninitialized ephemeral (local SSD) disk, and tempdb is configured to be placed on that local SSD. On these NVMe-based ephemeral disks, SQL Server setup and the SQL IaaS extension can fail, which surfaces as extension errors during deployment.
From the configuration:
- VM size:
Standard D2ds v4(ad-series size with ephemeral storage) -
SQL tempdb storage: Use local SSD drive
For affected VM sizes, placing tempdb on the local temp disk is unsupported and causes SQL Server deployment failures.
To resolve the issue without paying for ESU plans:
- Use a non-ephemeral VM SKU
- Choose a VM size that does not have the lowercase
din its name (no ephemeral local SSD), for example use a size likeD2s v4instead ofD2ds v4, or another size from the recommended VM size list. - These sizes place
tempdbon the same storage as the SQL data files and avoid the RAW NVMe temp disk issue.
- Choose a VM size that does not have the lowercase
- Or keep the current VM family but avoid local SSD for
tempdb- In the Azure portal, on the SQL Server settings page while deploying the SQL Server VM image:
- Under Storage configuration, select Change configuration.
- Expand tempdb storage.
- Select any option other than
Use local SSD drive(for example, placetempdbon theC:drive or on one of the remote data/log disks).
- Redeploy the VM after changing this setting.
- In the Azure portal, on the SQL Server settings page while deploying the SQL Server VM image:
- If deploying Windows-only and installing SQL Server manually (alternative approach)
- Deploy a Windows Server-only image on the same VM size.
- Format and initialize the temporary NVMe disk following the documented steps.
- Install SQL Server manually and configure
tempdbon non-ephemeral storage. - If
tempdbis placed on the local SSD, the disk must be reinitialized before starting SQL Server every time the VM is restarted or deallocated.
Also note:
- When this failure occurs, the VM itself may succeed, but the SQL Server installation fails. The VM should be deleted to avoid charges and then redeployed using one of the methods above.
References:
- SQL Server on Azure VM fails to deploy or SQL Server instance fails to come online
- SQL Server on Azure VM fails to deploy or SQL Server instance fails to come online – Cause
- SQL Server on Azure VM fails to deploy or SQL Server instance fails to come online – Workaround
- SQL Server on Azure VM fails to deploy or SQL Server instance fails to come online – Impacted VMs
- Provision SQL Server on Azure VM (Azure portal) – Basic settings
- Quickstart: Create SQL Server on a Windows virtual machine in the Azure portal – Select a SQL Server VM image