Azure Websites: "Home" on C or D drive?

Viewed 1172

I have created a new a new Azure Website (Code deployment) and noticed via the Kudu site, that the the files are now on C:\ instead of D:\, e.g. this is from the Kudu site:

  • Site folder: C:\home
  • Temp folder: C:\local\Temp\

A week ago I thought that all my stuff was located on D:\home etc.

I asked this, because we deploy a WebJob via the Zip-Deployment option and need to set an absolute path to our config file, which is now on the "wrong" drive.

Also the Kudu-documentation uses D: for all values.

Has this changed recently? It's not a major problem, but I want to understand why.

1 Answers

Even if the Kudu console takes you to C:\home, D:\home is still accessible and points to the same place but I recommend you to always use the environment variable %HOME% and avoid using absolute paths.

For example, if you plan to use Windows Containers on App Service in the feature, the %HOME% env var also points to C:\home

Additionally, if you use App Service on Azure Stack for example, the %HOME% env var will also point to C:\home

Related