Microsoft Azure应用服务存储 [英] Microsoft Azure App Service Storage

查看:55
本文介绍了Microsoft Azure应用服务存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对购买Microsoft Azure应用程序服务来托管我的应用程序有疑问.我已经测试了免费配置文件,因此我担心要切换到基本配置文件. 那是我的问题. 我已经在Azure网站此处上的此表上看到了我将为我的应用程序文件提供10GB的磁盘空间. 当我使用价格计算器时,会看到此 好吧,我的问题是: 为什么在这里我看到10GB的临时存储空间?我会随时丢失位于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?

推荐答案

我是否会随时丢失位于wwwroot文件夹中的应用程序文件?

will i lose my application files located in the wwwroot folder anytime?

如果您位于wwwroot文件夹中的应用程序文件,它不会丢失.我们可以从

It will not be lost if you application files located in the wwwroot folder.We could get the answer from the document.

永久性文件

这是您可以作为网站文件查看的内容.它们遵循此处描述的结构.它们基于 d:\ home ,也可以使用%HOME%环境变量找到.

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.

这些文件是持久性的,这意味着您可以依靠它们保留在那里,直到您进行一些更改.此外,它们在站点的所有实例之间共享(当您将其扩展到多个实例时).在内部,这种工作方式是将它们存储在Azure存储中,而不是驻留在本地文件系统上.

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.

免费和共享站点获得1GB的空间,基本站点获得10GB的空间,而标准站点获得50GB的空间

Free and Shared sites get 1GB of space, Basic sites get 10GB, and Standard sites get 50GB

临时文件

许多常见的Windows位置正在使用本地计算机上的临时存储.例如

A number of common Windows locations are using temporary storage on the local machine. For instance

%APPDATA%指向类似D:\ local \ AppData的东西. %TMP%转到D:\ local \ Temp. 与持久文件不同,这些文件不在站点实例之间共享.此外,您不能依靠他们呆在那里.例如,如果您重新启动Web应用程序,则会发现所有这些文件夹都被重置为原始状态.

%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.

对于免费,共享和消费 n(功能)站点,所有这些位置加在一起的限制为 500MB (即不是每个文件夹).对于标准和基本网站,该限制非常高(超过 100GB ).

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工具(D:\ home \ site \ wwwroot 中检查应用程序文件rel ="noreferrer"> https://yoursite.scm.azurewebsites.net/).

We could check the application files in the D:\home\site\wwwroot from the Azure kudu tool(https://yoursite.scm.azurewebsites.net/).

可用磁盘空间显示在环境页面上:

Available disk space is shown on the Environment page:

这篇关于Microsoft Azure应用服务存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