이벤트 구독의 유형 WEBHOOK 으로 정적 헤더를 사용하여 암 템플릿

0

질문

문제 지역:

나는 시도를 만드는 새로운 이벤트 그리드 항목을 사용하여 구독 팔 템플릿은 다음과 같은 공식 문서입니다.

스크립트를 실행에 PowerShell 터미지를 찾을 수 없습니다면 이벤트 구독 생성되는 지정된 항목 azure 포털입니다.

샘플 JSON 템플릿:

{
  "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "resources": [
    {
      "type": "Microsoft.EventGrid/eventSubscriptions",
      "apiVersion": "2021-06-01-preview",
      "name": "Subscription_1",
      "properties": {
        "destination": {
          "topic": "/subscriptions/{Subscription Id})/resourceGroups/{Resource group name}/providers/Microsoft.EventGrid/topics/{Topic name}}",
          "endpointType": "WebHook",
          "properties": {
              "endpointUrl": "{Endpoint URL}",
              "deliveryAttributeMappings": [
                  {
                      "name": "test",
                      "type": "Static",
                      "properties": {
                          "value": "test"
                      }
                  }
              ]
          }
        },
        "eventDeliverySchema": "EventGridSchema",
        "filter": {
          "advancedFilters": [],
          "enableAdvancedFilteringOnArrays": true
        },
        "labels": []      
      }
    }
  ]
}
1

최고의 응답

0

솔루션:

이 작업을 변경하여'유형'과'이름 지정 규칙에서'팔 아래의 템플릿:

"type": "Microsoft.EventGrid/topics/providers/eventSubscriptions",
"apiVersion": "2021-06-01-preview",
"name": "{Topic Name}/ Microsoft.EventGrid/ {Subsctription Name}",
2021-11-23 12:33:49

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................