Azure / Azure/azure-rest-api-specs

Microsoft.SerialConsole/serialPorts/read operation missing

Open
#23,472 7 comments 0 reactions 0 assignees View on GitHub
customer-reported needs-team-attention question Service Attention
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.