![](/img/trans.png)
[英]How to get Azure webapp config appsettings using Az PowerShell module
[英]How can i get Azure metrics using the az command in Powershell?
如何获取 Azure 指标、失败请求、应用程序性能、CPU 使用率和 Memory 使用率?
有 az monitor 指标列表 --resource [--aggregation {Average, Count, Maximum, Minimum, None, Total}] [--dimension] [--end-time] [--filter] [--interval] [--metadata] [--metrics] [--namespace] [--offset] [--orderby] [--resource-group] [--resource-namespace] [--resource-parent] [--resource -type] [--start-t
我尝试按如下方式使用 t
az monitor metrics list --resource "AppServiceName"
但得到和错误:
az : usage error: --resource ID | --resource NAME --resource-group NAME --resource-type
TYPE [--resource-parent PARENT] [--resource-namespace NAMESPACE]
现在旧了 - 但所需的资源 ID 需要一些 forms 例如
/subscriptions/b6ff2c43-9c91-4c25-bf05-62fdea862e7b/resourceGroups/My-RSG/providers/Microsoft.Web/serverfarms/mywhatever。
例如,这可以在门户的属性部分中找到。
然后您可以在 azure cli 中运行
az 监控指标列表 --resource /subscriptions/b6ff2c43-9c91-4c25-bf05-62fdea862e7b/resourceGroups/My-RSG/providers/Microsoft.Web/serverfarms/mywhatever。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.