Skip to content

Commit 859a3bb

Browse files
authored
Merge pull request #103409 from yossi-y/patch-46
Updated a new API in Associate a workspace
2 parents 43b016c + e37c7d1 commit 859a3bb

File tree

1 file changed

+9
-30
lines changed

1 file changed

+9
-30
lines changed

articles/azure-monitor/platform/customer-managed-keys.md

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.subservice: logs
66
ms.topic: conceptual
77
author: yossi-y
88
ms.author: yossiy
9-
ms.date: 01/11/2020
9+
ms.date: 02/05/2020
1010

1111
---
1212
# Azure Monitor customer-managed key configuration
@@ -350,54 +350,33 @@ following details:
350350
> fulfilled. If you associate workspaces and ingest data prior to this
351351
> **provisioning**, the data will be dropped and won't be recoverable.
352352
353-
**Associate a workspace to a *Cluster* resource using [Workspaces - Create Or Update](https://docs.microsoft.com/rest/api/loganalytics/workspaces/createorupdate) API**
353+
**Associate a workspace to a *Cluster* resource
354354

355355
For Application Insights CMK configuration, follow the Appendix content for this step.
356356

357357
```rst
358-
PUT https://management.azure.com/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalinsights/workspaces/<workspace-name>?api-version=2015-11-01-preview
358+
PUT https://management.azure.com/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalinsights/workspaces/<workspace-name>/linkedservices/cluster?api-version=2019-08-01-preview
359359
Authorization: Bearer <token>
360360
Content-type: application/json
361361
362362
{
363363
"properties": {
364-
"source": "Azure",
365-
"customerId": "<workspace-id>",
366-
"features": {
367-
"clusterDefinitionId": "<cluster-id>"
364+
"WriteAccessResourceId": "subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalinsights/clusters/<cluster-name>"
368365
}
369-
},
370-
"id": "/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalinsights/workspaces/<workspace-name>",
371-
"name": "<workspace-name>",
372-
"type": "Microsoft.OperationalInsights/workspaces",
373-
"location": "<region-name>"
374366
}
375367
```
376-
"clusterDefinitionId" is the "clusterId" value provided in the response from the previous step
368+
The *clusterDefinitionId* is the *clusterId* value provided in the response from the previous step.
377369

378370
**Response**
379371

380372
```json
381373
{
382374
"properties": {
383-
"source": "Azure",
384-
"customerId": "workspace-id",
385-
"retentionInDays": value,
386-
"features": {
387-
"legacy": value,
388-
"searchVersion": value,
389-
"clusterDefinitionId": "cluster-id"
375+
"WriteAccessResourceId": "subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalinsights/clusters/<cluster-name>"
390376
},
391-
"workspaceCapping": {
392-
"dailyQuotaGb": value,
393-
"quotaNextResetTime": "timeStamp",
394-
"dataIngestionStatus": "RespectQuota"
395-
}
396-
},
397-
"id": "/subscriptions/subscription-id/resourcegroups/resource-group-name/providers/microsoft.operationalinsights/workspaces/workspace-name",
398-
"name": "workspace-name",
399-
"type": "Microsoft.OperationalInsights/workspaces",
400-
"location": "region-name"
377+
"id": "/subscriptions/subscription-id/resourcegroups/resource-group-name/providers/microsoft.operationalinsights/workspaces/workspace-name/linkedservices/cluster",
378+
"name": "workspace-name/cluster",
379+
"type": "microsoft.operationalInsights/workspaces/linkedServices",
401380
}
402381
```
403382

0 commit comments

Comments
 (0)