MySQL Flexible Server — firewallRules PUT returns HTTP 500 on api-version 2025-06-01-preview

Andy Veal 0 Reputation points
2026-09-05T21:23:30.81+00:00

Creating/updating a firewall rule on an Azure Database for MySQL Flexible Server fails 100% of the time with HTTP 500 InternalServerError when the request uses API version 2025-06-01-preview. The same server responds normally to GET on the same API version, and the same PUT succeeds on GA API version 2023-12-30. The error body carries only a Tracking ID and no actionable detail. This is not transient — it reproduces on every attempt across multiple days and survives a 5× retry with exponential backoff.

Affected resource

Resource type Microsoft.DBforMySQL/flexibleServers (+ child firewallRules)
-------- --------
Resource type Microsoft.DBforMySQL/flexibleServers (+ child firewallRules)
Server name ctdev
Resource group devtest
Region UK South (from x-ms-routing-request-id: UKSOUTH:...)
publicNetworkAccess Enabled (no VNet delegation; delegatedSubnetResourceId / privateDnsZoneResourceId both null)
Server state [confirm: Ready]
(InternalServerError) An unexpected error occured while processing the request. Tracking ID: '<guid>'
Code: InternalServerError
Message: An unexpected error occured while processing the request. Tracking ID: '<guid>'

No inner error.code, no x-ms-failure-cause surfaced to the client. Request fails during FirewallRules_CreateOrUpdate long-running-operation initiation (_create_or_update_initial).

Azure Database for MySQL

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.