az notification-hub authorization-rule

참고

이 참조는 Azure CLI 대한 알림 허브 확장의 일부이며 버전 2.3.1 이상이 필요합니다. az notification-hub authorization-rule 명령을 처음 실행할 때 확장이 자동으로 설치됩니다. 확장에 대해 자세히 알아보세요.

알림 허브 권한 부여 규칙을 관리하는 명령입니다.

명령

az notification-hub authorization-rule create

NotificationHub에 대한 권한 부여 규칙을 만듭니다.

az notification-hub authorization-rule delete

notificationHub 권한 부여 규칙을 삭제합니다.

az notification-hub authorization-rule list

NotificationHub에 대한 권한 부여 규칙을 나열합니다.

az notification-hub authorization-rule list-keys

NotificationHub에 대한 기본 및 보조 ConnectionStrings를 나열합니다.

az notification-hub authorization-rule regenerate-keys

기본/보조 키를 NotificationHub 권한 부여 규칙으로 다시 생성합니다.

az notification-hub authorization-rule show

이름으로 NotificationHub에 대한 권한 부여 규칙을 표시합니다.

az notification-hub authorization-rule create

NotificationHub에 대한 권한 부여 규칙을 만듭니다.

az notification-hub authorization-rule create --name
                                              --namespace-name
                                              --notification-hub-name
                                              --resource-group
                                              --rights

예제

권한 부여 규칙 만들기

az notification-hub authorization-rule create --resource-group MyResourceGroup \
--namespace-name my-namespace --notification-hub-name my-hub --name \
DefaultListenSharedAccessSignature --rights Listen Send

필수 매개 변수

--name -n

권한 부여 규칙 이름입니다.

--namespace-name

네임스페이스 이름입니다.

--notification-hub-name

알림 허브 이름입니다.

--resource-group -g

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

--rights

규칙과 연결된 권한입니다.

az notification-hub authorization-rule delete

notificationHub 권한 부여 규칙을 삭제합니다.

az notification-hub authorization-rule delete --name
                                              --namespace-name
                                              --notification-hub-name
                                              --resource-group

예제

권한 부여 규칙 삭제

az notification-hub authorization-rule delete --resource-group MyResourceGroup \
--namespace-name my-namespace --notification-hub-name my-hub --name \
DefaultListenSharedAccessSignature

필수 매개 변수

--name -n

권한 부여 규칙 이름입니다.

--namespace-name

네임스페이스 이름입니다.

--notification-hub-name

알림 허브 이름입니다.

--resource-group -g

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

az notification-hub authorization-rule list

NotificationHub에 대한 권한 부여 규칙을 나열합니다.

az notification-hub authorization-rule list --namespace-name
                                            --notification-hub-name
                                            --resource-group

예제

권한 부여 규칙 나열

az notification-hub authorization-rule list --resource-group MyResourceGroup \
--namespace-name my-namespace --notification-hub-name my-hub

필수 매개 변수

--namespace-name

네임스페이스 이름입니다.

--notification-hub-name

알림 허브 이름입니다.

--resource-group -g

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

az notification-hub authorization-rule list-keys

NotificationHub에 대한 기본 및 보조 ConnectionStrings를 나열합니다.

az notification-hub authorization-rule list-keys --name
                                                 --namespace-name
                                                 --notification-hub-name
                                                 --resource-group

예제

권한 부여 규칙의 connectionStrings 나열

az notification-hub authorization-rule list-keys --resource-group MyResourceGroup --namespace-name my-namespace \
--notification-hub-name my-hub --name "sdk-AuthRules-5800"

필수 매개 변수

--name -n

권한 부여 규칙 이름입니다.

--namespace-name

네임스페이스 이름입니다.

--notification-hub-name

알림 허브 이름입니다.

--resource-group -g

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

az notification-hub authorization-rule regenerate-keys

기본/보조 키를 NotificationHub 권한 부여 규칙으로 다시 생성합니다.

az notification-hub authorization-rule regenerate-keys --name
                                                       --namespace-name
                                                       --notification-hub-name
                                                       --policy-key {Primary Key, Secondary Key}
                                                       --resource-group

예제

알림 허브 권한 부여 규칙 다시 생성

az notification-hub authorization-rule regenerate-keys --resource-group MyResourceGroup --namespace-name \
my-namespace --notification-hub-name my-hub --name \
DefaultListenSharedAccessSignature --policy-key "Secondary Key"

필수 매개 변수

--name -n

권한 부여 규칙 이름입니다.

--namespace-name

네임스페이스 이름입니다.

--notification-hub-name

알림 허브 이름입니다.

--policy-key

알림 허브 권한 부여 규칙에 대해 다시 생성해야 하는 키의 이름입니다.

허용되는 값: Primary Key, Secondary Key
--resource-group -g

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

az notification-hub authorization-rule show

이름으로 NotificationHub에 대한 권한 부여 규칙을 표시합니다.

az notification-hub authorization-rule show --name
                                            --namespace-name
                                            --notification-hub-name
                                            --resource-group

예제

권한 부여 규칙 정보 표시

az notification-hub authorization-rule show --resource-group MyResourceGroup \
--namespace-name my-namespace --notification-hub-name my-hub --name \
DefaultListenSharedAccessSignature

필수 매개 변수

--name -n

권한 부여 규칙 이름입니다.

--namespace-name

네임스페이스 이름입니다.

--notification-hub-name

알림 허브 이름입니다.

--resource-group -g

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