|
| 1 | +--- |
| 2 | +title: Private Network Access overview |
| 3 | +description: Learn about private access networking option in Azure Database for MySQL - Flexible Server. |
| 4 | +author: SudheeshGH |
| 5 | +ms.author: sunaray |
| 6 | +ms.reviewer: maghan |
| 7 | +ms.date: 06/18/2024 |
| 8 | +ms.service: mysql |
| 9 | +ms.subservice: flexible-server |
| 10 | +ms.topic: how-to |
| 11 | +--- |
| 12 | + |
| 13 | +# Move from private access (virtual network integrated) to public access or Private Link with the Azure portal_ |
| 14 | + |
| 15 | +[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)] |
| 16 | + |
| 17 | +This article describes how to move an Azure Database for MySQL flexible server from Private access (virtual network integrated) to Public access or a Private Link with the Azure portal. |
| 18 | + |
| 19 | +## Prerequisites |
| 20 | + |
| 21 | +- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/). |
| 22 | +- An Azure Database for MySQL server started with Private access (virtual network integrated). |
| 23 | +- An Azure Virtual Network with a subnet that has a service endpoint to the Azure Database for MySQL server. |
| 24 | +- An Azure Database for MySQL server with a private endpoint. |
| 25 | + |
| 26 | +## How to move from private access (virtual network integrated) to public access or Private Link with the Azure portal |
| 27 | + |
| 28 | +The steps below describe how to move from private access (virtual network integrated) to public access or Private Link with the Azure portal. |
| 29 | + |
| 30 | +1. In the [Azure portal](https://portal.azure.com/), select your existing Azure Database for MySQL flexible server instance. |
| 31 | + |
| 32 | +1. On the Private access (virtual network Integrated) Azure Database for MySQL flexible server instance page, select **Networking** from the front panel to open the high availability page. |
| 33 | + |
| 34 | +1. Select **Move to Private Link**. |
| 35 | + |
| 36 | + > [!NOTE] |
| 37 | + > A warning appears explaining that this operation is irreversible and has downtime. |
| 38 | +
|
| 39 | +1. Once you select **Yes**, you're taken to a wizard that has two steps. |
| 40 | + |
| 41 | + 1. Step 1: Detach the server from the virtual network infrastructure and transitioning it to the Private Link or Public access infrastructure. |
| 42 | + |
| 43 | + 1. If you need public access only, you need to check `Allow public access to this resource through the internet using a public IP address`, or If you need private access only, then move to step 2 and don't check `Allow public access to this resource through the internet using a public IP address`. If you need public and private access, check the box for `Allow public access to this resource through the internet using a public IP address` and move to Step 2 to create a private link. |
| 44 | + |
| 45 | + 1. Once you Select Next then the process of detaching the server is initiated |
| 46 | + |
| 47 | + 1. Once it's detached, you can create a private link. |
| 48 | + |
| 49 | + 1. In Step 1, when the server detaches from the virtual network, the server is put into an updating state. You can monitor the status of the server in the portal. |
| 50 | + |
| 51 | + |
| 52 | + > [!NOTE] |
| 53 | + > After detaching the server from the virtual network infrastructure, if you didn't opt for "Allow public access to this resource through the internet using a public IP address" and also omitted Step 2 or exited the portal before completing the necessary steps, your server becomes inaccessible. You encounter a specific message indicating the server's update status. |
| 54 | +
|
| 55 | +You can select to configure the network setting or move to the networking pane and either configure public access, private endpoint, or both. |
| 56 | + |
| 57 | +## Related content |
| 58 | + |
| 59 | +- [Private Link - Azure Database for MySQL - Flexible Server | Microsoft Learn](/azure/mysql/flexible-server/concepts-networking-private-link) |
| 60 | +- [Public Network Access overview - Azure Database for MySQL - Flexible Server | Microsoft Learn](/azure/mysql/flexible-server/concepts-networking-public) |
0 commit comments