az providerhub notification-registration

참고

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

Providerhub를 사용 하 여 알림 등록을 관리 합니다.

명령

az providerhub notification-registration create

알림 등록을 만듭니다.

az providerhub notification-registration delete

알림 등록을 삭제 합니다.

az providerhub notification-registration list

지정 된 공급자에 대 한 알림 등록 목록을 가져옵니다.

az providerhub notification-registration show

알림 등록 정보를 가져옵니다.

az providerhub notification-registration create

알림 등록을 만듭니다.

az providerhub notification-registration create --name
                                                --provider-namespace
                                                [--included-events]
                                                [--message-scope {NotSpecified, RegisteredSubscriptions}]
                                                [--notification-endpoints]
                                                [--notification-mode {EventHub, NotSpecified, WebHook}]

예제

NotificationRegistrations_CreateOrUpdate

az providerhub notification-registration create --name "testNotificationRegistration" --included-events "*/write" "Microsoft.Contoso/employees/delete" --message-scope "RegisteredSubscriptions" --notification-endpoints locations="" locations="East US" notification-destination="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications" --notification-endpoints locations="North Europe" notification-destination="/subscriptions/00000000-0000-0000-0000-000000000000   /resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications" --notification-mode "EventHub" --provider-namespace "Microsoft.Contoso"

필수 매개 변수

--name --notification-registration-name -n

알림 등록입니다.

--provider-namespace

ProviderHub 내에서 호스트 되는 리소스 공급자의 이름입니다.

선택적 매개 변수

--included-events

RP를 메시지 해야 하는 이벤트입니다. 메시지 형식은 {RP Namespace}/{Resource Type}/{action}형식입니다. 에서만 작업은 쓰기, 삭제 및 이동/동작입니다.

--message-scope

RP로 전송 되는 메시지를 제한 합니다. 기본값은 RegisteredSubscriptions입니다. 사용 가능한 값은 전역 (Azure의 모든 메시지) 및 RegisteredSubscriptions (RP에서 등록 한 구독의 메시지만)입니다.

허용되는 값: NotSpecified, RegisteredSubscriptions
--notification-endpoints

알림 메시지에 대 한 위치입니다. 이벤트 리소스의 위치 지역으로 알림이 전송 됩니다 (예: 미국 동부의 VM은 미국 동부에서 지정 된 끝점으로 메시지를 보냅니다).

--notification-mode

RP로 알림을 보내는 방법을 결정 합니다. 사용 가능한 두 가지 모드는 EventHub 및 Webhook입니다.

허용되는 값: EventHub, NotSpecified, WebHook

az providerhub notification-registration delete

알림 등록을 삭제 합니다.

az providerhub notification-registration delete --name
                                                --provider-namespace
                                                [--yes]

예제

NotificationRegistrations_Delete

az providerhub notification-registration delete --name "testNotificationRegistration" --provider-namespace "Microsoft.Contoso"

필수 매개 변수

--name --notification-registration-name -n

알림 등록입니다.

--provider-namespace

ProviderHub 내에서 호스트 되는 리소스 공급자의 이름입니다.

선택적 매개 변수

--yes -y

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

az providerhub notification-registration list

지정 된 공급자에 대 한 알림 등록 목록을 가져옵니다.

az providerhub notification-registration list --provider-namespace

예제

NotificationRegistrations_ListByProviderRegistration

az providerhub notification-registration list --provider-namespace "Microsoft.Contoso"

필수 매개 변수

--provider-namespace

ProviderHub 내에서 호스트 되는 리소스 공급자의 이름입니다.

az providerhub notification-registration show

알림 등록 정보를 가져옵니다.

az providerhub notification-registration show --name
                                              --provider-namespace

예제

NotificationRegistrations_Get

az providerhub notification-registration show --name "testNotificationRegistration" --provider-namespace "Microsoft.Contoso"

필수 매개 변수

--name --notification-registration-name -n

알림 등록입니다.

--provider-namespace

ProviderHub 내에서 호스트 되는 리소스 공급자의 이름입니다.