WEBSITE_MOUNT_PATH_xxx environment variable

Matthieu Kapetanos 5 Reputation points
2024-07-01T20:39:13.4833333+00:00

Hello,

Since a couple of weeks ago, a new environment variable is added by Azure which is crashing the web application.

I'm using a docker container image for a Linux web application within an App Service.

The new environment variable is named WEBSITE_MOUNT_PATH_xxx where xxx is the name of the app.

The issue is that this environment variable is malformed. There is no = sign like other variables and Its not a key=value syntax. There is only the key, as a consequence this variable is unreadable and application crashes.

Finally, I do not find any information about this variable on Azure docs (https://learn.microsoft.com/en-us/azure/app-service/reference-app-settings). It seems its undocumented.

Is there any way to prevent this environment variable from being set ?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
9,005 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Matthew Mckenzie 20 Reputation points
    2025-07-01T06:26:09.1666667+00:00

    I have the same question. When I SSH into the App from the portal, this is displayed...

    -ash: export: line 47: WEBSITE_MOUNT_PATH_xxx-logs: bad variable name

    Where xxx-logs is the name of a Path mapping (Configuration Blade) to a storage account fielshare. Currently seeing if this is caused by source code or deployment, but worrying. Almost as if there is a union in this string space. Bad memory in the worker that deployed maybe? The website is hosted on another shared mount, 10.x.x.x. (/home) as expected.
    df reveals that these are mounted as expected. My app does not crash.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.