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/troubleshoot-assessment.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,14 +118,24 @@ In case any of the components are missing, do the following:
118
118
119
119
## Change the Log Analytics workspace
120
120
121
-
To change the Log Analytics workspace that is linked for the best practices assessment, follow the steps below.
121
+
To change the Log Analytics workspace that is linked for the best practices assessment, follow the steps below.
122
122
123
-
1. Disable best practices assessment if it's currently enabled.
124
-
1. Make a GET call to the API and get the Azure extension for SQL Server settings
123
+
1. Disable best practices assessment if it's currently enabled via the Azure portal.
124
+
1. Make a GET call to the API and get the Azure extension for SQL Server settings. For more information, review [How to call Azure REST APIs with Postman](
GET https://edge.management.azure.com/subscriptions/ <subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.HybridCompute/machines/<arc-resource-name>/extensions/WindowsAgent.SqlServer?api-version=2022-03-10
128
-
```
127
+
In order to complete this task, you need to obtain the bearer token in order to perform this action against the resource in Azure portal. From Azure portal:
128
+
129
+
1. Navigate to the corresponding **SQL Server - Azure Arc** resource.
130
+
1. Select Ctrl+Shift+I together, go to **Network** tab.
131
+
1. Select **Overview** for the **SQL Server - Azure Arc** resource.
132
+
1. In the name column, locate and select the entry for **ArcServer name?api-version**.
133
+
1. On the right window, go to **Request Headers**.
134
+
1. Copy the complete text for **Authorization: Bearer** to get the bearer authorization token.
135
+
136
+
```rest
137
+
GET https://edge.management.azure.com/subscriptions/ <subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.HybridCompute/machines/<arc-resource-name>/extensions/WindowsAgent.SqlServer?api-version=2022-03-10
138
+
```
129
139
130
140
The best practices assessment settings before the change.
131
141
@@ -141,9 +151,9 @@ To change the Log Analytics workspace that is linked for the best practices asse
141
151
"startTime": "00:00",
142
152
"WeeklyInterval": 1
143
153
},
144
-
"WorkspaceResourceId": "/subscriptions/<subscriptionID>/resourceGroups/<Resource group name>/providers/Microsoft.OperationalInsights/workspaces/shivgupta-bpa-test-la-ws",
0 commit comments