Skip to main content Explore View all products (200+) Microsoft Foundry Azure Copilot GitHub Copilot Azure Kubernetes Service (AKS) Azure Cosmos DB Azure Database for PostgreSQL Azure Arc Microsoft Fabric Linux virtual machines in Azure Foundry Models Foundry Agent Service Foundry IQ Foundry Tools Foundry Control Plane Observability in Foundry Control Plane Azure OpenAI in Foundry Models Azure Speech in Foundry Tools Azure Machine Learning View all databases Azure Cosmos DB Azure DocumentDB Azure SQL Azure Database for PostgreSQL Azure Managed Redis Microsoft Fabric Azure Databricks Linux virtual machines in Azure Windows Server on Azure Azure Functions Azure Virtual Machine Scale Sets Azure API Management Azure Container Apps Azure Kubernetes Service (AKS) Azure Kubernetes Fleet Manager Azure Container Registry Azure Red Hat OpenShift Azure Container Instances Azure Container Storage Azure Arc Azure Local Microsoft Defender for Cloud Azure Monitor Microsoft Sentinel Azure Migrate View all solutions (40+) Cloud solutions for small and medium businesses Cloud migration and modernization center Data analytics for AI Azure Databases AI apps and agents Microsoft Marketplace Microsoft Sovereign Cloud AI apps and agents Responsible AI with Azure AI Infrastructure Data analytics for AI Machine learning operations (MLOps) Low-code application development on Azure Integration Services Serverless computing DevOps Migration and modernization center .NET apps migration Databases on Azure Linux on Azure Oracle on Azure SAP on the Microsoft Cloud Adaptive cloud High-performance computing (HPC) Infrastructure as a service (IaaS) Resiliency Azure Essentials Frontier Accelerate for Azure FinOps on Azure Microsoft Marketplace Azure pricing overview Create an Azure account Free Azure services Flexible purchase options Pricing calculator FinOps on Azure Maximize ROI from AI Azure savings plans Azure reservations Azure Hybrid Benefit Virtual Machines Azure SQL Microsoft Foundry Microsoft Fabric Azure Kubernetes Service (AKS) Microsoft Defender for Cloud View more Software Development Companies Microsoft Marketplace Find a partner Resources for Azure partners Get started with Azure Customer stories Analyst reports, white papers, and e-books Videos Learn more about cloud computing Documentation Explore Azure portal Developer resources Quickstart templates Resources for startups Developer community Students Azure for partners Blog Events and Webinars Learn Support Contact Sales Get started with Azure Sign in

SQL Server on Azure Virtual Machines is a cost-effective lift and shift method to run SQL Server on Microsoft Azure with full control of the version, edition of SQL Server, operating system, and VM size. Today, we are revealing a new Resource Provider called Microsoft.SqlVirtualMachine, a management service running internally on Azure clusters to handle SQL Server-specific configurations and deployments on Azure VMs. SQL VM resource provider enables dynamic updates of SQL Server metadata and orchestrates multi-VM deployments required for SQL Server HADR architectures. SQL VM resource provider also enables SQL Server specific browse and monitoring experiences.

With SQL VM resource provider, we are introducing three new resource types:

  • Microsoft.SqlVirtualMachine/SqlVirtualMachine represents SQL Server configurations on an Azure VM. Once created, it links to the existing VM resource with the VirtualMachineResourceId property and gets SQL Server configurations from SQL IaaS Extension properties. SqlVirtualMachine resource type has a property to represent the SQL Server License type. By setting the SQL Server License type to AHUB or PAYG, the SQL Server license can be dynamically updated even after the VM instance is deployed without any downtime.
  • Microsoft.SqlVirtualMachine/SqlVirtualMachineGroup represents a group of SQL VMs that will participate in an HADR architecture. Today we support SQL Server 2016 and SQL Server 2017 Always ON Availability Groups on an Active Directory domain joined windows failover cluster with Windows Server 2016. Creating a resource of SqlVirtualMachineGroups type will configure the windows failover cluster to host Always ON AG.
  • Microsoft.SqlVirtualMachine/Sql Virtual Machine Groups/Availability Group Listener represents an Always ON Availability Group Listener which can be connected from any VM in the same VNet.

Swagger spec for SQL VM resource provider with examples for all REST APIs can be found on GitHub.

SQL VM Resource Provider sets up the infrastructure for two new features, AHB for SQL VM and Automated Always ON AG. AHB for SQL VM brings significant cost savings for existing PAYG SQL VMs via simple PowerShell or Azure CLI calls. The Automated Always ON AG feature hides the details of Azure infrastructure from the user and automates the manual steps required for configuring Always ON AG on Azure VM.

To use SQL VM resource provider, register your subscription with the Microsoft.SqlVirtualMachine provider. You can register with the Microsoft.SqlVirtualMachine provider on the Azure portal. Start by selecting “All Services” and navigating to “Subscriptions.” From there you can select the “Resource Providers.” You can also register your subscription with Microsoft.SqlVirtualMachine provider by running the following power shell command:

Register-AzureRmResourceProvider -ProviderNamespace Microsoft.SqlVirtualMachine

SQL VM RP is available for all VM instances deployed from Azure Marketplace SQL images, together with self-deployed SQL Server on Azure VMs. You can create a SqlVirtualMachine resource and link to an existing Azure VM running SQL Server created from a generalized VHD. Register with the Microsoft.SqlVirtualMachine provider today to leverage flexible licensing and enhanced manageability features for SQL Server running on Azure VM.

WE ARE MICROSOFT

Explore Microsoft Foundry

The future of AI starts here. Envision your next great AI app with the latest technologies. Get started with Azure.