Print View

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

https://learn.microsoft.com/en-us/azure/templates/microsoft.dbformysql/flexibleservers?pivots=deployment-language-arm-template#serverproperties-1
lowerCaseTableNames: The mysql parameter lower_case_table_names. Can only be specified when the server is being created. Allowed values 1 or 2.

https://learn.microsoft.com/en-us/azure/templates/microsoft.dbformysql/change-log/flexibleservers#2025-06-01-preview
ServerProperties: Added property 'lowerCaseTableNames'

https://learn.microsoft.com/en-us/azure/templates/microsoft.dbformysql/2025-06-01-preview/flexibleservers?pivots=deployment-language-arm-template#serverproperties
lowerCaseTableNames: The mysql parameter lower_case_table_names. Can only be specified when the server is being created. Allowed values 1 or 2.

Products

Microsoft Azure Database for MySQL flexible server 8.0

Created: 25th November 2026
Updated: 25th November 2026

Print View

© 2005-2026 Jamie Morrison