# Enforce TLS 1.2 or Higher on Azure MySQL Flexible Server for Secure Data Transmission

- Source: https://support.icompaas.com/support/solutions/articles/62000234786-enforce-tls-1-2-or-higher-on-azure-mysql-flexible-server-for-secure-data-transmission
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [Azure Database Services Benchmark v1.0.0](https://support.icompaas.com/support/solutions/62000112693) › [Azure Database Services Benchmark](https://support.icompaas.com/support/solutions/folders/62000169261)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

**Profile Applicability:**

-   **Level 1**  
    

**Description:** TLS version 1.2 or higher should be enforced for MySQL flexible servers to ensure secure data encryption in transit. Enforcing the latest TLS versions protects data from vulnerabilities and man-in-the-middle attacks.

**Rationale:** Transport Layer Security (TLS) provides a secure channel over which data can be transmitted, and using the latest version of TLS helps to prevent attacks associated with older versions (TLS 1.0 and TLS 1.1) which have known vulnerabilities.

**Impact:**

-   Pros:  
    
    -   Enhances data security by enforcing encryption during data transmission.  
        
    -   Helps mitigate man-in-the-middle attacks.  
        
    -   Complies with modern security standards.  
        
-   Cons:  
    
    -   Older clients or systems that do not support TLS 1.2 might face compatibility issues.  
        

Default Value:

By default, TLS 1.2 is enforced for MySQL flexible servers.  

**Pre-requisites:** Ensure that all clients interacting with the database server support TLS 1.2 or higher.

**Remediation**

**Test Plan:**

**Using Azure Portal:**

1.  Log in to the Azure Portal: [https://portal.azure.com](https://portal.azure.com/).  
    
2.  Navigate to Azure Database for MySQL flexible servers.  
    
3.  For each database, click on Server parameters under Settings.  
    
4.  In the search box, type tls\_version.  
    
5.  Ensure tls\_version is set to TLSV1.2 (or higher).  
    

**Using Azure CLI:** 1. Run the following command to verify the TLS version:

az mysql flexible-server parameter show --name tls\_version --resource-group <resourceGroupName> --server-name <serverName>

-   The output should return TLSv1.2 or higher.  
    

**Implementation Plan:**

**Using Azure Portal:**

1.  Log in to Azure Portal.  
    
2.  Navigate to Azure Database for MySQL flexible servers.  
    
3.  Click on the server and go to Server parameters.  
    
4.  Search for tls\_version and set the value to TLSV1.2 or higher.  
    

**Using Azure CLI:** 1. To configure the TLS version to TLS 1.2, run:

az mysql flexible-server parameter set --name tls\_version --resource-group <resourceGroupName> --server-name <serverName> --value TLSV1.2

  

**Backout Plan:**

**Using Azure Portal:**

1.  Log in to Azure Portal.  
    
2.  Navigate to Azure Database for MySQL flexible servers.  
    
3.  Change the tls\_version parameter to a lower version, such as TLSv1.1 or TLSv1.0, if necessary.  
    

**Using Azure CLI:** 1. To revert the TLS version, run:

az mysql flexible-server parameter set --name tls\_version --resource-group <resourceGroupName> --server-name <serverName> --value TLSv1.1

**References:**

-   [Azure MySQL Flexible Server - TLS Version Configuration  
    ](https://docs.microsoft.com/en-us/azure/mysql/concepts-ssl-connection-security)
    
-   [Azure MySQL SSL and TLS Configuration](https://docs.microsoft.com/en-us/azure/mysql/single-server/how-to-configure-ssl)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
