Does Azure Application Gateway support WebSocket connections to VMs?

Sundar Narayanan 0 Reputation points
2025-04-07T20:35:45.7366667+00:00

Hello,

Does Azure Application Gateway support WebSocket connections to applications running on VMs in the backend?

I see https://azure.microsoft.com/en-us/updates/?filters=%5B%22Application+Gateway%22%2C%22Launched%22%5D this

{E4EA6720-F206-410E-8495-B1559D208618}

But this seems specific to containers?

Thanks,

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. TP 145.3K Reputation points Volunteer Moderator
    2025-04-07T21:12:55.16+00:00

    Hi Sundar,

    Yes, Application Gateway supports WebSocket connections to VMs.

    Screenshot/excerpt from features article:

    User's imagePlease see article below for details:

    Overview of WebSocket support in Application Gateway

    https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-websocket

    Note that Application Gateway for Containers is separate offering.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    1 person found this answer helpful.

  2. Praveen Bandaru 9,245 Reputation points Microsoft External Staff Moderator
    2025-04-07T21:29:45.7866667+00:00

    Hello Sundar Narayanan

    Yes, Azure Application Gateway supports WebSocket connections to applications running on virtual machines (VMs) in the backend.

    • This support is not limited to containers; it applies to any backend service that can handle WebSocket connections, including those hosted on VMs.
    • Ensure proper functionality by configuring the Application Gateway settings correctly, including enabling the WebSocket protocol in the listener settings.
    • Additionally, verify that your backend application can handle WebSocket connections and that any necessary firewall rules are in place to allow traffic.

    Check the document for more understanding: WebSocket support in Application Gateway


    Hope the above answer helps! Please let us know do you have any further queries.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found 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.