שתף באמצעות


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

Deprecated

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 -n

Name of Azure Spring Cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring-cloud app-insights update

Deprecated

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 -n

Name of Azure Spring Cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--app-insights

Name of the existing Application Insights in the same Resource Group. Or Resource ID of the existing Application Insights in a different Resource Group.

--app-insights-key

Connection string (recommended) or Instrumentation key of the existing Application Insights.

--disable

Disable Application Insights.

Accepted values: false, true
--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--sampling-rate

Sampling Rate of application insights. Maximum is 100.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.