-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.bicep
52 lines (48 loc) · 1.4 KB
/
main.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
param serviceBusNamespaceName string
param serviceBusQueueName string
param eventGridTopicName string
param eventGridSubscriptionName string
param location string = resourceGroup().location
resource serviceBusNamespace 'Microsoft.ServiceBus/namespaces@2018-01-01-preview' = {
name: serviceBusNamespaceName
location: location
sku: {
name: 'Standard'
}
}
resource queue 'Microsoft.ServiceBus/namespaces/queues@2017-04-01' = {
name: '${serviceBusNamespace.name}/${serviceBusQueueName}'
properties: {
lockDuration: 'PT5M'
maxSizeInMegabytes: 1024
requiresDuplicateDetection: false
requiresSession: false
defaultMessageTimeToLive: 'P10675199DT2H48M5.4775807S'
deadLetteringOnMessageExpiration: false
duplicateDetectionHistoryTimeWindow: 'PT10M'
maxDeliveryCount: 10
autoDeleteOnIdle: 'P10675199DT2H48M5.4775807S'
enablePartitioning: false
enableExpress: false
}
}
resource eventGridTopic 'Microsoft.EventGrid/topics@2020-06-01' = {
name: eventGridTopicName
location: location
}
resource eventGridSubscription 'Microsoft.EventGrid/eventSubscriptions@2020-06-01' = {
name: eventGridSubscriptionName
scope: eventGridTopic
properties: {
destination: {
endpointType: 'ServiceBusQueue'
properties: {
resourceId: queue.id
}
}
eventDeliverySchema: 'EventGridSchema'
filter: {
isSubjectCaseSensitive: false
}
}
}