In azure servicebus I have a topic with a subscription. When this topic recieved a message, the subscription must forward the message to a logging-queue. How can I specify that the forwarded message is from this topic? I need the name of topic in the forwarded message.
I tried this but does not work. I dont know if Im doing wrong.
az servicebus topic subscription rule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name mytopic --subscription-name mysubscription --name myrule --sql-action-expression myproperty=myvalue
Message
class has a property called.UserProperties
. You can add topic name there and send the message to the topic. More on UserProperties can be found here: docs.microsoft.com/en-us/dotnet/api/…. - Gaurav MantriTopic
and aSubscription
. If I am not mistaken, you need the name of theSubscription
from where the message is forwarded to as a message sent to a topic can be received by 0 or more subscriptions based on the filtering rules. - Gaurav Mantri