You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sql-server/azure-arc/connect.md
+32-3Lines changed: 32 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,30 +44,59 @@ az provider register --namespace 'Microsoft.AzureArcData'
44
44
```
45
45
---
46
46
47
+
47
48
## Initiate the connection from Azure
48
49
49
50
If the machine with SQL Server is already connected to Azure Arc, you can register the SQL Server instances on that machine by installing the SQL Server extension (*WindowsAgent.SqlServer*). Once installed, the SQL Server extension will recognize all the installed SQL Server instances and register them with Azure Arc. The extension will run continuously to detect changes of the SQL Server configuration. For example, if a new SQL Server instance is installed on the machine, if will be automatically registered with Azure. See [virtual machine extension management](/azure/azure-arc/servers/manage-vm-extensions) for instructions how to install and uninstall extensions using Azure Portal, Azure PowerShell or Azure CLI.
50
51
51
52
> [!IMPORTANT]
52
-
> The __SQL Server - Azure Arc__ resource for each SQL Server instance installed on the machine will be created in the same region and the resource group as the corresponding __Machine - Azure Arc__ resource.
53
+
>1. The Managed System Identity for the corresponding **Machine - Azure Arc** must have the *Azure Connected SQL Server Onboarding* role at resource group level.
54
+
>2. The __SQL Server - Azure Arc__ resource for each SQL Server instance installed on the machine will be created in the same region and the resource group as the corresponding __Machine - Azure Arc__ resource.
53
55
54
56
# [Azure portal](#tab/azure)
55
57
58
+
To assign the *Azure Connected SQL Server Onboarding* role to Arc machine managed identity, use the following steps:
59
+
60
+
* Select the resource group with the **Machine - Azure Arc** resource.
61
+
* Select **Access control (IAM)**
62
+
* Click **+ Add** and select **Add role assignment**
63
+
For **Role**, select `Azure Connected SQL Server Onboarding`
64
+
For **Assign access to**, select `User, group or service principal`
65
+
For **Select**, search for your **Machine - Azure Arc** name and select it.
66
+
* Click **Save**.
67
+
68
+
To install the SQL Server extension, use the following steps:
69
+
56
70
1. Open the __Machine - Azure Arc__ resource.
57
71
2. Under __Extensions__, click __+ Add__
58
72
1. Select `WindowsAgent.SqlServer` from the list and click __Create__.
59
73
60
74
# [PowerShell](#tab/powershell)
61
75
76
+
To assign *Azure Connected SQL Server Onboarding* role to the machine's managed identity, run:
To assign the *Azure Connected SQL Server Onboarding* role to Arc machine managed identity, run:
93
+
94
+
```azurecli
95
+
spID=$(az resource list -n <ArcMachineName> --query [*].identity.principalId --out tsv)
96
+
az role assignment create --assignee $spID --role 'Azure Connected SQL Server Onboarding ' --scope /subscriptions/<mySubscriptionID>/resourceGroups/<myResourceGroup>
Copy file name to clipboardExpand all lines: docs/sql-server/azure-arc/release-notes.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ Azure Arc-enabled SQL Server releases for general availability support
19
19
20
20
This release introduces a SQL Server extension that continuously monitors for changes of the SQL Server configuration and automatically updates the corresponding __SQL Server - Azure Arc__ resources. The extension is installed as part of the SQL Server instance registration process. To upgrade your existing __SQL Server - Azure Arc__ resources to an agent-based configuration, use any of the methods described in [Connect your SQL Server to Azure Arc](connect.md).
21
21
22
+
This release also introduces a built-in role *Azure Connected SQL Server Onboarding* that defines the minimal permissions that would allow the hosting machine's MSI to onboard both the machine and the SQL Server instances to to Azure Arc.
23
+
22
24
> [!NOTE]
23
25
> In this release, the SQL Server extension is only available for Windows. A Linux version of the extension will be announced separately.
0 commit comments