Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.68k stars 5.1k forks source link

There is no error message in response while failing to create function app #9423

Open neil-yechenwei opened 4 years ago

neil-yechenwei commented 4 years ago

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: image

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

mleziva commented 2 years ago

This is still an issue for me. Any status updates?