Skip to content

Commit 2de4b35

Browse files
committed
edited aditya's changes
1 parent a48f6da commit 2de4b35

8 files changed

+177
-190
lines changed

articles/azure-sql/virtual-machines/linux/sql-agent-extension-register-vm-linux.md

Lines changed: 40 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,25 @@ ms.devlang: na
1111
ms.topic: how-to
1212
ms.tgt_pltfrm: vm-Linux-sql-server
1313
ms.workload: iaas-sql-server
14-
ms.date: 09/01/2021
14+
ms.date: 10/26/2021
1515
ms.author: adbadram
1616
ms.reviewer: mathoma
1717
ms.custom: devx-track-azurecli, devx-track-azurepowershell, contperf-fy21q2
1818

1919
---
20-
21-
# Register SQL Server VM with SQL IaaS Agent Extension (Linux)
20+
# Register Linux SQL Server VM with SQL IaaS Agent Extension
2221
[!INCLUDE[appliesto-sqlvm](../../includes/appliesto-sqlvm.md)]
2322

23+
> [!div class="op_single_selector"]
24+
> * [Windows](../windows/sql-agent-extension-manually-register-single-vm.md)
25+
> * [Linux](sql-agent-extension-register-vm-linux.md)
26+
27+
2428
Register your SQL Server VM with the [SQL IaaS Agent extension](sql-server-iaas-agent-extension-automate-management.md) to unlock a wealth of feature benefits for your SQL Server on Linux Azure VM.
2529

2630
## Overview
2731

28-
Registering with the [SQL Server IaaS Agent extension](sql-server-iaas-agent-extension-automate-management.md) creates the [**SQL virtual machine** _resource_](manage-sql-vm-portal.md) within your subscription, which is a _separate_ resource from the virtual machine resource. Unregistering your SQL Server VM from the extension will remove the **SQL virtual machine** _resource_ but will not drop the actual virtual machine.
32+
Registering with the [SQL Server IaaS Agent extension](sql-server-iaas-agent-extension-automate-management.md) creates the [**SQL virtual machine** _resource_](manage-sql-vm-portal.md) within your subscription, which is a _separate_ resource from the virtual machine resource. Unregistering your SQL Server VM from the extension removes the **SQL virtual machine** _resource_ but will not drop the actual virtual machine.
2933

