使用 Azure 门户在 Azure Database for MySQL 中拒绝公用网络访问Deny Public Network Access in Azure Database for MySQL using Azure portal

本文介绍如何将 Azure Database for MySQL 服务器配置为拒绝所有公用网络访问,并仅允许通过专用终结点进行连接,从而进一步增强网络安全性。This article describes how you can configure an Azure Database for MySQL server to deny all public configurations and allow only connections through private endpoints to further enhance the network security.

先决条件Prerequisites

若要完成本操作指南,需要:To complete this how-to guide, you need:

设置拒绝公用网络访问Set Deny Public Network Access

按照以下步骤设置 MySQL 服务器的“拒绝公用网络访问”:Follow these steps to set MySQL server Deny Public Network Access:

  1. Azure 门户中,选择现有 Azure Database for MySQL 服务器。In the Azure portal, select your existing Azure Database for MySQL server.

  2. 在 MySQL 服务器页上的“设置”下,单击“连接安全性”,打开连接安全性配置页 。On the MySQL server page, under Settings , click Connection security to open the connection security configuration page.

  3. 在“拒绝公用网络访问”中,选择“是” ,以便为 MySQL 服务器启用拒绝公用访问。In Deny Public Network Access , select Yes to enable deny public access for your MySQL server.

    Azure Database for MySQL - 拒绝网络访问

  4. 单击“保存”以保存更改。Click Save to save the changes.

  5. 此时将显示一则通知,确认已成功启用了连接安全性设置。A notification will confirm that connection security setting was successfully enabled.

    Azure Database for MySQL -“拒绝网络访问”已成功启用

后续步骤Next steps

了解如何基于指标创建警报Learn about how to create alerts on metrics.