0

We have created Azure service bus queue and have a azure function - servicebus queue trigger subscribed to it. We now want this queue to convert to Topic as we will need multiple subscription to it. is there a way that we can convert queue to Topic without deleting queue and re creating this as a Topic. I understand that Azure function code which is in c# needs to be changed so it points to service bus topic.

Thanks, Punit Singhi

Punit
  • 1,347
  • 3
  • 20
  • 39

1 Answers1

1

Use the ForwardTo feature for forwarding a message to the topic entity.

Roman Kiss
  • 7,925
  • 1
  • 8
  • 21
  • Can you please elaborate your answer? – Gaurav Mantri Jun 01 '20 at 17:04
  • Queues can have an auto-forwarding set. It will cause messages to be forwarded to the destination (another queue or topic) on the broker side. That way there's no need to make any changes to the senders and those can continue using the queue. There's an [official documentation](https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-auto-forwarding) on the topic. – Sean Feldman Jun 01 '20 at 17:05