3034
To utilize the SQL IaaS Agent extension, you must first [register your subscription with the **Microsoft.SqlVirtualMachine** provider](#register-subscription-with-rp), which gives the SQL IaaS extension the ability to create resources within that specific subscription.
3135

@@ -37,16 +41,17 @@ To utilize the SQL IaaS Agent extension, you must first [register your subscript
3741
To register your SQL Server VM with the extension, you'll need:
3842

3943
- An [Azure subscription](https://azure.microsoft.com/free/).
40-
- An Azure Resource Model [Windows Server 2008 (or greater) virtual machine](../../../virtual-machines/windows/quick-create-portal.md) with [SQL Server 2008 (or greater)](https://www.microsoft.com/sql-server/sql-server-downloads) deployed to the public or Azure Government cloud.
44+
- An Azure Resource Model [Ubuntu Linux virtual machine](../../../virtual-machines/linux/quick-create-portal.md) with [SQL Server 2017 (or greater)](https://www.microsoft.com/sql-server/sql-server-downloads) deployed to the public or Azure Government cloud.
4145
- The latest version of [Azure CLI](/cli/azure/install-azure-cli) or [Azure PowerShell (5.0 minimum)](/powershell/azure/install-az-ps).
42-
- Azure Virtual Machine running Ubuntu Linux.
4346

4447
## Register subscription with RP
4548

4649
To register your SQL Server VM with the SQL IaaS Agent extension, you must first register your subscription with the **Microsoft.SqlVirtualMachine** resource provider (RP). This gives the SQL IaaS Agent extension the ability to create resources within your subscription. You can do so by using the Azure portal, the Azure CLI, or Azure PowerShell.
4750

4851
### Azure portal
4952

53+
Register your subscription with the resource provider by using the Azure portal:
54+
5055
1. Open the Azure portal and go to **All Services**.
5156
1. Go to **Subscriptions** and select the subscription of interest.
5257
1. On the **Subscriptions** page, select **Resource providers** under **Settings**.
@@ -61,78 +66,83 @@ Register your Azure subscription with the **Microsoft.SqlVirtualMachine** provid
6166

6267
# [Azure CLI](#tab/bash)
6368

69+
Register your subscription with the resource provider by using the Azure CLI:
70+
6471
```azurecli-interactive
6572
# Register the SQL IaaS Agent extension to your subscription
6673
az provider register --namespace Microsoft.SqlVirtualMachine
6774
```
6875

6976
# [Azure PowerShell](#tab/powershell)
7077

78+
Register your subscription with the resource provider by using Azure PowerShell:
79+
7180
```powershell-interactive
7281
# Register the SQL IaaS Agent extension to your subscription
7382
Register-AzResourceProvider -ProviderNamespace Microsoft.SqlVirtualMachine
7483
```
7584

85+
## Register VM
7686

77-
## Lightweight mode
78-
79-
SQL IaaS Agent extension on Linux comes only with Lightweight mode where changing the license type and edition of SQL Server is supported. Use the Azure CLI or Azure PowerShell to register your SQL Server VM with the extension in lightweight mode for limited functionality.
87+
The SQL IaaS Agent extension on Linux is only available in lightweight mode, which supports only changing the license type and edition of SQL Server. Use the Azure CLI or Azure PowerShell to register your SQL Server VM with the extension in lightweight mode for limited functionality.
8088

8189
Provide the SQL Server license type as either pay-as-you-go (`PAYG`) to pay per usage, Azure Hybrid Benefit (`AHUB`) to use your own license, or disaster recovery (`DR`) to activate the [free DR replica license](business-continuity-high-availability-disaster-recovery-hadr-overview.md#free-dr-replica-in-azure).
8290

8391
# [Azure CLI](#tab/bash)
8492

8593
Register a SQL Server VM in lightweight mode with the Azure CLI:
8694

87-
```azurecli-interactive
88-
# Register Enterprise or Standard self-installed VM in Lightweight mode
89-
az sql vm create --name <vm_name> --resource-group <resource_group_name> --location <vm_location> --license-type <license_type>
90-
```
95+
```azurecli-interactive
96+
# Register Enterprise or Standard self-installed VM in Lightweight mode
97+
az sql vm create --name <vm_name> --resource-group <resource_group_name> --location <vm_location> --license-type <license_type>
98+
```
9199

92100
# [Azure PowerShell](#tab/powershell)
93101

94102
Register a SQL Server VM in lightweight mode with Azure PowerShell:
95103

96-
```powershell-interactive
97-
# Get the existing compute VM
98-
$vm = Get-AzVM -Name <vm_name> -ResourceGroupName <resource_group_name>
104+
```powershell-interactive
105+
# Get the existing compute VM
106+
$vm = Get-AzVM -Name <vm_name> -ResourceGroupName <resource_group_name>
107+
# Register SQL VM with 'Lightweight' SQL IaaS agent
108+
New-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -Location $vm.Location `
109+
-LicenseType <license_type> -SqlManagementType LightWeight
110+
```
99111

100-
# Register SQL VM with 'Lightweight' SQL IaaS agent
101-
New-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -Location $vm.Location `
102-
-LicenseType <license_type> -SqlManagementType LightWeight
103-
```
104112
---
113+
105114
## Verify registration status
106115

107116
You can verify if your SQL Server VM has already been registered with the SQL IaaS Agent extension by using the Azure portal, the Azure CLI, or Azure PowerShell.
108117

118+
109119
### Azure portal
110120

111-
To verify the registration status using the Azure portal, follow these steps:
121+
Verify the registration status by using the Azure portal:
112122

113123
1. Sign in to the [Azure portal](https://portal.azure.com).
114124
1. Go to your [SQL Server VMs](manage-sql-vm-portal.md).
115125
1. Select your SQL Server VM from the list. If your SQL Server VM is not listed here, it likely hasn't been registered with the SQL IaaS Agent extension.
116126

117127
### Command line
118128

119-
Verify current SQL Server VM registration status using either Azure CLI or Azure PowerShell. `ProvisioningState` will show `Succeeded` if registration was successful.
129+
Verify current SQL Server VM registration status using either Azure CLI or Azure PowerShell. `ProvisioningState` shows as `Succeeded` if registration was successful.
120130

121131
# [Azure CLI](#tab/bash)
122132

123-
To verify the registration status using the Azure CLI, run the following code snippet:
133+
Verify the registration status by using the Azure CLI:
124134

125-
```azurecli-interactive
126-
az sql vm show -n <vm_name> -g <resource_group>
127-
```
135+
```azurecli-interactive
136+
az sql vm show -n <vm_name> -g <resource_group>
137+
```
128138

129139
# [Azure PowerShell](#tab/powershell)
130140

131-
To verify the registration status using the Azure PowerShell, run the following code snippet:
141+
Verify the registration status by using the Azure PowerShell:
132142

133-
```powershell-interactive
134-
Get-AzSqlVM -Name <vm_name> -ResourceGroupName <resource_group>
135-
```
143+
```powershell-interactive
144+
Get-AzSqlVM -Name <vm_name> -ResourceGroupName <resource_group>
145+
```
136146

137147
---
138148

articles/azure-sql/virtual-machines/linux/sql-server-iaas-extension-linux.md

Lines changed: 34 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ ms.devlang: na
1111
ms.topic: conceptual
1212
ms.tgt_pltfrm: vm-windows-sql-server
1313
ms.workload: iaas-sql-server
14-
ms.date: 10/15/2021
14+
ms.date: 10/26/2021
1515
ms.author: adbadram
1616
ms.reviewer: mathoma
1717
---
1818
# SQL Server IaaS Agent extension for Linux
1919
[!INCLUDE[appliesto-sqlvm](../../includes/appliesto-sqlvm.md)]
2020

21+
> [!div class="op_single_selector"]
22+
> * [Windows](../windows/sql-server-iaas-agent-extension-automate-management.md)
23+
> * [Linux](sql-server-iaas-extension-linux.md)
2124
2225
The SQL Server IaaS Agent extension (SqlIaasExtension) runs on SQL Server on Linux Azure Virtual Machines (VMs) to automate management and administration tasks.
2326

@@ -26,11 +29,11 @@ This article provides an overview of the extension. See [Register with the exten
2629

2730
## Overview
2831

29-
The SQL Server IaaS Agent extension allows for integration with the Azure portal and allows following benefits for SQL Server on Azure VMs:
32+
The SQL Server IaaS Agent extension enables integration with the Azure portal and unlocks the following benefits for SQL Server on Linux Azure VMs:
3033

31-
- **Compliance**: The extension offers a simplified method of fulfilling the requirement to notify Microsoft that the Azure Hybrid Benefit has been enabled as is specified in the product terms. This process negates needing to manage licensing registration forms for each resource.
34+
- **Compliance**: The extension offers a simplified method to fulfill the requirement of notifying Microsoft that the Azure Hybrid Benefit has been enabled as is specified in the product terms. This process negates needing to manage licensing registration forms for each resource.
3235

33-
- **Simplified license management**: The extension simplifies SQL Server license management, and allows you to quickly identify SQL Server VMs with the Azure Hybrid Benefit enabled using the [Azure portal](manage-sql-vm-portal.md), PowerShell or the Azure CLI:
36+
- **Simplified license management**: The extension simplifies SQL Server license management, and allows you to quickly identify SQL Server VMs with the Azure Hybrid Benefit enabled using the [Azure portal](manage-sql-vm-portal.md), Azure PowerShell or the Azure CLI:
3437

3538
# [PowerShell](#tab/azure-powershell)
3639

@@ -47,77 +50,61 @@ The SQL Server IaaS Agent extension allows for integration with the Azure portal
4750

4851
- **Free**: There is no additional cost associated with the extension.
4952

50-
> [!IMPORTANT]
51-
> The SQL IaaS Agent extension collects data for the express purpose of giving customers optional benefits when using SQL Server within Azure Virtual Machines. Microsoft will not use this data for licensing audits without the customer's advance consent. See the [SQL Server privacy supplement](/sql/sql-server/sql-server-privacy#non-personal-data) for more information.
5253

53-
## Installation
54-
55-
Register your SQL Server VM with the SQL Server IaaS Agent extension to create the [**SQL virtual machine** _resource_](manage-sql-vm-portal.md) within your subscription, which is a _separate_ resource from the virtual machine resource. Unregistering your SQL Server VM from the extension will remove the **SQL virtual machine** _resource_ but will not drop the actual virtual machine.
56-
57-
Today SQL Server IaaS Agent extension is only available in lightweight mode. You can manually register Azure Linux Virtual machine using following command
58-
# [Azure CLI](#tab/bash)
59-
60-
Register a SQL Server VM in lightweight mode with the Azure CLI:
6154

62-
```azurecli-interactive
63-
# Register Enterprise or Standard self-installed VM in Lightweight mode
64-
az sql vm create --name <vm_name> --resource-group <resource_group_name> --location <vm_location> --license-type <license_type>
65-
```
66-
67-
# [Azure PowerShell](#tab/powershell)
55+
## Installation
6856

69-
Register a SQL Server VM in lightweight mode with Azure PowerShell:
57+
[Register](sql-agent-extension-register-vm-linux.md) your SQL Server VM with the SQL Server IaaS Agent extension to create the [**SQL virtual machine** _resource_](manage-sql-vm-portal.md) within your subscription, which is a _separate_ resource from the virtual machine resource. Unregistering your SQL Server VM from the extension will remove the **SQL virtual machine** _resource_ from your subscription but will not drop the actual virtual machine.
7058

71-
```powershell-interactive
72-
# Get the existing compute VM
73-
$vm = Get-AzVM -Name <vm_name> -ResourceGroupName <resource_group_name>
59+
The SQL Server IaaS Agent extension for Linux is currently only available in lightweight mode.
7460

75-
# Register SQL VM with 'Lightweight' SQL IaaS agent
76-
New-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -Location $vm.Location `
77-
-LicenseType <license_type> -SqlManagementType LightWeight
78-
```
7961

80-
## Verify status of extension
62+
## Verify extension status
8163

8264
Use the Azure portal or Azure PowerShell to check the status of the extension.
8365

8466
### Azure portal
8567

86-
Verify the extension is installed in the Azure portal.
68+
Verify the extension is installed by using the Azure portal.
8769

88-
Select **All settings** in the virtual machine pane, and then select **Extensions**. You should see the **SqlIaasExtension** extension listed.
70+
Go to your **Virtual machine** resource in the Azure portal (not the *SQL virtual machines* resource, but the resource for your VM). Select **Extensions** under **Settings**. You should see the **SqlIaasExtension** extension listed, as in the following example:
8971

90-
![Status of the SQL Server IaaS Agent extension in the Azure portal](./media/sql-server-iaas-agent-extension-automate-management/azure-rm-sql-server-iaas-agent-portal.png)
72+
![Check the Status of the SQL Server IaaS Agent extension SqlIaaSExtension in the Azure portal](../windows/media/sql-server-iaas-agent-extension-automate-management/azure-rm-sql-server-iaas-agent-portal.png)
9173

9274

9375
### Azure PowerShell
9476

9577
You can also use the **Get-AzVMSqlServerExtension** Azure PowerShell cmdlet:
9678

97-
```powershell-interactive
98-
Get-AzVMSqlServerExtension -VMName "vmname" -ResourceGroupName "resourcegroupname"
99-
```
79+
```powershell-interactive
80+
Get-AzVMSqlServerExtension -VMName "vmname" -ResourceGroupName "resourcegroupname"
81+
```
10082

10183
The previous command confirms that the agent is installed and provides general status information. You can get specific status information about automated backup and patching by using the following commands:
10284

103-
```powershell-interactive
104-
$sqlext = Get-AzVMSqlServerExtension -VMName "vmname" -ResourceGroupName "resourcegroupname"
105-
$sqlext.AutoPatchingSettings
106-
$sqlext.AutoBackupSettings
107-
```
85+
```powershell-interactive
86+
$sqlext = Get-AzVMSqlServerExtension -VMName "vmname" -ResourceGroupName "resourcegroupname"
87+
$sqlext.AutoPatchingSettings
88+
$sqlext.AutoBackupSettings
89+
```
10890

10991
## Limitations
11092

111-
The SQL IaaS Agent extension only supports:
93+
The Linux SQL IaaS Agent extension has the following limitations:
94+
95+
- Only SQL Server VMs running on the Ubuntu Linux operating system are supported. Other Linux distributions are not currently supported.
96+
- SQL Server VMs running Ubuntu Linux Pro are not supported.
97+
- SQL Server VMs running on generalized images are not supported.
98+
- Only SQL Server VMs deployed through the Azure Resource Manager are supported. SQL Server VMs deployed through the classic model are not supported.
99+
100+
## Privacy statement
101+
102+
When using SQL Server on Azure VMs and the SQL IaaS extension, consider the following privacy statements:
112103

113-
- SQL Server VMs running Ubuntu Linux Operating system is only supported. Other Linux distributions are not supported today.
114-
- SQL Server VMs running Ubuntu Pro Linux are not supported.
115-
- SQL Server VMs running on the generalized images are not supported.
116-
- SQL Server VMs deployed through the Azure Resource Manager. SQL Server VMs deployed through the classic model are not supported.
104+
- **Data collection**: The SQL IaaS Agent extension collects data for the express purpose of giving customers optional benefits when using SQL Server on Azure Virtual Machines. Microsoft **will not use this data for licensing audits** without the customer's advance consent. See the [SQL Server privacy supplement](/sql/sql-server/sql-server-privacy#non-personal-data) for more information.
117105

118-
## In-region data residency
106+
- **In-region data residency**: SQL Server on Azure VMs and SQL IaaS Agent Extension do not move or store customer data out of the region in which the VMs are deployed.
119107

120-
Azure SQL virtual machine and the SQL IaaS Agent Extension do not move or store customer data out of the region in which they are deployed.
121108

122109
## Next steps
123110

articles/azure-sql/virtual-machines/linux/sql-server-on-linux-vm-what-is-iaas-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ ms.subservice: service-overview
1010

1111
ms.topic: overview
1212
ms.workload: iaas-sql-server
13-
ms.date: 04/10/2018
13+
ms.date: 10/26/2021
1414
ms.author: mathoma
1515
ms.reviewer: jroth
1616
---
17-
# Overview of SQL Server on Azure Virtual Machines (Linux)
17+
# Overview of SQL Server on Linux Azure Virtual Machines
1818
[!INCLUDE[appliesto-sqlvm](../../includes/appliesto-sqlvm.md)]
1919

2020
> [!div class="op_single_selector"]

articles/azure-sql/virtual-machines/windows/sql-agent-extension-automatic-registration-all-vms.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.subservice: management
99
ms.topic: how-to
1010
ms.tgt_pltfrm: vm-windows-sql-server
1111
ms.workload: iaas-sql-server
12-
ms.date: 9/01/2021
12+
ms.date: 10/26/2021
1313
ms.custom: devx-track-azurepowershell
1414
ms.reviewer: mathoma
1515
---
@@ -35,9 +35,14 @@ When automatic registration is enabled, a job runs daily to detect whether or no
3535

3636
Once automatic registration is enabled for a subscription, all current and future VMs that have SQL Server installed will be registered with the SQL IaaS Agent extension **in lightweight mode without downtime, and without restarting the SQL Server service**. You still need to [manually upgrade to full manageability mode](sql-agent-extension-manually-register-single-vm.md#upgrade-to-full) to take advantage of the full feature set. The license type automatically defaults to that of the VM image. If you use a pay-as-you-go image for your VM, then your license type will be `PAYG`, otherwise your license type will be `AHUB` by default.
3737

38+
By default, Azure VMs with SQL Server 2016 or later installed will be automatically registered with the SQL IaaS Agent extension when detected by the [CEIP service](/sql/sql-server/usage-and-diagnostic-data-configuration-for-sql-server). See the [SQL Server privacy supplement](/sql/sql-server/sql-server-privacy#non-personal-data) for more information.
39+
3840
> [!IMPORTANT]
3941
> The SQL IaaS Agent extension collects data for the express purpose of giving customers optional benefits when using SQL Server within Azure Virtual Machines. Microsoft will not use this data for licensing audits without the customer's advance consent. See the [SQL Server privacy supplement](/sql/sql-server/sql-server-privacy#non-personal-data) for more information.
4042
43+
44+
45+
4146
## Prerequisites
4247

4348
To register your SQL Server VM with the extension, you'll need:

0 commit comments

Comments
 (0)