समस्या क्षेत्र:
मैं करने की कोशिश की एक नई घटना बनाने के लिए ग्रिड विषय सदस्यता का उपयोग कर एक हाथ टेम्पलेट निम्नलिखित आधिकारिक दस्तावेज है.
स्क्रिप्ट के भाग के भीतर 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": []
}
}
]
}