Subscription Rule
Deprecated
azure.eventhub.SubscriptionRule has been deprecated in favor of azure.servicebus.SubscriptionRule
Manages a ServiceBus Subscription Rule.
Example Usage
SQL Filter)
resources:
example:
type: azure:core:ResourceGroup
properties:
name: tfex-servicebus-subscription-rule-sql
location: West Europe
exampleNamespace:
type: azure:servicebus:Namespace
name: example
properties:
name: tfex-servicebus-namespace
location: ${example.location}
resourceGroupName: ${example.name}
sku: Standard
tags:
source: example
exampleTopic:
type: azure:servicebus:Topic
name: example
properties:
name: tfex_servicebus_topic
namespaceId: ${exampleNamespace.id}
enablePartitioning: true
exampleSubscription:
type: azure:servicebus:Subscription
name: example
properties:
name: tfex_servicebus_subscription
topicId: ${exampleTopic.id}
maxDeliveryCount: 1
exampleSubscriptionRule:
type: azure:servicebus:SubscriptionRule
name: example
properties:
name: tfex_servicebus_rule
subscriptionId: ${exampleSubscription.id}
filterType: SqlFilter
sqlFilter: colour = 'red'
Content copied to clipboard
Correlation Filter)
resources:
example:
type: azure:core:ResourceGroup
properties:
name: tfex-servicebus-subscription-rule-cor
location: West Europe
exampleNamespace:
type: azure:servicebus:Namespace
name: example
properties:
name: tfex-servicebus-namespace
location: ${example.location}
resourceGroupName: ${example.name}
sku: Standard
tags:
source: example
exampleTopic:
type: azure:servicebus:Topic
name: example
properties:
name: tfex_servicebus_topic
namespaceId: ${exampleNamespace.id}
enablePartitioning: true
exampleSubscription:
type: azure:servicebus:Subscription
name: example
properties:
name: tfex_servicebus_subscription
topicId: ${exampleTopic.id}
maxDeliveryCount: 1
exampleSubscriptionRule:
type: azure:servicebus:SubscriptionRule
name: example
properties:
name: tfex_servicebus_rule
subscriptionId: ${exampleSubscription.id}
filterType: CorrelationFilter
correlationFilter:
correlationId: high
label: red
properties:
customProperty: value
Content copied to clipboard
Import
Service Bus Subscription Rule can be imported using the resource id
, e.g.
$ pulumi import azure:eventhub/subscriptionRule:SubscriptionRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ServiceBus/namespaces/sbns1/topics/sntopic1/subscriptions/sbsub1/rules/sbrule1
Content copied to clipboard
Properties
Link copied to clipboard
A correlation_filter
block as documented below to be evaluated against a BrokeredMessage. Required when filter_type
is set to CorrelationFilter
.
Link copied to clipboard
Type of filter to be applied to a BrokeredMessage. Possible values are SqlFilter
and CorrelationFilter
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The ID of the ServiceBus Subscription in which this Rule should be created. Changing this forces a new resource to be created.