Frequently asked questions for SQL Server on Windows Azure Virtual Machines

This topic provides answers to some of the most common questions about running SQL Server on Windows Azure Virtual Machines.

Note

This topic focuses on issues specific to SQL Server on Windows VMs. If you are running SQL Server on Linux VMs, see the Linux FAQ.

If your Azure issue is not addressed in this article, visit the Azure forums on MSDN and the Stack Overflow. You can post your issue in these forums, or post to @AzureSupport on Twitter. You also can submit an Azure support request. To submit a support request, on the Azure support page, select Get support.

Frequently Asked Questions

  1. How do I create an Azure virtual machine with SQL Server?

    The easiest solution is to create a Virtual Machine that includes SQL Server. For a tutorial on signing up for Azure and creating a SQL VM from the portal, see Provision a SQL Server virtual machine in the Azure Portal. You can select a virtual machine image that uses pay-per-minute SQL Server licensing, or you can use an image that allows you to bring your own SQL Server license. You also have the option of manually installing SQL Server on a VM with either a freely licensed edition (Developer or Express) or by reusing an on-premises license. If you bring your own license, you must have License Mobility through Software Assurance on Azure. For more information, see Pricing guidance for SQL Server Azure VMs.

  2. What is the difference between SQL VMs and the SQL Database service?

    Conceptually, running SQL Server on an Azure virtual machine is not that different from running SQL Server in a remote datacenter. In contrast, SQL Database offers database-as-a-service. With SQL Database, you do not have access to the machines that host your databases. For a full comparison, see Choose a cloud SQL Server option: Azure SQL (PaaS) Database or SQL Server on Azure VMs (IaaS).

  3. How can I migrate my on-premises SQL Server database to the Cloud?

    First create an Azure virtual machine with a SQL Server instance. Then migrate your on-premises databases to that instance. For data migration strategies, see Migrate a SQL Server database to SQL Server in an Azure VM.

  4. Can I install a second instance of SQL Server on the same VM? Can I change installed features of the default instance?

    Yes. The SQL Server installation media is located in a folder on the C drive. Run Setup.exe from that location to add new SQL Server instances or to change other installed features of SQL Server on the machine. Note that some features, such as Automated Backup, Automated Patching, and Azure Key Vault Integration, only operate against the default instance.

  5. Can I uninstall the default instance of SQL Server?

    Yes. But there are some considerations. As stated in the previous answer, features that rely on the SQL Server IaaS Agent Extension only operate on the default instance. If you uninstall the default instance, the extension continues to look for it and may generate event log errors. These errors are from the following two sources: Microsoft SQL Server Credential Management and Microsoft SQL Server IaaS Agent. One of the errors might be similar to the following:

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.

    If you do decide to uninstall the default instance, also uninstall the SQL Server IaaS Agent Extension as well.

    Note

    A SQL Server Azure virtual machine is billed as described in Pricing guidance for SQL Server Azure VMs. If you remove SQL Server, the usage charges continue. If you no longer need SQL Server, you can deploy a new virtual machine and migrate the data and applications to the new virtual machine. Then you can remove the SQL Server virtual machine.

  6. How do I upgrade to a new version/edition of the SQL Server in an Azure VM?

    Currently, there is no in-place upgrade for SQL Server running in an Azure VM. Create a new Azure virtual machine with the desired SQL Server version/edition, and then migrate your databases to the new server using standard data migration techniques.

  7. How can I install my licensed copy of SQL Server on an Azure VM?

    There are two ways to do this. You can provision one of the virtual machine images that supports licenses. Another option is to copy the SQL Server installation media to a Windows Server VM, and then install SQL Server on the VM. For licensing reasons, you must have License Mobility through Software Assurance on Azure. For more information, see Pricing guidance for SQL Server Azure VMs.

  8. Can I change a VM to use my own SQL Server license if it was created from one of the pay-as-you-go gallery images?

    No. You can not switch from pay-per-minute licensing to using your own license. Create a new Azure virtual machine using one of the BYOL images, and then migrate your databases to the new server using standard data migration techniques.

  9. Are SQL Server Failover Cluster Instances (FCI) supported on Azure VMs?

    Yes. You can create a Windows Failover Cluster on Windows Server 2016 and use Storage Spaces Direct (S2D) for the cluster storage. Alternatively, you can use third-party clustering or storage solutions as described in High availability and disaster recovery for SQL Server in Azure Virtual Machines.

  10. Do I have to pay to license SQL Server on an Azure VM if it is only being used for standby/failover?

    If you have Software Assurance and use License Mobility as described in Virtual Machine Licensing FAQ then you do not have to pay to license one SQL Server participating as a passive secondary replica in an HA deployment. Otherwise, you need to pay to license it.

  11. How are updates and service packs applied on a SQL Server VM?

    Virtual machines give you control over the host machine, including when and how you apply updates. For the operating system, you can manually apply windows updates, or you can enable a scheduling service called Automated Patching. Automated Patching installs any updates that are marked important, including SQL Server updates in that category. Other optional updates to SQL Server must be installed manually.

  12. Is it possible to set up configurations not shown in the virtual machine gallery (For example Windows 2008 R2 + SQL Server 2012)?

    No. For virtual machine gallery images that include SQL Server, you must select one of the provided images.

  13. How do I install SQL Data tools on my Azure VM?

    Download and install the SQL Data tools from Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2013.

Resources

Windows VMs:

Linux VMs: