Azure / Azure/azure-rest-api-specs

There is no error message in response while failing to create app service plan

Open
#10,210 2 comments 1 reaction 0 assignees View on GitHub
App Services Service Attention Web Apps
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

Symptom:
After tested, I found that there is no error message in response, no error message in ServiceError and no StatusCode since they all are nil while failing to create app service plan. It should return the error message in response.

Rest api call:
```
PUT https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/example-asp-resources/providers/Microsoft.Web/serverfarms/api-appserviceplan-pro

{
"kind": "Linux",
"location": "eastus2",
"properties": {
"reserved": true,
"isXenon": false
},
"sku": {
"name": "I3",
"tier": "Isolated",
"size": "I3",
"capacity": 1
},
"tags": {}
}
```

Result:
![image](https://user-images.githubusercontent.com/19754191/88002262-b3975a00-cb34-11ea-9fdb-2d3e972d1d86.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the shown PUT request for the Azure app service plan and inspect the failure response, ServiceError, and StatusCode handling. Trace the relevant REST API specification and error response definitions; done means a failed create request returns the error message and populated error metadata instead of nil values.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.