az spring-cloud app-insights
注意
此參考是 Azure CLI 的 spring-cloud 擴充功能的一部分 (2.45.0 版或更高版本)。 擴充功能會在您第一次執行 az spring-cloud app-insights 命令時自動安裝。 深入了解擴充功能。
此命令群組已隱含取代,因為命令群組 'spring-cloud' 已被取代,且將在未來的版本中移除。 請改用 'spring'。
在 Azure Spring Cloud 中管理 Application Insights 的命令。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az spring-cloud app-insights show |
顯示 Application Insights 設定。 |
擴充 | 已取代 |
az spring-cloud app-insights update |
更新 Application Insights 設定。 |
擴充 | 已取代 |
az spring-cloud app-insights show
此命令已隱含取代,因為命令群組 'spring-cloud app-insights' 已被取代,且將在未來的版本中移除。 請改用 'spring app-insights'。
顯示 Application Insights 設定。
az spring-cloud app-insights show --name
--resource-group
必要參數
Azure Spring Cloud 的名稱。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az spring-cloud app-insights update
此命令已隱含取代,因為命令群組 'spring-cloud app-insights' 已被取代,且將在未來的版本中移除。 請改用 'spring app-insights'。
更新 Application Insights 設定。
az spring-cloud app-insights update --name
--resource-group
[--app-insights]
[--app-insights-key]
[--disable {false, true}]
[--no-wait]
[--sampling-rate]
範例
使用連線ion 字串(建議)或檢測金鑰來啟用 Application Insights。
az spring-cloud app-insights update -n MyService -g MyResourceGroup --app-insights-key "MyConnectionString" --sampling-rate 100
停用 Application Insights。
az spring-cloud app-insights update -n MyService -g MyResourceGroup --disable
必要參數
Azure Spring Cloud 的名稱。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
選擇性參數
相同資源群組中現有 Application Insights 的名稱。 或不同資源群組中現有 Application Insights 的資源識別碼。
連線ion 字串 (建議) 或現有 Application Insights 的檢測金鑰。
停用 Application Insights。
請勿等候長時間執行的作業完成。
Application Insights 的取樣率。 最大值為 100。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。