为什么 "FileSystemUsage" "Microsoft.Web/sites" 的指标总是 return 为零?

Why does "FileSystemUsage" metric for "Microsoft.Web/sites" always return zero?

在回答 , I stumbled upon the FileSystemUsage metric for Microsoft.Web/sites resource type. As per the documentation 时,该指标应该 return Percentage of filesystem quota consumed by the app..

然而,当我为我的 Web 应用程序执行 Metrics - List REST API 操作(以及在 Azure 门户中的指标 blade 中)时,该值始终是 return编辑为零。我根据我的 Azure 订阅中的许多 Web 应用程序对其进行了检查,所有这些应用程序的结果均为零。我很想知道其中的原因。

相比之下,如果我执行 App Service Plans - List Usages REST API 操作,它 return 给我正确的值。例如,如果我的应用服务计划是 S2,我会收到以下响应:

{
  "unit": "Bytes",
  "nextResetTime": "9999-12-31T23:59:59.9999999Z",
  "currentValue": 815899648,
  "limit": 536870912000,//500 GB (50 GB/instance x max 10 instances)
  "name": {
    "value": "FileSystemStorage",
    "localizedValue": "File System Storage"
  }
}, 

我是否误解了 FileSystemUsage 网络应用程序?如果有人能解释这个指标的目的,我们将不胜感激?如果确实是记录的内容,那么为什么 API 是 returning 零值?

这应该是默认行为,请查看此文档 Understand metrics:

Note

File System Usage is a new metric being rolled out globally, no data is expected unless your app is hosted in an App Service Environment.

所以目前这个指标 File System Usage 应该只适用于 ASE