How can I 'ping' a MySQL Server hosted by AZURE

Benjamin Stevens 20 Reputation points
2023-03-17T15:06:41.4833333+00:00

I have been using an AWS Virtual machine to host my MySQL Server, but would like to move to the AZURE ecosystem.
My .net applications ping the server as part of a connectivity check.

[My.Computer.Network.Ping]

I can't do this with my AZURE MySQL Server so I need another method.
What do you suggest?

Many thanks in advance

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
937 questions
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
712 questions
0 comments No comments
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 27,102 Reputation points Microsoft Employee
    2023-03-18T20:58:24.4166667+00:00

    @Benjamin Stevens Welcome to the Microsoft Q&A forum, Thanks for posting your question.

    You can use TcpClient in .NET to connect to port 3306 and check if it is open or not. This method is often referred to as "tcpping" and is very similar to the original Ping.

    Regards

    Geetha

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful