az monitor app-insights component

참고

이 참조는 Azure CLI application-insights 확장의 일부이며 버전 2.0.79 이상이 필요합니다. az monitor app-insights 구성 요소 명령을 처음 실행할 때 확장이 자동으로 설치됩니다. 확장에 대해 자세히 알아보세요.

애플리케이션 Insights 구성 요소 또는 해당 하위 구성 요소를 관리합니다.

명령

az monitor app-insights component billing

애플리케이션 Insights 구성 요소 청구 기능을 관리합니다.

az monitor app-insights component billing show

애플리케이션 Insights 리소스의 청구 기능을 표시합니다.

az monitor app-insights component billing update

애플리케이션 Insights 리소스의 청구 기능을 업데이트합니다.

az monitor app-insights component connect-webapp

커넥트 웹앱에 대한 AI.

az monitor app-insights component continues-export

Application Insights 구성 요소에 대한 연속 내보내기 구성을 관리합니다.

az monitor app-insights component continues-export create

애플리케이션 Insights 구성 요소에 대한 연속 내보내기 구성을 만듭니다.

az monitor app-insights component continues-export delete

애플리케이션 Insights 구성 요소의 특정 연속 내보내기 구성을 삭제합니다.

az monitor app-insights component continues-export list

애플리케이션 Insights 구성 요소에 대한 연속 내보내기 구성을 나열합니다.

az monitor app-insights component continues-export show

애플리케이션 Insights 구성 요소의 특정 연속 내보내기 구성을 가져옵니다.

az monitor app-insights component continues-export update

애플리케이션 Insights 구성 요소에 대한 연속 내보내기 구성을 업데이트합니다.

az monitor app-insights component create

새 Application Insights 리소스를 만듭니다.

az monitor app-insights component delete

새 애플리케이션 Insights 리소스를 삭제합니다.

az monitor app-insights component linked-storage

Application Insights 구성 요소에 대한 연결된 스토리지 계정을 관리합니다.

az monitor app-insights component linked-storage link

스토리지 계정을 애플리케이션 Insights 구성 요소와 연결합니다.

az monitor app-insights component linked-storage show

애플리케이션 Insights 구성 요소에 대한 연결된 스토리지 계정의 세부 정보를 표시합니다.

az monitor app-insights component linked-storage unlink

애플리케이션 Insights 구성 요소를 통해 스토리지 계정 연결을 해제합니다.

az monitor app-insights component linked-storage update

Application Insights 구성 요소에 대한 연결된 스토리지 계정을 업데이트합니다.

az monitor app-insights component show

애플리케이션 Insights 리소스를 얻습니다.

az monitor app-insights component update

기존 애플리케이션 Insights 리소스의 속성을 업데이트합니다. 업데이트할 수 있는 기본 값은 UI 환경을 사용자 지정하는 종류입니다.

az monitor app-insights component update-tags

기존 애플리케이션 Insights 리소스의 태그를 업데이트합니다.

az monitor app-insights component connect-webapp

커넥트 웹앱에 대한 AI.

az monitor app-insights component connect-webapp --name
                                                 --resource-group
                                                 [--enable-debugger {false, true}]
                                                 [--enable-profiler {false, true}]

예제

커넥트 웹앱에 AI를 적용하고 웹앱에 프로파일러와 스냅샷 디버거를 모두 사용하도록 설정합니다.

az monitor app-insights component connect-webapp -g myRG -n myApp --enable-profiler --enable-snapshot-debugger

커넥트 리소스 ID를 사용하여 웹앱에 AI를 설정하고 프로파일러를 사용하도록 설정하고 웹앱에 대한 스냅샷 디버거를 사용하지 않도록 설정합니다.

az monitor app-insights component connect-webapp --ids /subscriptions/mySub/resourceGroups/myRG/providers/Microsoft.Web/sites/myApp --enable-profiler --enable-snapshot-debugger false

필수 매개 변수

--name -n

웹앱의 이름입니다.

--resource-group -g

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

선택적 매개 변수

--enable-debugger --enable-snapshot-debugger

예외가 throw되면 스냅샷 디버거를 사용하도록 설정합니다. 현재 .NET/.NET Core Web Apps 대해서만 지원됩니다.

허용되는 값: false, true
--enable-profiler

코드에서 시간이 소요되는 위치를 확인하는 데 도움이 되는 프로파일링 추적 수집을 사용하도록 설정합니다. 현재 .NET/.NET Core Web Apps 대해서만 지원됩니다.

허용되는 값: false, true

az monitor app-insights component create

새 Application Insights 리소스를 만듭니다.

az monitor app-insights component create --app
                                         --location
                                         --resource-group
                                         [--application-type]
                                         [--ingestion-access {Disabled, Enabled}]
                                         [--kind]
                                         [--query-access {Disabled, Enabled}]
                                         [--retention-time]
                                         [--tags]
                                         [--workspace]

예제

종류가 웹 및 위치인 구성 요소를 만듭니다.

az monitor app-insights component create --app demoApp --location westus2 --kind web -g demoRg --application-type web --retention-time 120

필수 매개 변수

--app -a

Application Insights 구성 요소의 GUID, 앱 이름 또는 정규화된 Azure 리소스 이름입니다. 애플리케이션 GUID는 Azure Portal 애플리케이션 Insights 리소스의 API 액세스 메뉴 항목에서 획득할 수 있습니다. 애플리케이션 이름을 사용하는 경우 리소스 그룹을 지정하세요.

--location -l

위치입니다. 값 출처: az account list-locations. az configure --defaults location=<location>을 사용하여 기본 위치를 구성할 수 있습니다.

--resource-group -g

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

선택적 매개 변수

--application-type

모니터링되는 애플리케이션의 유형입니다.

