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/manage-configuration.md
+15-78Lines changed: 15 additions & 78 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,9 +50,6 @@ Run:
50
50
az provider register --namespace 'Microsoft.AzureArcData'
51
51
```
52
52
53
-
54
-
55
-
56
53
---
57
54
58
55
## License types
@@ -149,16 +146,6 @@ To modify the SQL Server Configuration for a larger scope, such as a resource gr
149
146
> [!TIP]
150
147
> Run the script from Azure Cloud shell as it has the required Azure PowerShell modules pre-installed and you will be automatically authenticated. For details, see [Running the script using Cloud Shell](https://github.com/microsoft/sql-server-samples/tree/master/samples/manage/azure-arc-enabled-sql-server/modify-license-type#running-the-script-using-cloud-shell).
151
148
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
149
### [Azure portal](#tab/azure)
163
150
164
151
There are two ways to configure the SQL Server host in Azure portal.
@@ -171,9 +158,9 @@ There are two ways to configure the SQL Server host in Azure portal.
171
158
172
159
* Open the Arc-enabled SQL Server overview page, and select **Properties**. Under **Host configuration properties**, select the setting you need to modify:
173
160
174
-
***License type**
175
-
***ESU Status**
176
-
***Automated patching**
161
+
***License type**
162
+
***ESU Status**
163
+
***Automated patching**
177
164
178
165
:::image type="content" source="media/billing/sql-server-instance-configuration.png" alt-text="Screenshot of Azure portal SQL Server instance configuration." lightbox="media/billing/sql-server-instance-configuration.png" :::
179
166
@@ -213,49 +200,11 @@ $Settings = @{
213
200
// Command stays the same as before, only settings is changed above:
> - The update command overwrites all settings. If your extension settings have a list of excluded SQL Server instances, make sure to specify the full exclusion list with the update command.
218
-
> - If you already have an older version of the Azure extension installed, make sure to upgrade it first, and then use one the modify methods to set the correct license type. For details, see [How to upgrade a machine extension](/azure/azure-arc/servers/manage-automatic-vm-extension-upgrade) for details.
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
203
204
+
> [!IMPORTANT]
205
+
>
206
+
> * The update command overwrites all settings. If your extension settings have a list of excluded SQL Server instances, make sure to specify the full exclusion list with the update command.
207
+
> * If you already have an older version of the Azure extension installed, make sure to upgrade it first, and then use one the modify methods to set the correct license type. For details, see [How to upgrade a machine extension](/azure/azure-arc/servers/manage-automatic-vm-extension-upgrade) for details.
259
208
260
209
### [Azure CLI](#tab/az)
261
210
@@ -264,26 +213,14 @@ The following command will set the license type to "PAYG":
> - The update command overwrites all settings. If your extension settings have a list of excluded SQL Server instances, make sure to specify the full exclusion list with the update command.
269
-
> - If you already have an older version of the Azure extension installed, make sure to upgrade it first, and then use one the modify methods to set the correct license type. For details, see [How to upgrade a machine extension](/azure/azure-arc/servers/manage-automatic-vm-extension-upgrade) for details.
270
-
271
-
272
-
273
216
217
+
> [!IMPORTANT]
218
+
>
219
+
> * The update command overwrites all settings. If your extension settings have a list of excluded SQL Server instances, make sure to specify the full exclusion list with the update command.
220
+
> * If you already have an older version of the Azure extension installed, make sure to upgrade it first, and then use one the modify methods to set the correct license type. For details, see [How to upgrade a machine extension](/azure/azure-arc/servers/manage-automatic-vm-extension-upgrade) for details.
274
221
275
222
---
276
223
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
224
## Query SQL Server configuration
288
225
289
226
You can use [Azure Resource Graph](/azure/governance/resource-graph/overview) to query the SQL Server configuration settings within a selected scope. See the following examples.
@@ -337,8 +274,6 @@ resources
337
274
338
275
This query identifies Azure Arc-enabled servers with SQL Server discovered on them.
339
276
340
-
341
-
342
277
```kusto
343
278
resources
344
279
| where type == "microsoft.hybridcompute/machines"
@@ -353,13 +288,15 @@ resources
353
288
| where type == "microsoft.hybridcompute/machines"
354
289
| where properties.detectedProperties.mssqldiscovered == "true"
355
290
| project machineIdHasSQLServerDiscovered = id
356
-
| join kind=leftouter (
291
+
| join kind=leftouter (
357
292
resources
358
293
| where type == "microsoft.hybridcompute/machines/extensions"
359
294
| where properties.type == "WindowsAgent.SqlServer"
0 commit comments