az network watcher connection-monitor test-configuration

연결 모니터의 테스트 구성을 관리합니다.

명령

az network watcher connection-monitor test-configuration add

연결 모니터에 테스트 구성을 추가합니다.

az network watcher connection-monitor test-configuration list

연결 모니터의 모든 테스트 구성을 나열합니다.

az network watcher connection-monitor test-configuration remove

연결 모니터에서 테스트 구성을 제거합니다.

az network watcher connection-monitor test-configuration show

연결 모니터에서 테스트 구성을 표시합니다.

az network watcher connection-monitor test-configuration add

연결 모니터에 테스트 구성을 추가합니다.

az network watcher connection-monitor test-configuration add --connection-monitor
                                                             --location
                                                             --name
                                                             --protocol {Http, Icmp, Tcp}
                                                             --test-groups
                                                             [--frequency]
                                                             [--http-method {Get, Post}]
                                                             [--http-path]
                                                             [--http-port]
                                                             [--http-prefer-https {false, true}]
                                                             [--http-request-header]
                                                             [--http-valid-status-codes]
                                                             [--icmp-disable-trace-route {false, true}]
                                                             [--preferred-ip-version {IPv4, IPv6}]
                                                             [--subscription]
                                                             [--tcp-disable-trace-route {false, true}]
                                                             [--tcp-port]
                                                             [--tcp-port-behavior {ListenIfAvailable, None}]
                                                             [--threshold-failed-percent]
                                                             [--threshold-round-trip-time]

예제

HTTP가 지원되는 테스트 구성 추가

az network watcher connection-monitor test-configuration add --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestConfiguration --test-groups DefaultTestGroup --protocol Http --http-request-header name=Host value=bing.com --http-request-header name=UserAgent value=Edge

TCP가 지원되는 테스트 구성 추가

az network watcher connection-monitor test-configuration add --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestConfiguration --test-groups TCPTestGroup DefaultTestGroup --protocol Tcp --tcp-port 4096

필수 매개 변수

--connection-monitor

연결 모니터 이름입니다.

--location -l

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

--name -n

연결 모니터 테스트 구성의 이름입니다.

--protocol

테스트 평가에 사용할 프로토콜입니다.

허용되는 값: Http, Icmp, Tcp
--test-groups

지정된 경우에만 영향을 받을 필요가 있는 테스트 그룹의 공백으로 구분된 이름 목록입니다.

선택적 매개 변수

--frequency

테스트 평가 빈도(초)입니다.

기본값: 60
--http-method

사용할 HTTP 메서드입니다.

허용되는 값: Get, Post
--http-path

URI의 경로 구성 요소입니다. 예를 들어 "/dir1/dir2"입니다.

--http-port

연결할 포트입니다.

--http-prefer-https

선택이 명시적이지 않은 경우 HTTPS가 HTTP보다 선호되는지 여부를 나타내는 값입니다.

허용되는 값: false, true
--http-request-header

요청과 함께 전송할 HTTP 헤더입니다. HTTP 헤더를 정의하는 property=value 쌍의 목록입니다.

--http-valid-status-codes

성공을 고려할 HTTP 상태 코드의 공백으로 구분된 목록입니다. 예를 들어 "2xx 301-304 418"입니다.

--icmp-disable-trace-route

추적 경로가 있는 경로 평가를 사용하지 않도록 설정해야 하는지 여부를 나타내는 값입니다. false는 기본값입니다.

허용되는 값: false, true
--preferred-ip-version

테스트 평가에 사용할 기본 설정 IP 버전입니다. 연결 모니터는 다른 매개 변수에 따라 다른 버전을 사용하도록 선택할 수 있습니다.

허용되는 값: IPv4, IPv6
--subscription

구독의 이름 또는 ID입니다. 를 사용하여 기본 구독을 구성할 수 az account set -s NAME_OR_ID 있습니다.

--tcp-disable-trace-route

