Azure / Azure/azure-rest-api-specs
`operationalInsights@2021-06-01`: `Cluster_CreateOrUpdate`
- 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
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