Azure / Azure/azure-rest-api-specs
[BUG] [Automation] Operation Usages_ListByAutomationAccount always returns InternalServerError
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
### API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/account.json#L382
### API Spec version
2023-11-01
### Describe the bug
Calling the API below always gets InternalServerError with status 500.
```
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/usages
```
### Expected behavior
API should be able to return the usage for automation account.
### Actual behavior
API returns InternalServerError.
{
"code": "InternalServerError",
"message": "{\"Message\":\"An error has occurred.\"}"
}
### Reproduction Steps
Try calling the API https://learn.microsoft.com/en-us/rest/api/automation/usages/list-by-automation-account?view=rest-automation-2023-11-01&tabs=HTTP#code-try-0.
### Environment
_No response_
Contributor guide
Research direction
Start with specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/account.json at the Usages_ListByAutomationAccount operation referenced in the issue, then reproduce the request using the linked REST documentation. Done means the endpoint returns the automation account usage response instead of HTTP 500 InternalServerError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100