az spring-cloud app-insights

참고

이 참조는 Azure CLI에 대 한 스프링 클라우드 확장의 일부 이며 버전 2.0.67 이상 이어야 합니다. Az 스프링-cloud app insights 명령을 처음 실행할 때 확장이 자동으로 설치 됩니다. 확장에 대해 자세히 알아보세요.

Azure 스프링 클라우드의 관리 Application Insights에 대 한 명령입니다.

명령

az spring-cloud app-insights show

Application Insights 설정을 표시 합니다.

az spring-cloud app-insights update

Application Insights 설정을 업데이트 합니다.

az spring-cloud app-insights show

Application Insights 설정을 표시 합니다.

az spring-cloud app-insights show --name
                                  --resource-group

필수 매개 변수

--name -n

Azure 스프링 클라우드의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

az spring-cloud app-insights update

Application Insights 설정을 업데이트 합니다.

az spring-cloud app-insights update --name
                                    --resource-group
                                    [--app-insights]
                                    [--app-insights-key]
                                    [--disable {false, true}]
                                    [--sampling-rate]

예제

Application Insights 및 Java in-process 에이전트를 사용 하도록 설정 합니다.

az spring-cloud app-insights update -n MyService -g MyResourceGroup --app-insights-key MyInstrumentationKey --sampling-rate 100

Application Insights 사용 안 함

az spring-cloud app-insights update -n MyService -g MyResourceGroup --disable

필수 매개 변수

--name -n

Azure 스프링 클라우드의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

선택적 매개 변수

--app-insights

같은 리소스 그룹에 있는 기존 Application Insights의 이름입니다. 또는 다른 리소스 그룹에 있는 기존 Application Insights의 리소스 ID입니다.

--app-insights-key

기존 Application Insights의 계측 키입니다.

--disable

Application Insights 사용 안 함

허용되는 값: false, true
--sampling-rate

Application insights의 샘플링 주기입니다. 최대값은 100입니다.