question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Service Bus] Sample needed for Topic Filters

See original GitHub issue

The section on Rules and actions in docs for Service Bus links to a sample that uses the older .NET package Microsoft.Azure.ServiceBus.

Ideally, there should be links to samples that use packages from all languages. This issue is to add a corresponding sample that uses the @azure/service-bus package so that it can be linked appropriately.

Reference: TopicSubscriptionWithRuleOperationsSample

Adding this sample will also be useful for us to re-direct readers who land at the above sample.

Code pointers

cc @spelluru

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jeremymengcommented, Apr 20, 2022

@bzhang0 Thanks for the help! I think the first step is to see if you can get the existing samples running.

  1. please following information in servicebus/service-bus/README.md to create a Service Bus namespace, and create a queue within it
  2. copy servicebus/service-bus/sample.env to servicebus/service-bus/.env
  3. edit servicebus/service-bus/.env and add information (you can find it in azure portal) for the first three env variables. Most of our samples uses dotenv packages to load secrets from .env files.
  4. build the package rush build -t .
  5. try to run the samples with npm run execute:samples

you probably will need to install dev-tool first

$ cd common/tools/dev-tool
$ npm install -g

if we can get some existing samples running, next step is to migration the sample from TopicSubscriptionWithRuleOperationsSample into this repo.

0reactions
bzhang0commented, May 10, 2022

I’m currently trying to make a sample in .ts similar to how the sample for TopicFilters was written in .cs (two reference samples here and here). I’ll push some of my code and create a merge request so you can see what I’m attempting, but currently I’m not quite sure where to access the Topic related objects / documentation for .ts files. I would appreciate any assistance - thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Topic filters and actions - Azure Service Bus - Microsoft Learn
Service Bus supports three filter conditions: SQL Filters - A SqlFilter holds a SQL-like conditional expression that is evaluated in the broker ...
Read more >
How to use Azure Service Bus Topic Filters Azure ... - YouTube
Credits -Company: CloudFronts TechnologiesWebsite: https://www.cloudfronts.com/Expertise: D365 CRM, Finance, SCM, AX/NAV upgrade, ...
Read more >
How to filter the Azure Servicebus Topic Subscription based ...
Filtering message based on message content is not supported by Azure Service Bus. You can define filtering rules either on the system ...
Read more >
Azure Service Bus Topic Filters
In this post, let's have a look at a nice feature that comes with Azure Service Bus Topics/Subscriptions and that is Topic Filters....
Read more >
Subscription filtering in Azure Service Bus | by Anupam Chand
Click on “+Add”. As a template click on “Azure Service Bus Topic Trigger”. Give your function a name. Under 'Service Bus connection' click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found