# MySQL 8.4.x on Azure

This article provides step-by-step instructions to create an **Azure Database for MySQL Flexible Server** with **VNet Integration and private access**. After completing the steps, you will have a fully provisioned and secure MySQL server in Azure, ready for application use.

### Prerequisites

* Access to the **Azure Portal**: [https://portal.azure.com](https://portal.azure.com/?utm_source=chatgpt.com)
* Azure permissions to:
  * Create Resource Groups
  * Provision Azure Database for MySQL Flexible Server
  * Create Virtual Networks (VNets) and Private Endpoints

### Steps

* **Log in to Azure Portal**
  * Open the Azure portal and search for **Azure MySQL**.<br>

    <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2FNsmv5UwUdylu31Ig4jB1%2Fimage.png?alt=media&#x26;token=b863dba3-d64b-4f08-9a57-cf601e9d61c0" alt=""><figcaption></figcaption></figure>
* **Create Flexible Server**
  * Click **Create** and select **Flexible Server**.

    <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2Flj0adFu7QOqBuLxw33AX%2Fimage.png?alt=media&#x26;token=b8d826d6-0f79-4460-9b8c-0fdbee9812d6" alt=""><figcaption></figcaption></figure>

    <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2Fg3IcZlSsY9v2hMI2KJKx%2Fimage.png?alt=media&#x26;token=b563fd9b-8ec1-4ded-9286-888ccc8b8459" alt=""><figcaption></figcaption></figure>
* **Specify Server Details**
  * Resource group
  * Name
  * Region
  * Workload
* **Configure Authentication**
  * Select **MySQL Authentication**.
  * Enter a username and password.

    <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2F478l0r2a0tTkDtdt4JXj%2Fimage.png?alt=media&#x26;token=f257f8de-dca0-4675-aa84-a6c85ea24812" alt=""><figcaption></figcaption></figure>

    <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2FPOlqNG3TQhHzuJerdYsX%2Fimage.png?alt=media&#x26;token=0048bc1f-eafa-430e-a7b3-3494f6f53f15" alt=""><figcaption></figcaption></figure>

    <br>

    <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2Fwrpj4NQZcvcMyNp5AVhW%2Fimage.png?alt=media&#x26;token=12b72169-606f-47c5-9b7e-b8124aa61d8e" alt=""><figcaption></figcaption></figure>

    <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2FOzAEIP2UUcK0d2Ex7y5r%2Fimage.png?alt=media&#x26;token=f860a812-8bd4-460a-a7db-39ea4e820f62" alt=""><figcaption></figcaption></figure>
* **Configure Connectivity**
  * Choose **Private access (VNet Integration)**.
  * If VNets exist under the selected resource group, they appear automatically.
  * If no VNets exist:
    * Click **Create VNet**.
    * Select **OK**.<br>

      <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2F1cZMjb1ICDsA8iG72vDX%2Fimage.png?alt=media&#x26;token=2a1543bd-bb55-4d1a-ba12-426ba240679e" alt=""><figcaption></figcaption></figure>
* **Set Security and Tags**
  * Configure preferred security settings under the **Security** blade.
  * Add the required tags.
* **Review and Create**
  * Click **Review + Create** to validate the configuration.
  * Click **Create** to start provisioning the server.
  * Wait a few minutes for the deployment to complete.
* **Capture Connection Details**
  * After creation, record the following for later use:
    * MySQL endpoint (private endpoint if configured)
    * Username
    * Password

***

Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.
