问题描述
我对购买 Microsoft azure 应用服务来托管我的应用存有疑问.我已经测试了免费配置文件,我担心切换到基本配置文件.那是我的问题.我在 azure 网站 那么我的问题是:为什么在这里我看到 10GB 的 临时 存储空间?我是否会随时丢失位于 wwwroot 文件夹中的应用程序文件?
我是否会随时丢失位于 wwwroot 文件夹中的应用程序文件?
如果您的应用程序文件位于 wwwroot 文件夹中,它不会丢失.我们可以从
可用磁盘空间显示在环境页面上:
I have a doubt for purchase a microsoft azure app service to host my app. I have already tested the free profile and i am concerned to switch to a basic profile. That's my question. I have seen on this table on azure website here which i'll have 10GB of disk space for my application files. When i went on price calculator i see this Well my question is: Why here i see 10GB of temporary storage? will i lose my application files located in the wwwroot folder anytime?
will i lose my application files located in the wwwroot folder anytime?
It will not be lost if you application files located in the wwwroot folder.We could get the answer from the 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:localAppData. %TMP% goes to D:localTemp. 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).
We could check the application files in the D:homesitewwwroot from the Azure kudu tool(https://yoursite.scm.azurewebsites.net/).
Available disk space is shown on the Environment page:
这篇关于微软 Azure 应用服务存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!