Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare Azure environments for new workloads—subscriptions, networking, identity, and landing zones
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/event-grid/subscriptions.md
1# Event Grid - Subscriptions23## Event Subscription45```bicep6resource eventGridSubscription 'Microsoft.EventGrid/topics/eventSubscriptions@2023-12-15-preview' = {7parent: eventGridTopic8name: 'order-processor-subscription'9properties: {10destination: {11endpointType: 'WebHook'12properties: {13endpointUrl: 'https://my-api.azurecontainerapps.io/webhooks/orders'14}15}16filter: {17includedEventTypes: [18'Order.Created'19'Order.Updated'20]21}22retryPolicy: {23maxDeliveryAttempts: 3024eventTimeToLiveInMinutes: 144025}26}27}28```2930## Destination Types3132### Webhook3334```bicep35destination: {36endpointType: 'WebHook'37properties: {38endpointUrl: 'https://my-api.example.com/events'39}40}41```4243### Azure Function4445```bicep46destination: {47endpointType: 'AzureFunction'48properties: {49resourceId: functionApp.id50}51}52```5354### Service Bus Queue5556```bicep57destination: {58endpointType: 'ServiceBusQueue'59properties: {60resourceId: '${serviceBus.id}/queues/events'61}62}63```6465### Event Hub6667```bicep68destination: {69endpointType: 'EventHub'70properties: {71resourceId: eventHub.id72}73}74```7576## Filtering7778### Event Type Filter7980```bicep81filter: {82includedEventTypes: [83'Order.Created'84'Order.Shipped'85]86}87```8889### Subject Filter9091```bicep92filter: {93subjectBeginsWith: '/orders/priority'94subjectEndsWith: '.json'95}96```9798### Advanced Filter99100```bicep101filter: {102advancedFilters: [103{104operatorType: 'NumberGreaterThan'105key: 'data.amount'106value: 100107}108]109}110```111