Ensuring secure connectivity to a database server hosted in the cloud is one of the critical requirements for any customer. Currently, Azure Database for MySQL – Flexible Server customers can choose one of two network connectivity options: Public access (allowed IP addresses) or Private access (VNet Integration).
These network connectivity options provide you with great flexibility when defining how users can connect to an Azure Database for MySQL flexible server. However, should you later decide that you want to implement the alternate connectivity option, it can be challenging to make the change. However, there’s a workaround that makes it easier to change the network connectivity option you are using for your MySQL flexible server, and this blog post will explain the process.
If you’ve provisioned a MySQL flexible server and decide that you want to change the connectivity option or switch from one virtual network (VNet) to another, begin by creating a new server using the Restore feature. Then, you can set up the new server with the desired configuration.
This technique will enable you to change from:
To begin the process, perform the following steps:
Now, based on the scenario you’re implementing, the steps diverge. To complete the process, see the details in the section below that corresponds to the task you want to accomplish.
Provisioning can take a few minutes.
Provisioning can take a few minutes. When the process is complete, you can modify and save firewall rules.
a. Under Virtual network, just below the Virtual network field, select Create virtual network.
b. In the Create virtual network dialog box, define a new virtual network by selecting one from the multiple allowed addresses and then creating a subnet.
c. Select OK.
While it’s important that you select the best connectivity option for your security and compliance needs while provisioning the server, there are alternatives for changing the connectivity options should you later find the need to do so. Consider spinning up a new server using the Restore capability, and then configure connectivity to meet your present requirements.
For more information, see the following resources:
If you have any feedback or questions about the information provided above, please leave a comment below or email us at AskAzureDBforMySQL@service.microsoft.com. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.