Skip to content

Commit 01b0570

Browse files
committed
added SQL IaaS extension registration
1 parent 594f676 commit 01b0570

File tree

6 files changed

+88
-3
lines changed

6 files changed

+88
-3
lines changed

articles/cost-management-billing/scope-level/manage-licenses-centrally.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article provides a detailed explanation about how Azure applie
44
keywords:
55
author: bandersmsft
66
ms.author: banders
7-
ms.date: 12/06/2022
7+
ms.date: 04/19/2023
88
ms.topic: conceptual
99
ms.service: cost-management-billing
1010
ms.subservice: ahb
Loading

articles/cost-management-billing/scope-level/overview-azure-hybrid-benefit-scope.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ At a high level, here's how centrally managed Azure Hybrid Benefit works:
3333

3434
1. First, confirm that all your SQL Server VMs are visible to you and Azure by enabling automatic registration of the self-installed SQL server images with the IaaS extension. For more information, see [Register multiple SQL VMs in Azure with the SQL IaaS Agent extension](/azure/azure-sql/virtual-machines/windows/sql-agent-extension-manually-register-vms-bulk).
3535
1. Under **Cost Management + Billing** in the Azure portal, you (the billing administrator) choose the scope and coverage option for the number of qualifying licenses that you want to assign.
36-
:::image type="content" source="./media/overview-azure-hybrid-benefit-scope/set-scope-assign-licenses.png" alt-text="Screenshot showing setting a scope and assigning licenses." lightbox="./media/overview-azure-hybrid-benefit-scope/set-scope-assign-licenses.png" :::
3736
1. Select the date that you want to review the license assignment. For example, you might set to the to the agreement renewal or anniversary date, or the subscription renewal date, for the source of the licenses.
3837

38+
:::image type="content" source="./media/overview-azure-hybrid-benefit-scope/set-scope-assign-licenses.png" alt-text="Screenshot showing setting a scope and assigning licenses." lightbox="./media/overview-azure-hybrid-benefit-scope/set-scope-assign-licenses.png" :::
39+
40+
3941
Let's break down the previous example.
4042

4143
- Detected usage shows that 8 SQL Server standard core licenses and 8 enterprise licenses (equaling 40 normalized cores) need to be assigned to keep the existing level of Azure Hybrid Benefit coverage.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: SQL IaaS extension registration options for Cost Management administrators
3+
description: This article explains the SQL IaaS extension registration options available to Cost Management administrators.
4+
keywords:
5+
author: bandersmsft
6+
ms.author: banders
7+
ms.date: 04/19/2023
8+
ms.topic: conceptual
9+
ms.service: cost-management-billing
10+
ms.subservice: ahb
11+
ms.reviewer: chrisrin
12+
---
13+
14+
# SQL IaaS extension registration options for Cost Management administrators
15+
16+
Normally, you can use the Azure portal to view Azure VMs that are running SQL Server on the [**SQL virtual machines** page](https://portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/Microsoft.SqlVirtualMachine%2FSqlVirtualMachines). 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](/sql/sql-server/usage-and-diagnostic-data-configuration-for-sql-server) is disabled or blocked.
17+
18+
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:
19+
20+
1. You give Microsoft authorization to detect SQL VMs that aren't detected by default.
21+
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.
22+
23+
You must complete SQL IaaS Agent extension registration before you can use [centrally managed Azure Hybrid Benefit for SQL Server](create-sql-license-assignments.md). Otherwise, you can't use Azure to manage all your SQL Servers running in Azure.
24+
25+
>[!NOTE]
26+
> Avoid using centralized Azure Hybrid Benefit 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 registration before you use centralized Azure Hybrid Benefit features.
27+
28+
## Scenarios and options
29+
30+
The following sections help Cost Management users understand how SQL IaaS Agent extension registration relates to centralized Azure Hybrid Benefit. Your first step is to determine whether your SQL Server VMs are already registered.
31+
32+
### Required permissions
33+
34+
You must have client credentials used to view or register your virtual machines with any of the following Azure roles:
35+
- **Virtual Machine contributor**
36+
- **Contributor**
37+
- **Owner**
38+
39+
The permissions are required to perform the following procedure. If you don't have the required permission, contact someone that has the required roles.
40+
41+
### Determine if SQL Server VMs are already registered
42+
43+
1. Navigate to the [SQL virtual machines](https://portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/Microsoft.SqlVirtualMachine%2FSqlVirtualMachines) page in the Azure portal.
44+
2. Select **Automatic SQL Server VM registration** to open the **Automatic registration** page.
45+
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>`.
46+
4. Repeat this process for any other subscriptions that you want to manage with centralized Azure Hybrid Benefit.
47+
48+
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](https://github.com/microsoft/sql-server-samples/tree/master/samples/manage/azure-hybrid-benefit) page on GitHub.
49+
50+
If you determine that your SQL Server VMs aren't registered, there are a few ways to complete the registration:
51+
52+
### Register with the help of your Microsoft account team
53+
54+
The most comprehensive way to register is at the overall customer level. For both of the following options, contact your Microsoft account team.
55+
56+
- Your Microsoft account team can help you add a small amendment that accomplishes the authorization in an overarching way if:
57+
- If you have an Enterprise Agreement that's renewing soon
58+
- If you're a Microsoft Customer Agreement Enterprise customer
59+
- 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.
60+
>[!NOTE]
61+
> This option is time-limited, so if you want to use it, you should investigate it soon.
62+
63+
### Turn on SQL IaaS Agent extension automatic registration
64+
65+
You can use the self-serve registration capability, described at [Automatic registration with SQL IaaS Agent extension](/azure-sql/virtual-machines/windows/sql-agent-extension-automatic-registration-all-vms).
66+
67+
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.
68+
69+
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.
70+
71+
## Registration duration and verification
72+
73+
After you enable automatic registration, 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](https://portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/Microsoft.SqlVirtualMachine%2FSqlVirtualMachines) page in the Azure portal.
74+
75+
## After registration completes
76+
77+
After SQL IaaS Extension registration is complete, we recommended you use Azure Hybrid Benefit for centralized management.
78+
79+
## Next steps
80+
81+
When you're ready, [Create SQL Server license assignments for Azure Hybrid Benefit](create-sql-license-assignments.md). Centrally managed Azure Hybrid Benefit is designed to make it easy to monitor your Azure SQL usage and optimize costs.

articles/cost-management-billing/scope-level/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
- name: Concepts
1616
expanded: false
1717
items:
18+
- name: SQL IaaS extension registration options
19+
href: sql-iaas-extension-registration.md
1820
- name: How Azure applies centrally assigned licenses
1921
href: manage-licenses-centrally.md
2022
- name: SQL Server HADR vs Azure Hybrid Benefit

articles/cost-management-billing/scope-level/transition-existing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article describes the changes and several transition scenarios
44
keywords:
55
author: bandersmsft
66
ms.author: banders
7-
ms.date: 12/06/2022
7+
ms.date: 04/19/2023
88
ms.topic: conceptual
99
ms.service: cost-management-billing
1010
ms.subservice: ahb

0 commit comments

Comments
 (0)