Skip to content

Commit 55d9eae

Browse files
Merge pull request #29055 from MikeRayMSFT/20231114-update-troubleshoot-arc-sql-bpa
SQL Update BPA Troubleshoot assessment.
2 parents e354599 + 93f74eb commit 55d9eae

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

docs/sql-server/azure-arc/troubleshoot-assessment.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,24 @@ In case any of the components are missing, do the following:
118118

119119
## Change the Log Analytics workspace
120120

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.
122122

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](
125+
/rest/api/azure/#how-to-call-azure-rest-apis-with-postman)
125126

126-
```rest
127-
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+
```
129139
130140
The best practices assessment settings before the change.
131141
@@ -141,9 +151,9 @@ To change the Log Analytics workspace that is linked for the best practices asse
141151
"startTime": "00:00",
142152
"WeeklyInterval": 1
143153
},
144-
"WorkspaceResourceId": "/subscriptions/<subscriptionID>/resourceGroups/<Resource group name>/providers/Microsoft.OperationalInsights/workspaces/shivgupta-bpa-test-la-ws",
145-
"WorkspaceLocation": "<Region>",
146-
"ResourceNamePrefix": "<Log analytics workspace name>",
154+
"WorkspaceResourceId": null,
155+
"WorkspaceLocation": null,
156+
"ResourceNamePrefix": null,
147157
"settingsSaveTime": 1673278632
148158
}
149159
```

0 commit comments

Comments
 (0)