SQL IaaS extension registration options for Cost Management administrators

This article helps Cost Management administrators understand and address the SQL IaaS registration requirement before they use centrally managed Azure Hybrid Benefit for SQL Server. The article explains the steps that you, or someone in your organization, uses to complete to register SQL Server with the SQL IaaS Agent extension. Here’s the order of steps that you follow. We cover the steps with more detail later in the article.

  1. Determine whether you already have the required Azure permissions needed. You attempt to check to verify that registration is already done.
  2. If you don't have the required permissions, you must find someone in your organization that has the required permissions to help you.
  3. Complete the check to verify whether registration is already done for your subscriptions. If registration is done, you can go ahead to use centrally managed Azure Hybrid Benefit.
  4. If registration isn’t complete, then you or the person assisting you need to choose one of the options to complete the registration.

Before you begin

Normally, you can use the Azure portal to view Azure VMs that are running SQL Server on the SQL virtual machines page. However, there are some situations where Azure can't detect that SQL Server is running in a virtual machine. The most common situation is when SQL Server VMs are created using custom images that run SQL Server 2014 or earlier. Or if the SQL CEIP service is disabled or blocked.

When the Azure portal doesn't detect SQL Server running on your VMs, it's a problem because you can't fully manage Azure SQL. In this situation, you can't verify that you have enough licenses needed to cover your SQL Server usage. Microsoft provides a way to resolve this problem with SQL IaaS Agent extension registration. At a high level, SQL IaaS Agent extension registration works in the following manner:

  1. You give Microsoft authorization to detect SQL VMs that aren't detected by default.
  2. The registration process runs at a subscription level or overall customer level. When registration completes, all current and future SQL VMs in the registration scope become visible.

You must complete SQL IaaS Agent extension registration before you can use centrally managed Azure Hybrid Benefit for SQL Server. Otherwise, you can't use Azure to manage all your SQL Servers running in Azure.

Note

Avoid using centralized managed Azure Hybrid Benefit for SQL Server before you complete SQL IaaS Agent extension registration. If you use centralized Azure Hybrid Benefit before you complete SQL IaaS Agent extension registration, new SQL VMs may not be covered by the number of licenses you have assigned. This situation could lead to incorrect license assignments and might result in unnecessary pay-as-you-go charges for SQL Server licenses. Complete SQL IaaS Agent extension registration before you use centralized Azure Hybrid Benefit features.

Scenarios and options

The following sections help Cost Management users understand their options and the detailed steps for how to complete SQL IaaS Agent extension registration.

Determine your permissions

You must have client credentials used to view or register your virtual machines with any of the following Azure roles:

  • Virtual Machine contributor
  • Contributor
  • Owner

The permissions are required to perform the following procedure.

Inadequate permission

If you don’t have the required permission, get assistance from someone that has one of the required roles.

Complete the registration check

  1. Navigate to the SQL virtual machines page in the Azure portal.
  2. Select Automatic SQL Server VM registration to open the Automatic registration page.
  3. If automatic registration is already enabled, a message appears at the bottom of the page indicating Automatic registration has already been enabled for subscription <SubscriptionName>.
  4. Repeat this process for any other subscriptions that you want to manage with centralized Azure Hybrid Benefit.

Alternatively, you can run a PowerShell script to determine if there are any unregistered SQL Servers in your environment. You can download the script from the azure-hybrid-benefit page on GitHub.

Options to complete registration

If you determine that you have unregistered SQL Server VMs, use one of the two following methods to complete the registration:

Register with the help of your Azure account team

The most comprehensive way to register is at the overall customer level. For both of the following situations, contact your Azure account team.

  • Your Azure account team can help you add a small amendment that accomplishes the authorization in an overarching way if:
    • If you have an Enterprise Agreement that's renewing soon
    • If you're a Microsoft Customer Agreement Enterprise customer
  • If you have an Enterprise Agreement that isn't up for renewal, there's another option. A leader in your organization can use an email template to provide Microsoft with authorization.

    Note

    This option is time-limited, so if you want to use it, you should investigate it soon.

Turn on SQL IaaS Agent extension automatic registration

You can use the self-serve registration capability, described at Automatic registration with SQL IaaS Agent extension.

Because of the way that roles and permissions work in Azure, including segregation of duties, you may not be able to access or complete the extension registration process yourself. If you're in that situation, you need find the subscription contributors for the scope you want to register. Then, get their help to complete the process.

You can enable automatic registration in the Azure portal for a single subscription, or for multiple subscriptions suing the PowerShell script mentioned previously. We recommend that you complete the registration process for all of your subscriptions so you can view all of your Azure SQL infrastructure.

Registration duration and verification

After you complete either of the preceding automatic registration options, it can take up to 48 hours to detect all your SQL Servers. When complete, all your SQL Server virtual machines should be visible on the SQL virtual machines page in the Azure portal.

When registration completes

After you complete the SQL IaaS Extension registration, we recommended you use Azure Hybrid Benefit for centralized management. If you're unsure whether registration is finished, you can use the steps in Complete the Registration Check.

Next steps

When you're ready, Create SQL Server license assignments for Azure Hybrid Benefit. Centrally managed Azure Hybrid Benefit is designed to make it easy to monitor your Azure SQL usage and optimize costs.