检索 Microsoft Azure 应用服务存储的配额 [英] Retrieve quota for Microsoft Azure App Service Storage

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

问题描述

如何检索 Azure 应用服务存储容量?

配额"菜单显示 52% 的文件系统存储"已使用,但我无法使用其中任何一个

  • 在警报规则中查找任何条件
  • 用于检索此指标的 api
  • C# 代码,通过代码查找限制

解决方案

Azure 应用服务计划的列表使用情况"API 与 oAuth2.0 Rest API 一起使用,可以在这里试用:

How to retrieve an Azure App Service storage capacity?

The "Quotas" menu shows me 52% "File system storage" is used, but I am not able to either any of this

  • find any condition in alert rule
  • api to retrieve this metric
  • C# code, to find the limit by code

解决方案

The Azure App Service Plan's "List Usage" API works with an oAuth2.0 Rest API which can be tried out here: https://docs.microsoft.com/en-us/rest/api/appservice/appserviceplans/listusages

Security: Azure Active Directory OAuth2 Flow Type: oauth2 Flow: implicit Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Details are: URL: https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/serverfarms//usages?api-version=2019-08-01

Filters can be added with ODATA syntax: https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/serverfarms//usages?$filter=name.value eq 'FileSystemStorage'&api-version=2019-08-01

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

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