Hi Bikash •,
Welcome to Microsoft Q&A forum and thanks for using Azure Services.
As I understand, you want to switch to private access in the MySQL flexible server.
Follow the steps below:
- On the MySQL flexible server page, under Settings, select Networking.
- To disable public access on the MySQL flexible server, uncheck Allow public access to this resource through the internet using a public IP address under Public access.
Select Save to save the changes.
A notification will confirm that the connection security setting was successfully enabled.
Note:
The MySQL flexible server must have been deployed with Public access (allowed IP addresses) and Private endpoint as the connectivity method to implement this.
Reference Link: Deny Public Network Access in Azure Database for MySQL - Flexible Server using Azure portal
If this answers your query, do click Accept Answer
and Mark Helpful
for the same. And, if you have any further query do let us know.
Thank you.