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: articles/azure-monitor/agents/azure-monitor-agent-windows-client.md
+55-14Lines changed: 55 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,11 +180,11 @@ Now we associate the Data Collection Rules (DCR) to the Monitored Object by crea
180
180
181
181
**Request URI**
182
182
```HTTP
183
-
PUT https://management.azure.com/{MOResourceId}/providers/microsoft.insights/datacollectionruleassociations/assoc?api-version=2021-04-01
183
+
PUT https://management.azure.com/{MOResourceId}/providers/microsoft.insights/datacollectionruleassociations/{associationName}?api-version=2021-09-01-preview
184
184
```
185
185
**Sample Request URI**
186
186
```HTTP
187
-
PUT https://management.azure.com/providers/Microsoft.Insights/monitoredObjects/{AADTenantId}/providers/microsoft.insights/datacollectionruleassociations/assoc?api-version=2021-04-01
187
+
PUT https://management.azure.com/providers/Microsoft.Insights/monitoredObjects/{AADTenantId}/providers/microsoft.insights/datacollectionruleassociations/{associationName}?api-version=2021-09-01-preview
188
188
```
189
189
190
190
**URI Parameters**
@@ -213,12 +213,11 @@ PUT https://management.azure.com/providers/Microsoft.Insights/monitoredObjects/{
213
213
|`dataCollectionRuleID`| The resource ID of an existing Data Collection Rule that you created in the **same region** as the Monitored Object. |
214
214
215
215
216
-
### Using PowerShell
216
+
### Using PowerShell for onboarding
217
217
```PowerShell
218
218
$TenantID = "xxxxxxxxx-xxxx-xxx" #Your Tenant ID
219
219
$SubscriptionID = "xxxxxx-xxxx-xxxxx" #Your Subscription ID
Invoke-RestMethod -Uri $request -Headers $AuthenticationHeader -Method PUT -Body $body
257
+
Invoke-RestMethod -Uri $requestURL -Headers $AuthenticationHeader -Method PUT -Body $body
259
258
260
259
261
260
##########################
262
261
263
262
#2. Create Monitored Object
264
263
265
264
# "location" property value under the "body" section should be the Azure region where the MO object would be stored. It should be the "same region" where you created the Data Collection Rule. This is the location of the region from where agent communications would happen.
$associationName = "assoc01" #You can define your custom associationname, must change the association name to a unique name, if you want to associate multiple DCR to monitored object
283
+
$DCRName = "dcr-WindowsClientOS" #Your Data collection rule name
Check the ‘Heartbeat’ table (and other tables you configured in the rules) in the Log Analytics workspace that you specified as a destination in the data collection rule(s).
0 commit comments