az monitor app-insights api-key

참고

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

Application Insights 구성 요소와 연결 된 API 키에 대 한 작업입니다.

명령

az monitor app-insights api-key create

Application Insights 리소스에 사용할 새 API 키를 만듭니다.

az monitor app-insights api-key delete

Application Insights 리소스에서 API 키를 삭제 합니다.

az monitor app-insights api-key show

모든 키 또는 Application Insights 리소스와 연결 된 특정 API 키를 가져옵니다.

az monitor app-insights api-key create

Application Insights 리소스에 사용할 새 API 키를 만듭니다.

az monitor app-insights api-key create --api-key
                                       --app
                                       --resource-group
                                       [--read-properties]
                                       [--write-properties]

예제

Kind 웹 및 위치를 사용 하 여 구성 요소를 만듭니다.

az monitor app-insights api-key create --api-key cli-demo --read-properties ReadTelemetry --write-properties WriteAnnotations -g demoRg --app testApp

사용 권한이 없는 웹 및 위치 종류를 사용 하 여 구성 요소를 만듭니다.

az monitor app-insights api-key create --api-key cli-demo --read-properties '""' --write-properties '""' -g demoRg --app testApp

필수 매개 변수

--api-key

만들 API 키의 이름입니다.

--app -a

Application Insights 구성 요소의 GUID, 앱 이름 또는 정규화 된 Azure 리소스 이름입니다. 응용 프로그램 GUID는 Azure Portal의 Application Insights 리소스에 대 한 API 액세스 메뉴 항목에서 가져올 수 있습니다. 응용 프로그램 이름을 사용 하는 경우 리소스 그룹을 지정 하세요.

--resource-group -g

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

선택적 매개 변수

--read-properties

상속할이 API 키에 대 한 읽기 역할 이름의 공백으로 구분 된 목록입니다.

--write-properties

이 API 키가 상속할 쓰기 역할의 이름을 공백으로 구분한 목록입니다.

az monitor app-insights api-key delete

Application Insights 리소스에서 API 키를 삭제 합니다.

az monitor app-insights api-key delete --api-key
                                       --app
                                       --resource-group

예제

API 키를 삭제 합니다.

az monitor app-insights api-key delete --app demoApp -g demoRg --api-key demo-key

필수 매개 변수

--api-key

삭제할 API 키의 이름입니다. 는를 사용 하 여 찾을 수 있습니다 api-key show .

--app -a

Application Insights 구성 요소의 GUID, 앱 이름 또는 정규화 된 Azure 리소스 이름입니다. 응용 프로그램 GUID는 Azure Portal의 Application Insights 리소스에 대 한 API 액세스 메뉴 항목에서 가져올 수 있습니다. 응용 프로그램 이름을 사용 하는 경우 리소스 그룹을 지정 하세요.

--resource-group -g

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

az monitor app-insights api-key show

모든 키 또는 Application Insights 리소스와 연결 된 특정 API 키를 가져옵니다.

az monitor app-insights api-key show --app
                                     --resource-group
                                     [--api-key]

예제

API 키를 인출 합니다.

az monitor app-insights api-key show --app demoApp -g demoRg --api-key demo-key

API 키를 가져옵니다.

az monitor app-insights api-key show --app demoApp -g demoRg

필수 매개 변수

--app -a

Application Insights 구성 요소의 GUID, 앱 이름 또는 정규화 된 Azure 리소스 이름입니다. 응용 프로그램 GUID는 Azure Portal의 Application Insights 리소스에 대 한 API 액세스 메뉴 항목에서 가져올 수 있습니다. 응용 프로그램 이름을 사용 하는 경우 리소스 그룹을 지정 하세요.

--resource-group -g

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

선택적 매개 변수

--api-key

인출할 API 키의 이름입니다. 는를 사용 하 여 찾을 수 있습니다 api-key show .