Azure / Azure/azure-rest-api-specs
Microsoft.SerialConsole/serialPorts/read operation missing
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
In [https://github.com/Azure/azure-rest-api-specs/blob/main/specification/serialconsole/resource-manager/Microsoft.SerialConsole/stable/2018-05-01/serialport.json](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/serialconsole/resource-manager/Microsoft.SerialConsole/stable/2018-05-01/serialport.json) for the operation `SerialPorts_Get` you need the permission `Microsoft.SerialConsole/serialPorts/read` however this operation does not exist. If I try the API without a permission of `Microsoft.SerialConsole/serialPorts/*` I get the error message:
```
{
"error": {
"code": "AuthorizationFailed",
"message": "The client 'redacted' with object id 'redacted' does not have authorization to perform action 'Microsoft.SerialConsole/serialPorts/read' over scope '/subscriptions//resourcegroups/compute/providers/Microsoft.Compute/virtualMachines/lin/providers/Microsoft.SerialConsole/serialPorts/0' or the scope is invalid. If access was recently granted, please refresh your credentials."
}
}
```
Yet List Operations as documented in serialconsole.json does not return Microsoft.SerialConsole/serialPorts/read as an operation
Contributor guide
Research direction
Start by comparing the SerialPorts_Get operation in specification/serialconsole/resource-manager/Microsoft.SerialConsole/stable/2018-05-01/serialport.json with the operations listed in serialconsole.json. Trace how the documented operation permissions are represented, then verify that List Operations exposes Microsoft.SerialConsole/serialPorts/read and that the specification is consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100