추적 경로가 있는 경로 평가를 사용하지 않도록 설정해야 하는지 여부를 나타내는 값입니다. false는 기본값입니다.

허용되는 값: false, true
--tcp-port

연결할 포트입니다.

--tcp-port-behavior

대상 포트 동작입니다.

허용되는 값: ListenIfAvailable, None
--threshold-failed-percent

테스트가 성공한 것으로 평가될 수 있는 실패한 검사의 최대 비율입니다.

--threshold-round-trip-time

테스트가 성공한 것으로 평가될 수 있는 최대 왕복 시간(밀리초)입니다.

az network watcher connection-monitor test-configuration list

연결 모니터의 모든 테스트 구성을 나열합니다.

az network watcher connection-monitor test-configuration list --connection-monitor
                                                              --location
                                                              [--query-examples]
                                                              [--subscription]

예제

연결 모니터의 모든 테스트 구성을 나열합니다. (자동 생성)

az network watcher connection-monitor test-configuration list --connection-monitor MyConnectionMonitor --location westus2

필수 매개 변수

--connection-monitor

연결 모니터 이름입니다.

--location -l

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

선택적 매개 변수

--query-examples

JMESPath 문자열을 권장합니다. 쿼리 중 하나를 복사하여 큰따옴표 안에 --query 매개 변수를 붙여넣어 결과를 확인할 수 있습니다. 이러한 키워드를 기반으로 제안을 제공할 수 있도록 하나 이상의 위치 키워드를 추가할 수 있습니다.

--subscription

구독의 이름 또는 ID입니다. 를 사용하여 기본 구독을 구성할 수 az account set -s NAME_OR_ID 있습니다.

az network watcher connection-monitor test-configuration remove

연결 모니터에서 테스트 구성을 제거합니다.

az network watcher connection-monitor test-configuration remove --connection-monitor
                                                                --location
                                                                --name
                                                                [--subscription]
                                                                [--test-groups]

예제

연결 모니터의 모든 테스트 그룹에서 테스트 구성 제거

az network watcher connection-monitor test-configuration remove --connection-monitor MyConnectionMonitor --location westus --name MyTCPTestConfiguration

연결 모니터의 두 테스트 그룹에서 테스트 구성 제거

az network watcher connection-monitor test-configuration remove --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestConfiguration --test-groups HTTPTestGroup DefaultTestGroup

필수 매개 변수

--connection-monitor

연결 모니터 이름입니다.

--location -l

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

--name -n

연결 모니터 테스트 구성의 이름입니다.

선택적 매개 변수

--subscription

구독의 이름 또는 ID입니다. 를 사용하여 기본 구독을 구성할 수 az account set -s NAME_OR_ID 있습니다.

--test-groups

지정된 경우에만 영향을 받을 필요가 있는 테스트 그룹의 공백으로 구분된 이름 목록입니다.

az network watcher connection-monitor test-configuration show

연결 모니터에서 테스트 구성을 표시합니다.

az network watcher connection-monitor test-configuration show --connection-monitor
                                                              --location
                                                              --name
                                                              [--query-examples]
                                                              [--subscription]

예제

연결 모니터에서 테스트 구성을 표시합니다. (자동 생성)

az network watcher connection-monitor test-configuration show --connection-monitor MyConnectionMonitor --location westus2 --name MyConnectionMonitorTestConfiguration

필수 매개 변수

--connection-monitor

연결 모니터 이름입니다.

--location -l

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

--name -n

연결 모니터 테스트 구성의 이름입니다.

선택적 매개 변수

--query-examples

JMESPath 문자열을 권장합니다. 쿼리 중 하나를 복사하여 큰따옴표 안에 --query 매개 변수를 붙여넣어 결과를 확인할 수 있습니다. 이러한 키워드를 기반으로 제안을 제공할 수 있도록 하나 이상의 위치 키워드를 추가할 수 있습니다.

--subscription

구독의 이름 또는 ID입니다. 를 사용하여 기본 구독을 구성할 수 az account set -s NAME_OR_ID 있습니다.