az spring-cloud app-insights
Note
This reference is part of the spring-cloud extension for the Azure CLI (version 2.45.0 or higher). The extension will automatically install the first time you run an az spring-cloud app-insights command. Learn more about extensions.
This command group is implicitly deprecated because command group 'spring-cloud' is deprecated and will be removed in a future release. Use 'spring' instead.
Commands to management Application Insights in Azure Spring Cloud.
Commands
Name | Description | Type | Status |
---|---|---|---|
az spring-cloud app-insights show |
Show Application Insights settings. |
Extension | Deprecated |
az spring-cloud app-insights update |
Update Application Insights settings. |
Extension | Deprecated |
az spring-cloud app-insights show
This command is implicitly deprecated because command group 'spring-cloud app-insights' is deprecated and will be removed in a future release. Use 'spring app-insights' instead.
Show Application Insights settings.
az spring-cloud app-insights show --name
--resource-group
Required Parameters
Name of Azure Spring Cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az spring-cloud app-insights update
This command is implicitly deprecated because command group 'spring-cloud app-insights' is deprecated and will be removed in a future release. Use 'spring app-insights' instead.
Update Application Insights settings.
az spring-cloud app-insights update --name
--resource-group
[--app-insights]
[--app-insights-key]
[--disable {false, true}]
[--no-wait]
[--sampling-rate]
Examples
Enable Application Insights by using the Connection string (recommended) or Instrumentation key.
az spring-cloud app-insights update -n MyService -g MyResourceGroup --app-insights-key "MyConnectionString" --sampling-rate 100
Disable Application Insights.
az spring-cloud app-insights update -n MyService -g MyResourceGroup --disable
Required Parameters
Name of Azure Spring Cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Name of the existing Application Insights in the same Resource Group. Or Resource ID of the existing Application Insights in a different Resource Group.
Connection string (recommended) or Instrumentation key of the existing Application Insights.
Disable Application Insights.
Do not wait for the long-running operation to finish.
Sampling Rate of application insights. Maximum is 100.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.