Skip to content

Commit ffdd540

Browse files
committed
Added not on platform aliasing d: drive to c: drive
1 parent eae5016 commit ffdd540

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/app-service/operating-system-functionality.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ At its core, App Service is a service running on top of the Azure PaaS (platform
4747
- An operating system drive (`%SystemDrive%`), whose size varies depending on the size of the VM.
4848
- A resource drive (`%ResourceDrive%`) used by App Service internally.
4949

50+
A best practice is to always use the environment variables `%SystemDrive%` and `%ResourceDrive%` instead of hard-coded file paths. The root path returned from these two environment variables has shifted over time from `d:\` to `c:\`. However, older applications hard-coded with file path references to `d:\` will continue to work because the App Service platform automatically remaps `d:\` to instead point at `c:\`. As noted above, it is highly recommended to always use the environment variables when building file paths and avoid confusion over platform changes to the default root file path.
51+
5052
It is important to monitor your disk utilization as your application grows. If the disk quota is reached, it can have adverse effects to your application. For example:
5153

5254
- The app may throw an error indicating not enough space on the disk.

0 commit comments

Comments
 (0)