How can I ping from "Spring Apps"?

Robin 20 Reputation points
2024-01-26T14:30:35.21+00:00

I cannot ping from a Spring app. I am using the service "Sping Apps". It does not work from a Java application or from the console. When I try to ping from the console, I get the message: "/usr/bin/ping: Operation not permitted". How can I allow ping in Azure Spring Apps?

Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
112 questions
0 comments No comments
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,256 Reputation points
    2024-01-26T14:51:09.5966667+00:00

    Robin Thanks for posting your question in Microsoft Q&A. Ping command uses ICMP protocol, and this is not permitted through Azure Load balancer and hence you got the above error. Check out blog: Use port pings instead of ICMP to test Azure VM connectivity related to this discussion.

    I assume you are looking to perform some network connectivity tests from Azure Spring Apps console. If so, follow the steps described in https://techcommunity.microsoft.com/t5/apps-on-azure-blog/investigate-azure-spring-apps-networking-issue-with-the-new/ba-p/3693455 and you can use ncat command (or pre-installed tools such as nslookup etc.) to test TCP/UDP connection. If you are looking for any other scenarios, please share the additional context and details.

    I hope this helps and let me know if you have any questions or face issues.


    If you found the answer to your question helpful, please take a moment to mark it as Yes for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.


0 additional answers

Sort by: Most helpful