FunctionApp:Setting LinuxFxVersion to custom image with 'az functionapp config' sets WEBSITES_ENABLE_APP_SERVICE_STORAGE to false
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62
**Describe the bug**
For a webapp, when we set LinuxFxVersion to a custom image url, we also seem to be setting 'WEBSITES_ENABLE_APPSERVICE_STORAGE' to false. The code is here: https://github.com/Azure/azure-cli/blob/ed1fe586d24b5d78127c0b616cd7e32b765d0bfc/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L145-L149
**To Reproduce**
1. Take any existing function app and set WEBSITES_ENABLE_APP_SERVICE_STORAGE app setting to true.
2. Take the existing web/function app and run the az webapp config set command to update linuxfxversion to a custom/blessed functions image:
az webapp config set -g -n --subscription --linux-fx-version "DOCKER|mcr.microsoft.com/azure-functions/node:3.0.14916-node12-appservice"
3. Then see the app settings of the function app - WEBSITES_ENABLE_APP_SERVICE_STORAGE is now set to false.
**Expected behavior**
When updating the linuxfxversion of any existing web/function app, only the linuxfxversion should have changed. Mounting app service storage is supported in the backend for custom and blessed functions images. This hardcoded behaviour from the client side has unexpected consequences for functions customers, since they often set LinuxFxVersion to blessed functions images urls.
**Environment summary**
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.