微软 Azure 应用服务存储
Microsoft Azure App Service Storage
我对购买 Microsoft Azure 应用服务来托管我的应用有疑问。我已经测试了免费配置文件,我担心切换到基本配置文件。
那是我的问题。
我在 Azure 网站 here 上的这个 table 上看到我的应用程序文件需要 10GB 的磁盘 space。
当我使用价格计算器时,我看到了这个
那么我的问题是:
为什么我在这里看到 10GB 的 临时 存储空间?我会随时丢失位于 wwwroot 文件夹中的应用程序文件吗?
will i lose my application files located in the wwwroot folder anytime?
如果您位于wwwroot folder.We的应用程序文件可以从document得到答案,它就不会丢失。
Persisted files
This is what you can view as your web site's files. They follow a structure described here. They are rooted in d:\home, which can also be found using the %HOME% environment variable.
These files are persistent, meaning that you can rely on them staying there until you do something to change them. Also, they are shared between all instances of your site (when you scale it up to multiple instances). Internally, the way this works is that they are stored in Azure Storage instead of living on the local file system.
Free and Shared sites get 1GB of space, Basic sites get 10GB, and Standard sites get 50GB
Temporary files
A number of common Windows locations are using temporary storage on the local machine. For instance
%APPDATA% points to something like D:\local\AppData.
%TMP% goes to D:\local\Temp.
Unlike Persisted files, these files are not shared among site instances. Also, you cannot rely on them staying there. For instance, if you restart a web app, you'll find that all of these folders get reset to their original state.
For Free, Shared and Consumption (Functions) sites, there is a 500MB limit for all these locations together (i.e. not per-folder). For Standard and Basic sites, the limit is very high (over 100GB).
我们可以从 Azure kudu 工具 (https://yoursite.scm.azurewebsites.net/) 检查 D:\home\site\wwwroot 中的应用程序文件。
可用磁盘 space 显示在 环境 页面上:
我对购买 Microsoft Azure 应用服务来托管我的应用有疑问。我已经测试了免费配置文件,我担心切换到基本配置文件。
那是我的问题。
我在 Azure 网站 here 上的这个 table 上看到我的应用程序文件需要 10GB 的磁盘 space。
当我使用价格计算器时,我看到了这个
will i lose my application files located in the wwwroot folder anytime?
如果您位于wwwroot folder.We的应用程序文件可以从document得到答案,它就不会丢失。
Persisted files
This is what you can view as your web site's files. They follow a structure described here. They are rooted in d:\home, which can also be found using the %HOME% environment variable.
These files are persistent, meaning that you can rely on them staying there until you do something to change them. Also, they are shared between all instances of your site (when you scale it up to multiple instances). Internally, the way this works is that they are stored in Azure Storage instead of living on the local file system.
Free and Shared sites get 1GB of space, Basic sites get 10GB, and Standard sites get 50GB
Temporary files
A number of common Windows locations are using temporary storage on the local machine. For instance
%APPDATA% points to something like D:\local\AppData. %TMP% goes to D:\local\Temp. Unlike Persisted files, these files are not shared among site instances. Also, you cannot rely on them staying there. For instance, if you restart a web app, you'll find that all of these folders get reset to their original state.
For Free, Shared and Consumption (Functions) sites, there is a 500MB limit for all these locations together (i.e. not per-folder). For Standard and Basic sites, the limit is very high (over 100GB).
我们可以从 Azure kudu 工具 (https://yoursite.scm.azurewebsites.net/) 检查 D:\home\site\wwwroot 中的应用程序文件。
可用磁盘 space 显示在 环境 页面上: