why can't my azure function bind to a service bus Subscription

Jeff Block 0 Reputation points
2025-06-23T20:05:48.5+00:00

System.Private.CoreLib: Put token failed. status-code: 404, status-description: The messaging entity 'sb://iot-dev-asb-dataingress-sur-01.servicebus.windows.net/lane-assignment-status-changed/Subscriptions/

cat-lane-assignment-status-changed' could not be found

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
700 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sai Prabhu Naveen Parimi 2,265 Reputation points Microsoft External Staff Moderator
    2025-06-23T22:39:05.68+00:00

    @Jeff Block

    It looks like you're facing an issue with your Azure Function not being able to bind to a Service Bus subscription, and you're getting a 404 error indicating that the messaging entity could not be found. Here are a few things to check that might help resolve this issue:

    Verify the Subscription Name: Double-check the subscription name in your Azure Function configuration. Ensure that it's spelled correctly and that it matches the subscription you're trying to bind to.

    Confirm the Topic Exists: Make sure the Service Bus topic you're trying to use actually exists. The error suggests that the subscription might not be found within the specified topic.

    Check Subscription Configuration: If the subscription name is correct, verify the configuration settings of the subscription in the Azure portal. Ensure that it hasn't been deleted or that there aren’t any access restrictions in place.

    Namespace Access: Make sure that your Azure Function has the necessary permissions to access the Service Bus namespace and the subscription. You can check this from the Azure portal under the Access Control (IAM) settings.

    Access Keys: Ensure that you're using the correct connection string with valid Shared Access Signature (SAS) keys that allow access to the Service Bus resources.

    Function Configuration: Lastly, review the Azure Function's configuration settings to ensure that everything is set up correctly according to the requirements for binding with Service Bus.

    1 person found this answer helpful.

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.