Manage SQL Server VMs by using the Azure portal

Applies to: SQL Server on Azure VM

In the Azure portal, the SQL virtual machines resource is an independent management service to manage SQL Server on Azure Virtual Machines (VMs) that have been registered with the SQL Server IaaS Agent extension. You can use the resource to view all of your SQL Server VMs simultaneously and modify settings dedicated to SQL Server:

Screenshot of accessing the SQL virtual machines resource in the Azure portal.

The SQL virtual machines resource management point is different to the Virtual machine resource used to manage the underlying VM such as to start it, stop it, or restart it.

Prerequisites

The SQL virtual machines resource is only available to SQL Server VMs that have been registered with the SQL IaaS Agent extension.

Access the resource

To access the SQL virtual machines resource, follow these steps:

  1. Open the Azure portal.

  2. Select All Services.

  3. Enter SQL virtual machines in the search box.

  4. (Optional): Select the star next to SQL virtual machines to add this option to your Favorites menu.

  5. Select SQL virtual machines.

    Screenshot of the Azure portal, All services selected, and the search box highlighted.

  6. The portal lists all SQL Server VMs available within the selected subscription. Choose the one you want to manage to open the SQL virtual machines resource. Use the search box if your SQL Server VM isn't appearing, and make sure you've selected the correct subscription.

    Screenshot of the Azure portal, the SQL virtual machines resource page, with a VM selected.

Selecting your SQL Server VM opens the SQL virtual machines resource.

Tip

The SQL virtual machines resource is for dedicated SQL Server settings. Select the name of the VM under Virtual machine on the Overview page to open settings that are specific to the underlying virtual machine.

Overview page

The Overview page of the SQL virtual machines resource provides basic information about the SQL Server VM, such as the resource group, location, license type, the name of the underlying Azure virtual machine, and storage utilization metrics.

You can also see the status of the SQL Iaas Agent extension under Extension health status. If your status is Unhealthy, or Failed, you can find out more information from the Notifications tab.

The Notifications tab displays information from SQL best practices assessments and about issues with the Extension health.

Screenshot of the Azure portal, the overview pane of the SQL virtual machines resource.

License and edition

Use the Configure page of the SQL virtual machines resource to change your SQL Server licensing metadata to Pay as you go, Azure Hybrid Benefit, or HA/DR for your free Azure replica for disaster recovery.

Screenshot of the Azure portal, SQL virtual machines resource, showing where to change the version and edition of SQL Server VM metadata.

You can also modify the edition of SQL Server from the Configure page as well, such as Enterprise, Standard, or Developer.

Changing the license and edition metadata in the Azure portal is only supported once the version and edition of SQL Server has been modified internally to the VM. To learn more see, change the version and edition of SQL Server on Azure VMs.

Storage configuration

Use the Storage Configuration page of the SQL virtual machines resource to extend your data, log, and tempdb drives. For guidance, review storage configuration and Storage: Performance best practices for SQL Server on Azure VMs.

For example, you can extend your storage:

Screenshot of the Azure portal, SQL virtual machines resource, showing where to extend storage.

Updates

Use the Updates page of the SQL virtual machines resource to enable auto patching of your VM and automatically install Windows and SQL Server updates marked as Important. You can also configure a maintenance schedule here, such as running patching daily, as well as a local start time for maintenance, and a maintenance window.

Screenshot of the Azure portal, SQL virtual machines resource, showing where to configure automated patching and schedule.

To learn more, see, Automated patching.

Backups

Use the Backups page of the SQL virtual machines resource to configure your automated backup settings, such as the retention period, which storage account to use, encryption, whether or not to back up system databases, and a backup schedule.

Screenshot of the Azure portal, SQL virtual machines resource, showing where to configure automated backup and schedule.

To learn more, see, Automated patching.

High availability

Once you've configured your availability group by using the Azure portal, use the High Availability page of the SQL virtual machines resource to monitor the health of your existing Always On availability group.

Screenshot of the Azure portal, SQL virtual machines resource, showing where to check the status of your availability group from the high availability page.

SQL best practices assessment

Use the SQL best practices assessment page of the SQL virtual machines resource to assess the health of your SQL Server VM. Once the feature is enabled, your SQL Server instances and databases are scanned and recommendations are surfaced to improve performance (indexes, statistics, trace flags, and so on) and identify missing best practices configurations.

To learn more, see SQL best practices assessment for SQL Server on Azure VMs.

Security Configuration

Use the Security Configuration page of the SQL virtual machines resource to configure SQL Server security settings such as Azure Key Vault integration.

Screenshot of the Azure portal, the SQL Server security page, where you can enable authentication.

To learn more, see the Security best practices.

Note

The ability to change the connectivity and SQL Server authentication settings after the SQL Server VM is deployed was removed from the Azure portal in April 2023. You can still specify these settings during SQL Server VM deployment, or use SQL Server Management Studio (SSMS) to update these settings manually from within the SQL Server VM after deployment.

SQL IaaS Agent Extension Settings

From the SQL IaaS Agent Extension Settings page, you can repair the extension and you can enable auto upgrade to ensure you're automatically receiving updates for the extension each month.

Screenshot of the SQL IaaS Agent Extension Settings page for your SQL virtual machines resource in the Azure portal.