az network vpn-gateway connection

참고

이 참조는 Azure CLI에 대 한 가상 wan 확장의 일부 이며 버전 2.0.67 이상 이어야 합니다. 확장은 az network vpn-gateway connection 명령을 처음 실행할 때 자동으로 설치 됩니다. 확장에 대해 자세히 알아보세요.

사이트 간 VPN gateway 연결을 관리 합니다.

명령

az network vpn-gateway connection create

사이트 간 VPN 게이트웨이 연결을 만듭니다.

az network vpn-gateway connection delete

사이트 간 VPN gateway 연결을 삭제 합니다.

az network vpn-gateway connection ipsec-policy

사이트간 VPN 게이트웨이 연결 IPSec 정책을 관리합니다.

az network vpn-gateway connection ipsec-policy add

사이트간 VPN 게이트웨이 연결에 IPSec 정책을 추가합니다.

az network vpn-gateway connection ipsec-policy list

사이트간 VPN 게이트웨이 연결 IPSec 정책을 나열합니다.

az network vpn-gateway connection ipsec-policy remove

사이트간 VPN 게이트웨이 연결에서 IPSec 정책을 제거합니다.

az network vpn-gateway connection list

사이트 간 VPN gateway 연결을 나열 합니다.

az network vpn-gateway connection show

사이트 간 VPN gateway 연결에 대 한 세부 정보를 가져옵니다.

az network vpn-gateway connection update

VPN gateway 연결의 설정을 업데이트 합니다.

az network vpn-gateway connection wait

사이트 간 VPN gateway 연결의 상태가 충족 될 때까지 CLI를 대기 중 상태로 전환 합니다.

az network vpn-gateway connection create

사이트 간 VPN 게이트웨이 연결을 만듭니다.

az network vpn-gateway connection create --gateway-name
                                         --name
                                         --remote-vpn-site
                                         --resource-group
                                         [--associated]
                                         [--connection-bandwidth]
                                         [--enable-bgp {false, true}]
                                         [--internet-security {false, true}]
                                         [--labels]
                                         [--no-wait]
                                         [--propagated]
                                         [--protocol-type {IKEv1, IKEv2}]
                                         [--rate-limiting {false, true}]
                                         [--routing-weight]
                                         [--shared-key]

예제

사이트 간 VPN 게이트웨이 연결 만들기

az network vpn-gateway connection create -g MyRG -n MyConnection --gateway-name MyGateway --remote-vpn-site /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/vpnSites/MyVPNSite --associated-route-table /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable1 --propagated-route-tables /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable1 /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable2 --labels label1 label2

필수 매개 변수

--gateway-name

VPN 게이트웨이의 이름입니다.

--name -n

VPN gateway 연결의 이름입니다.

--remote-vpn-site

원격 VPN 사이트의 ID 이름입니다.

--resource-group -g

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

선택적 매개 변수

--associated --associated-route-table

이 라우팅 구성과 연결 된 경로 테이블의 리소스 id입니다.

--connection-bandwidth

예상 대역폭 (Mbps)입니다.

--enable-bgp

BGP를 사용 하도록 설정 합니다.

허용되는 값: false, true
--internet-security

인터넷 보안을 사용 하도록 설정 합니다.

허용되는 값: false, true
--labels

전파 된 경로 테이블에 대 한 레이블의 공백으로 구분 된 목록입니다.

--no-wait

장기 실행 작업이 완료될 때까지 기다리지 마세요.

--propagated --propagated-route-tables

전파 된 경로 테이블의 리소스 id를 공백으로 구분한 목록입니다.

--protocol-type

연결 프로토콜입니다.

허용되는 값: IKEv1, IKEv2
--rate-limiting

Rate 제한을 사용 하도록 설정 합니다.

허용되는 값: false, true
--routing-weight

라우팅 가중치.

--shared-key

공유 키.

az network vpn-gateway connection delete

사이트 간 VPN gateway 연결을 삭제 합니다.

az network vpn-gateway connection delete --gateway-name
                                         --name
                                         --resource-group

예제

사이트 간 VPN gateway 연결 삭제

az network vpn-gateway connection delete -g MyRG -n MyConnection --gateway-name MyGateway

필수 매개 변수

--gateway-name

VPN 게이트웨이의 이름입니다.

--name -n

VPN gateway 연결의 이름입니다.

--resource-group -g

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

az network vpn-gateway connection list

사이트 간 VPN gateway 연결을 나열 합니다.

az network vpn-gateway connection list --gateway-name
                                       --resource-group

