Set lower_case_table_names=2 for Azure Database for MySQL flexible server Fails Silently
Issue
When setting the lowerCaseTableNames: 2 for Microsoft.DBforMySQL/flexibleServers in the ARM template on initial deployment, the setting does not take effect and set the lower_case_table_names=2 read only server parameter.
Resolution
When creating the resource the apiVersion 2025-06-01-preview or later must be used.
"type": "Microsoft.DBforMySQL/flexibleServers",
"apiVersion": "2025-12-01-preview",
"name": "[variables('flexibleServerName')]",
"location": "[resourceGroup().location]",
Note: When using an earlier apiVersion, there will be no error, the value of lower_case_table_names will be set to the default of 1.
References
Products
Microsoft Azure Database for MySQL flexible server 8.0
Created: 25th November 2026
Updated: 25th November 2026
© 2005-2026 Jamie Morrison