Azure应用程序见解,如何通过Azure CLI更改每日上限 [英] Azure Application Insights, how to change daily cap by Azure CLI

查看:67
本文介绍了Azure应用程序见解,如何通过Azure CLI更改每日上限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改有关Azure上所有Application Insights的数据传输的每日上限.有什么办法可以对所有人进行更改吗?

I'm trying to change daily cap for data transfer for all my Application Insights on Azure. Is there any way to change it for all of them?

我找不到使用Azure CLI的方法.

I can't find how to do it by using Azure CLI.

谢谢.

推荐答案

您可以使用Azure PowerShell cmdlet Set-AzureRmApplicationInsightsDailyCap更改每日上限.

You can change the daily cap with the Azure PowerShell cmdlet Set-AzureRmApplicationInsightsDailyCap.

Login-AzureRmAccount
Set-AzureRmContext -SubscriptionName "Your Sub Name"

function Set-DailyCap {

    $AI = Get-AzureRmApplicationInsights | Select ResourceGroupName, Name 

    $AI | foreach { 
    write-output ("Attempting to set daily cap for App Insights in resource group {0} instance {1}" -f $_.ResourceGroupName, $_.Name)
    Set-AzureRmApplicationInsightsDailyCap -ResourceGroupName $_.ResourceGroupName -Name $_.Name -DailyCapGB 0.2 

    }
}

Set-DailyCap

这篇关于Azure应用程序见解,如何通过Azure CLI更改每日上限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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