기본값: web
--ingestion-access

애플리케이션 Insights Insights 액세스하기 위한 공용 네트워크 액세스 유형입니다.

허용되는 값: Disabled, Enabled
--kind -k

이 구성 요소가 참조하는 애플리케이션의 종류로, UI를 사용자 지정하는 데 사용됩니다. 이 값은 자유 형식 문자열이며, 값은 일반적으로 웹, ios, 기타, 저장소, java, 휴대폰 중 하나여야 합니다.

기본값: web
--query-access

애플리케이션 Insights 쿼리에 액세스하기 위한 공용 네트워크 액세스 유형입니다.

허용되는 값: Disabled, Enabled
--retention-time

애플리케이션 Insights 보존 기간(일)입니다. 값은 30,60,90,120,180,270,365,550,730 값 중 하나일 수 있습니다. Application Insights Log Analytics 작업 영역에 연결되지 않은 경우에만 설정할 수 있습니다.

--tags

공백으로 구분된 태그: key[=value] [key[=value] ...]. ""를 사용하여 기존 태그를 지웁니다.

--workspace

로그 분석 작업 영역의 이름 또는 리소스 ID입니다.

az monitor app-insights component delete

새 애플리케이션 Insights 리소스를 삭제합니다.

az monitor app-insights component delete --app
                                         --resource-group

예제

웹 및 위치 종류가 있는 구성 요소를 삭제합니다.

az monitor app-insights component delete --app demoApp -g demoRg

필수 매개 변수

--app -a

Application Insights 구성 요소의 GUID, 앱 이름 또는 정규화된 Azure 리소스 이름입니다. 애플리케이션 GUID는 Azure Portal 애플리케이션 Insights 리소스의 API 액세스 메뉴 항목에서 획득할 수 있습니다. 애플리케이션 이름을 사용하는 경우 리소스 그룹을 지정하세요.

--resource-group -g

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

az monitor app-insights component show

애플리케이션 Insights 리소스를 얻습니다.

az monitor app-insights component show [--app]
                                       [--resource-group]

예제

이름으로 구성 요소를 얻습니다.

az monitor app-insights component show --app demoApp -g demoRg

리소스 그룹의 구성 요소를 나열합니다.

az monitor app-insights component show -g demoRg

현재 선택한 구독의 구성 요소를 나열합니다.

az monitor app-insights component show

선택적 매개 변수

--app -a

Application Insights 구성 요소의 GUID, 앱 이름 또는 정규화된 Azure 리소스 이름입니다. 애플리케이션 GUID는 Azure Portal 애플리케이션 Insights 리소스의 API 액세스 메뉴 항목에서 획득할 수 있습니다. 애플리케이션 이름을 사용하는 경우 리소스 그룹을 지정하세요.

--resource-group -g

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

az monitor app-insights component update

기존 애플리케이션 Insights 리소스의 속성을 업데이트합니다. 업데이트할 수 있는 기본 값은 UI 환경을 사용자 지정하는 종류입니다.

az monitor app-insights component update --app
                                         --resource-group
                                         [--ingestion-access {Disabled, Enabled}]
                                         [--kind]
                                         [--query-access {Disabled, Enabled}]
                                         [--retention-time]
                                         [--workspace]

예제

웹 종류로 구성 요소를 업데이트합니다.

az monitor app-insights component update --app demoApp -k web -g demoRg --retention-time 120

필수 매개 변수

--app -a

Application Insights 구성 요소의 GUID, 앱 이름 또는 정규화된 Azure 리소스 이름입니다. 애플리케이션 GUID는 Azure Portal 애플리케이션 Insights 리소스의 API 액세스 메뉴 항목에서 획득할 수 있습니다. 애플리케이션 이름을 사용하는 경우 리소스 그룹을 지정하세요.

--resource-group -g

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

선택적 매개 변수

--ingestion-access

애플리케이션 Insights Insights 액세스하기 위한 공용 네트워크 액세스 유형입니다.

허용되는 값: Disabled, Enabled
--kind -k

이 구성 요소가 참조하는 애플리케이션의 종류로, UI를 사용자 지정하는 데 사용됩니다. 이 값은 자유 형식 문자열이며, 값은 일반적으로 웹, ios, 기타, 저장소, java, 휴대폰 중 하나여야 합니다.

--query-access

애플리케이션 Insights 쿼리에 액세스하기 위한 공용 네트워크 액세스 유형입니다.

허용되는 값: Disabled, Enabled
--retention-time

애플리케이션 Insights 보존 기간(일)입니다. 값은 30,60,90,120,180,270,365,550,730 값 중 하나일 수 있습니다. Application Insights Log Analytics 작업 영역에 연결되지 않은 경우에만 설정할 수 있습니다.

--workspace

로그 분석 작업 영역의 이름 또는 리소스 ID입니다.

az monitor app-insights component update-tags

기존 애플리케이션 Insights 리소스의 태그를 업데이트합니다.

az monitor app-insights component update-tags --app
                                              --resource-group
                                              --tags

예제

'name' 태그를 'value'로 업데이트합니다.

az monitor app-insights component update-tags --app demoApp --tags name=value -g demoRg

필수 매개 변수

--app -a

Application Insights 구성 요소의 GUID, 앱 이름 또는 정규화된 Azure 리소스 이름입니다. 애플리케이션 GUID는 Azure Portal 애플리케이션 Insights 리소스의 API 액세스 메뉴 항목에서 획득할 수 있습니다. 애플리케이션 이름을 사용하는 경우 리소스 그룹을 지정하세요.

--resource-group -g

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

--tags

공백으로 구분된 태그: key[=value] [key[=value] ...]. ""를 사용하여 기존 태그를 지웁니다.