az communication

참고

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

통신을 사용 하 여 통신 서비스를 관리 합니다.

명령

az communication create

새 CommunicationService을 만들거나 기존 CommunicationService를 업데이트 합니다.

az communication delete

CommunicationService를 삭제 하는 작업입니다.

az communication link-notification-hub

Azure 알림 허브를이 통신 서비스에 연결 합니다.

az communication list

리소스 그룹의 모든 리소스를 나열 하는 요청을 처리 합니다. 및는 구독에 있는 모든 리소스를 나열 하는 요청을 처리 합니다.

az communication list-key

CommunicationService 리소스의 선택 키를 가져옵니다.

az communication regenerate-key

CommunicationService 액세스 키를 다시 생성 합니다. PrimaryKey 및 SecondaryKey는 동시에 다시 생성할 수 없습니다.

az communication show

CommunicationService 및 해당 속성을 가져옵니다.

az communication update

기존 CommunicationService를 업데이트 하는 작업입니다.

az communication wait

통신 상태가 충족 될 때까지 CLI를 대기 중 상태로 전환 합니다.

az communication create

새 CommunicationService을 만들거나 기존 CommunicationService를 업데이트 합니다.

az communication create --name
                        --resource-group
                        [--data-location]
                        [--location]
                        [--no-wait]
                        [--tags]

예제

리소스 만들기 또는 업데이트

az communication create --name "MyCommunicationResource" --location "Global" --data-location "United States" --resource-group "MyResourceGroup"

필수 매개 변수

--name -n

CommunicationService 리소스의 이름입니다.

--resource-group -g

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

선택적 매개 변수

--data-location

통신 서비스가 미사용 데이터를 저장 하는 위치입니다.

--location -l

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

--no-wait

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

--tags

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

az communication delete

CommunicationService를 삭제 하는 작업입니다.

az communication delete --name
                        --resource-group
                        [--no-wait]
                        [--yes]

예제

리소스 삭제

az communication delete --name "MyCommunicationResource" --resource-group "MyResourceGroup"

필수 매개 변수

--name -n

CommunicationService 리소스의 이름입니다.

--resource-group -g

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

선택적 매개 변수

--no-wait

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

--yes -y

확인을 묻는 메시지를 표시하지 마세요.

Azure 알림 허브를이 통신 서비스에 연결 합니다.

az communication link-notification-hub --name
                                       --resource-group
                                       [--connection-string]
                                       [--resource-id]

링크 알림 허브

az communication link-notification-hub --name "MyCommunicationResource" --connection-string "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234" --resource-id "/subscriptions/12345/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub" --resource-group "MyResourceGroup"
--name -n

CommunicationService 리소스의 이름입니다.

--resource-group -g

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

--connection-string

알림 허브에 대 한 연결 문자열입니다.

--resource-id

알림 허브의 리소스 ID입니다.

az communication list

리소스 그룹의 모든 리소스를 나열 하는 요청을 처리 합니다. 및는 구독에 있는 모든 리소스를 나열 하는 요청을 처리 합니다.

az communication list [--resource-group]

예제

리소스 그룹별 목록

az communication list --resource-group "MyResourceGroup"

구독 별로 나열

az communication list

선택적 매개 변수

--resource-group -g

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

az communication list-key

CommunicationService 리소스의 선택 키를 가져옵니다.

az communication list-key --name
                          --resource-group

예제

키 나열

az communication list-key --name "MyCommunicationResource" --resource-group "MyResourceGroup"

필수 매개 변수

--name -n

CommunicationService 리소스의 이름입니다.

--resource-group -g

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

az communication regenerate-key

CommunicationService 액세스 키를 다시 생성 합니다. PrimaryKey 및 SecondaryKey는 동시에 다시 생성할 수 없습니다.

az communication regenerate-key --name
                                --resource-group
                                [--key-type {Primary, Secondary}]

예제

키 다시 생성

az communication regenerate-key --name "MyCommunicationResource" --key-type "Primary" --resource-group "MyResourceGroup"

필수 매개 변수

--name -n

CommunicationService 리소스의 이름입니다.

--resource-group -g

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

선택적 매개 변수

--key-type

다시 생성할 keyType입니다. ' Primary ' 또는 ' secondary ' (대/소문자 구분 안 함) 중 하나 여야 합니다.

허용되는 값: Primary, Secondary

az communication show

CommunicationService 및 해당 속성을 가져옵니다.

az communication show --name
                      --resource-group

예제

리소스 가져오기

az communication show --name "MyCommunicationResource" --resource-group "MyResourceGroup"

필수 매개 변수

--name -n

CommunicationService 리소스의 이름입니다.

--resource-group -g

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

az communication update

기존 CommunicationService를 업데이트 하는 작업입니다.

az communication update --name
                        --resource-group
                        [--data-location]
                        [--location]
                        [--tags]

예제

리소스 업데이트

az communication update --name "MyCommunicationResource" --tags newTag="newVal" --resource-group "MyResourceGroup"

필수 매개 변수

--name -n

CommunicationService 리소스의 이름입니다.

--resource-group -g

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

선택적 매개 변수

--data-location

통신 서비스가 미사용 데이터를 저장 하는 위치입니다.

--location -l

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

--tags

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

az communication wait

통신 상태가 충족 될 때까지 CLI를 대기 중 상태로 전환 합니다.

az communication wait --name
                      --resource-group
                      [--created]
                      [--custom]
                      [--deleted]
                      [--exists]
                      [--interval]
                      [--timeout]
                      [--updated]

예제

통신이 성공적으로 만들어질 때까지 CLI 스크립트의 다음 줄 실행을 일시 중지 합니다.

az communication wait --name "MyCommunicationResource" --resource-group "MyResourceGroup" --created

통신이 성공적으로 삭제 될 때까지 CLI 스크립트의 다음 줄 실행을 일시 중지 합니다.

az communication wait --name "MyCommunicationResource" --resource-group "MyResourceGroup" --deleted

필수 매개 변수

--name -n

CommunicationService 리소스의 이름입니다.

--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으로 업데이트할 때까지 기다립니다.