Azure / Azure/azure-rest-api-specs
There is no error message in response while failing to create function app
- 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 function app. It should return the error message in response.
Rest api call:
```
PUT https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-xxx/providers/Microsoft.Web/sites/acctest-xxx-func
{
"kind": "functionapp",
"location": "westus2",
"properties": {
"enabled": true,
"serverFarmId": "/subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-xxx/providers/Microsoft.Web/serverfarms/acctestASP-xxx",
"siteConfig": {
"linuxFxVersion": "",
"appSettings": [
{
"name": "AzureWebJobsStorage",
"value": "DefaultEndpointsProtocol=https;AccountName=xxxxx;AccountKey=xxxxx;EndpointSuffix=xxxx"
},
{
"name": "FUNCTIONS_EXTENSION_VERSION",
"value": "~1"
},
{
"name": "AzureWebJobsDashboard",
"value": "DefaultEndpointsProtocol=https;AccountName=xxxxxx;AccountKey=xxxxxx;EndpointSuffix=xxxxx"
}
],
"use32BitWorkerProcess": true,
"webSocketsEnabled": false,
"alwaysOn": false,
"cors": {
"allowedOrigins": [
"*"
],
"supportCredentials": true
},
"ipSecurityRestrictions": [],
"http20Enabled": false,
"ftpsState": "Disabled",
"preWarmedInstanceCount": 0
},
"clientAffinityEnabled": false,
"dailyMemoryTimeQuota": 0,
"httpsOnly": false
},
"tags": {}
}
```
Result:

Contributor guide
Research direction
Locate the Azure specification for the shown PUT operation that creates a function app, then inspect how failure responses are defined for that operation. Confirm the expected error payload and status code from the service behavior, and verify that the specification represents them so failed requests expose an error message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100