简体   繁体   English

Microsoft Azure应用服务存储

[英]Microsoft Azure App Service Storage

I have a doubt for purchase a microsoft azure app service to host my app. 我有疑问要购买Microsoft Azure应用服务来托管我的应用。 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. 我在azure网站上的此表上看到 ,我将为我的应用程序文件提供10GB的磁盘空间。 When i went on price calculator i see this 当我使用价格计算器时,我看到了 Well my question is: Why here i see 10GB of temporary storage? 好吧,我的问题是:为什么我在这里看到10GB的临时存储空间? 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 . 如果您的应用程序文件位于wwwroot文件夹中,它也不会丢失。我们可以从文档中获取答案。

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. 它们以d:\\ home为根,也可以使用%HOME%环境变量找到。

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. 在内部,这种工作方式是将它们存储在Azure存储中,而不是驻留在本地文件系统上。

Free and Shared sites get 1GB of space, Basic sites get 10GB, and Standard sites get 50GB 免费和共享站点可获得1GB的空间,基本站点可获得10GB的空间,而标准站点可获得50GB的空间。

Temporary files 临时文件

A number of common Windows locations are using temporary storage on the local machine. Windows的许多常见位置都在本地计算机上使用临时存储。 For instance 例如

%APPDATA% points to something like D:\\local\\AppData. %APPDATA%指向类似D:\\ local \\ AppData的东西。 %TMP% goes to D:\\local\\Temp. %TMP%转到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. 例如,如果您重新启动Web应用程序,您会发现所有这些文件夹都被重置为其原始状态。

For Free, Shared and Consumptio n (Functions) sites, there is a 500MB limit for all these locations together (ie not per-folder). 对于免费,共享和消费 (功能)站点,所有这些位置加在一起(即不是每个文件夹)限制为500MB For Standard and Basic sites, the limit is very high (over 100GB ). 对于标准和基本站点,此限制非常高(超过100GB )。

We could check the application files in the D:\\home\\site\\wwwroot from the Azure kudu tool( https://yoursite.scm.azurewebsites.net/ ). 我们可以通过Azure kudu工具( https://yoursite.scm.azurewebsites.net/ )在D:\\ home \\ site \\ wwwroot中检查应用程序文件。

kudu控制台

Available disk space is shown on the Environment page: 可用磁盘空间显示在“ 环境”页面上:

环境页面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Azure 应用服务访问 Blob 存储 - Blob storage access from Azure App Service Azure Blob 存储从 Azure 应用服务返回 404 - Azure Blob Storage Returns 404 from Azure App Service 日志仅在本地有效,但在部署到Microsoft Azure App Service时无效 - Logging only works localy, but not when deployed to Microsoft Azure App Service 我们可以从 c# 重新启动 Microsoft Azure 应用服务吗? - Can we restart Microsoft Azure app service from c#? C#MVC Web应用程序服务连接到Azure存储Blob - C# MVC Web App Service Connect to Azure Storage Blob 使用块 blob 将应用服务日志保存到 Azure Blob 存储 - Save App service log into Azure Blob Storage, using Block blobs 如何在Web App Service中使用“Azure文件存储”? - How can I use “Azure File Storage” with Web App Service? Azure应用服务:无法加载文件或程序集Microsoft.Azure.Mobile.Server - Azure App Service: Could not load file or assembly Microsoft.Azure.Mobile.Server 在Microsoft Azure App Service中部署asp.net Webforms应用程序后出现运行时错误 - Runtime Error after deploy asp.net webforms app in Microsoft Azure App service 无法获得Microsoft Azure存储帐户设置 - Could not get the Microsoft Azure storage account settings
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM