Share via

504 bad gateway on service bus

Majid HOUTACH 10 Reputation points
2026-05-11T08:35:45.4033333+00:00

Hello,

Since this morning (8:00 AM) we experiment 504 bad gateway issues on our service bus located in Central France.
The messages send from several logic app do not reach the service bus leading to 504 bad gateway error messages.
There is no message on service health.

Best Regards

Azure Service Bus
Azure Service Bus

An Azure service that provides cloud messaging as a service and hybrid integration.


2 answers

Sort by: Most helpful
  1. Pravallika KV 16,365 Reputation points Microsoft External Staff Moderator
    2026-05-11T08:59:55.0166667+00:00

    Hi @Majid HOUTACH ,

    Thanks for reaching out to Microsoft Q&A.

    The Service Bus is now up and running. https://statusgator.com/services/azure/service-bus.

    This was a multi-region outage caused by a recent service update, which led to connectivity failures and request timeouts for Service Bus and dependent services across multiple regions. Operations such as sending, receiving, and resource management were impacted.

    To mitigate the issue, the Gateway and Broker applications were rolled back to the last known good configuration across all affected regions, which successfully restored service functionality.

    Hope this helps!


    If the resolution was helpful, kindly take a moment to click on User's imageand click on Yes for was this answer helpful. And, if you have any further query do let us know.

    Was this answer helpful?


  2. AI answer

    2026-05-11T08:36:00.6233333+00:00

    504 errors in this scenario indicate that requests from Logic Apps to Azure Service Bus are timing out or failing at the gateway level, typically due to connectivity, network, or backend availability issues rather than a problem in the Logic Apps themselves.

    Use the following steps to troubleshoot and mitigate:

    1. Validate Service Bus reachability
      • From a machine in the same network context as the Logic Apps (for example, a VM in the same VNet if using integration), browse or wget:
        • https://<yournamespace>.servicebus.windows.net/
      • A successful connectivity test typically returns an HTTP 400 with a Service Bus XML error payload (for example, Bad Request. To know more visit https://aka.ms/sbResourceMgrExceptions). This confirms DNS, TLS, and routing are working.
    2. Check ports and firewall rules
      • Ensure outbound connectivity from Logic Apps’ network path to *.servicebus.windows.net is not blocked.
      • Required ports include:
        • 443 (HTTPS)
        • 5671 and 5672 (AMQP)
        • 9354 (Net Messaging/SBMP, if still used)
      • From a test host in the same network path, verify ports are open, for example:
        • Windows PowerShell:
                 tnc <yournamespacename>.servicebus.windows.net -port 5671
          
        • Linux:
                 telnet <yournamespacename>.servicebus.windows.net 5671
          
      • If these fail, review NSGs, firewalls, or any custom outbound filtering and allow the required Service Bus endpoints and ports.
    3. Check for intermittent packet loss or latency
      • If the issue is intermittent, test for dropped packets and latency to Service Bus:
             .\psping.exe -n 25 -i 1 -q <yournamespace>.servicebus.windows.net:5671 -nobanner
        
      • A high failure rate or large latency spikes indicate network instability that can cause 504s.
    4. Verify Logic Apps and Service Bus configuration
      • Confirm Logic Apps are targeting the correct Service Bus namespace and entity (queue/topic) and that the namespace actually exists and is spelled correctly.
      • If using IP allowlists or private endpoints on Service Bus, ensure the Logic Apps’ outbound IPs or VNet are correctly allowed.
    5. Consider backend upgrades/restarts and retry behavior
      • Service Bus backend upgrades/restarts can cause brief throttling, dropped requests, or short disconnections.
      • Use the built‑in retry policies in the Service Bus SDK or configure retries in Logic Apps so transient issues are automatically retried.
    6. If the problem persists
      • Capture a network trace (for example, with Wireshark) from a test host reproducing the issue to see where the timeout occurs.
      • If connectivity tests and configuration look correct but 504s continue across multiple Logic Apps, open a support case with Microsoft Support and provide:
        • Namespace name and region (Central France)
        • Approximate start time (08:00) and correlation/Tracking IDs from failed calls
        • Results of connectivity and port tests

    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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