Container App Job not triggered by Service Bus event

Nikola Kretschmer 40 Reputation points
2024-02-13T15:15:47.8833333+00:00

My container app job is not triggered by a message arriving in my Service Bus topic and I dont know why. I've tried every possible combination of configurations (with and without connectionFromEnv/namespace/messageCount/etc.), access key and such. This is my configuration Connection string is not the problem, publishing from the same connection in a different container works User's image

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
623 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
419 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,421 Reputation points
    2024-02-14T14:32:04.2466667+00:00

    @Nikola Kretschmer I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.

    Issue:

    You observed that you container app job is not triggered by a message arriving in my Service Bus topic.

    Solution:

    You found that the problem was that the connection string was on a namespace level (Root Key), not on the topic / queue level where it has to be created (so for every topic or queue you have to have a separate connection string and use that)

    Thank you again for your time and patience throughout this issue.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Nikola Kretschmer 40 Reputation points
    2024-02-14T13:36:56.6133333+00:00

    Fix: the problem was that the connection string was on a namespace level (Root..Key), NOT on the topic / queue level where it has to be created (so for every topic or queue you have to have a seperate connection string and use that)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.