Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
feat: Provide subscriptions for deprecation expiry/extension (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkerkhove authored Sep 22, 2022
1 parent 6e2c87d commit 6e96076
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions deploy/notice-management.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,94 @@ resource deprecationNoticeLifecycleTopic 'Microsoft.ServiceBus/namespaces/topics
}
}

resource emitEventGridNotificationTopicSubscription 'Microsoft.ServiceBus/namespaces/topics/subscriptions@2021-06-01-preview' = {
parent: deprecationNoticeLifecycleTopic
name: 'event-grid-notifications'
properties: {
maxDeliveryCount: 3
}
}

resource emitEventGridNotificationTopicSubscriptionFilter 'Microsoft.ServiceBus/namespaces/topics/subscriptions/rules@2021-06-01-preview' = {
parent: emitEventGridNotificationTopicSubscription
name: 'unfiltered'
properties: {
action: {
}
filterType: 'SqlFilter'
sqlFilter: {
sqlExpression: '1=1'
compatibilityLevel: 20
}
}
}

resource tweetDeprecationExtendedTopicSubscription 'Microsoft.ServiceBus/namespaces/topics/subscriptions@2021-06-01-preview' = {
parent: deprecationNoticeLifecycleTopic
name: 'tweet-deprecation-extended'
properties: {
maxDeliveryCount: 3
}
}

resource tweetDeprecationExtendedTopicSubscriptionFilter 'Microsoft.ServiceBus/namespaces/topics/subscriptions/rules@2021-06-01-preview' = {
parent: tweetDeprecationExtendedTopicSubscription
name: 'unfiltered'
properties: {
action: {
}
filterType: 'SqlFilter'
sqlFilter: {
sqlExpression: 'MessageType=\'AzureDeprecationWasExtendedV1\''
compatibilityLevel: 20
}
}
}

resource tweetDeprecationClosureTopicSubscription 'Microsoft.ServiceBus/namespaces/topics/subscriptions@2021-06-01-preview' = {
parent: deprecationNoticeLifecycleTopic
name: 'tweet-deprecation-closure'
properties: {
maxDeliveryCount: 3
}
}

resource tweetDeprecationClosureTopicSubscriptionFilter 'Microsoft.ServiceBus/namespaces/topics/subscriptions/rules@2021-06-01-preview' = {
parent: tweetDeprecationClosureTopicSubscription
name: 'unfiltered'
properties: {
action: {
}
filterType: 'SqlFilter'
sqlFilter: {
sqlExpression: 'MessageType=\'AzureDeprecationWasClosedV1\''
compatibilityLevel: 20
}
}
}

resource persistNoticeChangedTopicSubscription 'Microsoft.ServiceBus/namespaces/topics/subscriptions@2021-06-01-preview' = {
parent: deprecationNoticeLifecycleTopic
name: 'persist-notice-update'
properties: {
maxDeliveryCount: 3
}
}

resource persistNoticeChangeTopicSubscriptionFilter 'Microsoft.ServiceBus/namespaces/topics/subscriptions/rules@2021-06-01-preview' = {
parent: persistNoticeChangedTopicSubscription
name: 'unfiltered'
properties: {
action: {
}
filterType: 'SqlFilter'
sqlFilter: {
sqlExpression: '1=1'
compatibilityLevel: 20
}
}
}

resource serviceBusConnection 'Microsoft.Web/connections@2016-06-01' = {
name: serviceBusConnectionName
location: defaultLocation
Expand Down

0 comments on commit 6e96076

Please sign in to comment.