Improve Error Messaging for Function App Deployment (App Settings)
When deploying a function app to Azure Government, provide more specific error messaging when appsettings values are incompatible or otherwise contain errors.
When updating settings, the only error message a user will receive from Set-AzWebApp seems to be the 400 Bad Request, and from the portal, the "(InternalServerError) from host runtime.
This makes debugging deployments very difficult.
The same idea could likely feed back to commercial deployments, too.
Chris Kratochvil commented
* The root issue was leaving off the EndpointSuffix property of a storage account connection string, which appears to be required for app services in the government tenant.
* Leaving out the WEBSITE_CONTENTAZUREFILECONNECTIONSTRING and WEBSITE_CONTENTSHARE is valid, but the internal "listkeys" endpoint will throw 400
* Including the settings above when the storage account connection string omits EndpointSuffix will throw a 400 from Set-AzWebApp (although this does not occur for AzureWebJobsStorage|Dashboard)
* Adding the settings (if initially omitted) via the portal is successful but the internal "status" endpoint will silently throw 400
Screenshots can be provided but include sensitive information.