예제

지정 된 사이트 간 VPN gateway에 대 한 모든 연결 나열

az network vpn-gateway connection list -g MyRG --gateway-name MyGateway

필수 매개 변수

--gateway-name

VPN 게이트웨이의 이름입니다.

--resource-group -g

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

az network vpn-gateway connection show

사이트 간 VPN gateway 연결에 대 한 세부 정보를 가져옵니다.

az network vpn-gateway connection show --gateway-name
                                       --name
                                       --resource-group

예제

사이트 간 VPN gateway 연결에 대 한 세부 정보 가져오기

az network vpn-gateway connection show -g MyRG -n MyConnection --gateway-name MyGateway

필수 매개 변수

--gateway-name

VPN 게이트웨이의 이름입니다.

--name -n

VPN gateway 연결의 이름입니다.

--resource-group -g

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

az network vpn-gateway connection update

VPN gateway 연결의 설정을 업데이트 합니다.

az network vpn-gateway connection update --gateway-name
                                         --name
                                         --resource-group
                                         [--add]
                                         [--associated]
                                         [--force-string]
                                         [--labels]
                                         [--no-wait]
                                         [--propagated]
                                         [--remove]
                                         [--set]

예제

VPN gateway 연결의 설정을 업데이트 합니다.

az network vpn-gateway connection update -g MyRG -n MyConnection --gateway-name MyGateway --labels NewLabel1 NewLabels2

VPN gateway 연결의 레이블을 추가 합니다.

az network vpn-gateway connection update -g MyRG -n MyConnection --gateway-name MyGateway --add routingConfiguration.propagatedRouteTables.labels Newlabel1 Newlabel2

VPN gateway 연결의 레이블을 다시 설정 합니다.

az network vpn-gateway connection update -g MyRG -n MyConnection --gateway-name MyGateway --set routingConfiguration.propagatedRouteTables.labels[0]=Newlabel1

필수 매개 변수

--gateway-name

VPN 게이트웨이의 이름입니다.

--name -n

VPN gateway 연결의 이름입니다.

--resource-group -g

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

선택적 매개 변수

--add

경로 및 키 값 쌍을 지정 하 여 개체 목록에 개체를 추가 합니다. 예:--속성을 추가 합니다. listProperty <key = value, string 또는 JSON string>.

--associated --associated-route-table

이 라우팅 구성과 연결 된 경로 테이블의 리소스 id입니다.

--force-string

' Set ' 또는 ' a l l '을 사용 하는 경우 JSON으로 변환 하는 대신 문자열 리터럴을 유지 합니다.

--labels

전파 된 경로 테이블에 대 한 레이블의 공백으로 구분 된 목록입니다.

--no-wait

장기 실행 작업이 완료될 때까지 기다리지 마세요.

--propagated --propagated-route-tables

전파 된 경로 테이블의 리소스 id를 공백으로 구분한 목록입니다.

--remove

목록에서 속성이 나 요소를 제거 합니다. 예:--속성을 제거 합니다. 목록 또는--propertyToRemove을 제거 합니다.

--set

설정할 속성 경로 및 값을 지정 하 여 개체를 업데이트 합니다. 예:--set property1 property2 =.

az network vpn-gateway connection wait

사이트 간 VPN gateway 연결의 상태가 충족 될 때까지 CLI를 대기 중 상태로 전환 합니다.

az network vpn-gateway connection wait --gateway-name
                                       --name
                                       --resource-group
                                       [--created]
                                       [--custom]
                                       [--deleted]
                                       [--exists]
                                       [--interval]
                                       [--timeout]
                                       [--updated]

필수 매개 변수

--gateway-name

VPN 게이트웨이의 이름입니다.

--name -n

VPN gateway 연결의 이름입니다.

--resource-group -g

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

선택적 매개 변수

--created

' 성공 '에서 ' provisioningState '를 사용 하 여 만들 때까지 기다립니다.

--custom

조건이 사용자 지정 JMESPath 쿼리를 충족할 때까지 기다립니다. 예를 들어 provisioningState! = ' InProgress ', instanceView. 상태 [? code = = ' PowerState/running '].

--deleted

삭제 될 때까지 기다립니다.

--exists

리소스가 있을 때까지 기다립니다.

--interval

폴링 간격 (초)입니다.

기본값: 30
--timeout

최대 대기 시간 (초)입니다.

기본값: 3600
--updated

' 성공 '으로 provisioningState으로 업데이트할 때까지 기다립니다.