Azure / Azure/azure-rest-api-specs

`operationalInsights@2021-06-01`: `Cluster_CreateOrUpdate`

Open
#25,968 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 37m
Merged PRs (30d)
446

Description

`properties.associatedWorkspaces` is read only but not defined in swagger.

https://github.com/Azure/azure-rest-api-specs/blob/85d0d6c98a47a6b6c2c1684cf94cc8e089c3c4ab/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/Clusters.json#L390

the service returned error
```
InvalidParameter: 'properties.associatedWorkspaces' is a read only property and cannot be set. Please refer to https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/logs-dedicated-clusters#link-a-workspace-to-the-cluster for more information on how to associate a workspace to the cluster.
```

Contributor guide

Open the contributing guide

Research direction

Start with specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2021-06-01/Clusters.json around line 390 and compare the schema with the service error and linked association guidance. Determine how associatedWorkspaces should be represented for Cluster_CreateOrUpdate, then validate the specification's generated request shape or relevant checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.