It is now possible to switch from an App Service Plan to an Azure Functions Premium Plan. Or is it?
After switching it works initially but it shows an error: "Storage is not configured properly, Function scaling will be limited."
The instructions are to add the following two items to the configuration:
- WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
- WEBSITE_CONTENTSHARE
WEBSITE_CONTENTAZUREFILECONNECTIONSTRING seems easy, because it should just have the same content as AzureWebJobsStorage as far as I understand:
DefaultEndpointsProtocol=https;AccountName=[name];AccountKey=[key]
WEBSITE_CONTENTSHARE is less easy, because it says "Default is a unique string that begins with the function app name.". So I improvised that by putting my app service name and I added "091999e2" just like it says in the sample.
Now, after saving this configuration, the Function App tries to start again but it cannot start. It responds with "502 - Web server received an invalid response while acting as a gateway or proxy server."
Clearly the configuration is not working. After removing the configuration again it starts working again (but again with the warning of being unable to scale).
So what is the correct way of adding this configuration after moving a Function App from App Service Plan to Functions Premium Plan?