Share via

Azure Database for MySQL flexible server stuck in "updating state"

Ibidayo Awosola 0 Reputation points
2026-03-10T00:42:09.19+00:00

The server is currently in 'updating' state. Please wait for the operation to complete. You can refresh to check status. Reach out to Microsoft support if the operation is taking too long.

Azure Database for MySQL
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-03-10T00:42:22.0133333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Use the following steps to handle an Azure Database for MySQL Flexible Server that is stuck in the Updating state:

    1. Wait and recheck status via CLI
      • Some operations (provisioning, scaling, maintenance) can legitimately take several minutes.
      • Use Azure CLI to poll the server state:
             az mysql flexible-server show \
               --resource-group <your-rg> \
               --name <your-server-name> \
               --query state -o tsv
        
      • Alternatively, use the built-in wait command to block until the provisioning state is Succeeded or a timeout is reached:
             az mysql flexible-server wait \
               --resource-group <your-rg> \
               --name <your-server-name> \
               --updated \
               --timeout 3600
        
        or, if the server was just created:
             az mysql flexible-server wait \
               --resource-group <your-rg> \
               --name <your-server-name> \
               --created
        
    2. Check for CLI-level errors
      • If CLI commands fail with specific error codes (for example InvalidParameterValue, MissingSubscriptionRegistration, LocationNotAvailableForResourceType, ResourceGroupBeingDeleted), follow the documented mitigations, such as:
        • Registering the provider:
                 az provider register --namespace Microsoft.DBMySQL
          
        • Verifying subscription and resource group:
                 az account list --output table
                 az group show --name <your-rg>
          
        • Validating parameter values against the CLI reference documentation.
    3. Check activity logs for backend issues
      • If operations are hanging or failing with InternalServerError, inspect the activity log for the server using the correlation ID from any failed CLI/portal operation:
             az monitor activity-log list --correlation-id <correlation-id>
        
      • This can reveal backend or platform issues that keep the server in Updating.
    4. Avoid management operations while stuck
      • When a Flexible Server is in a non-ready state (such as Updating), other management operations (scale, restart, stop/start, configuration changes) may be blocked until the current operation finishes or fails. Wait for the state to change back to Ready before attempting additional changes.
    5. If the state persists, contact Microsoft support
      • If the server remains in Updating for an unusually long time (for example, significantly longer than similar operations in the same environment) and no clear error is visible in CLI or activity logs, open a support request so the platform team can inspect the backend operation:
        • In Azure portal, file a request via Help + support for Azure Database for MySQL – Flexible Server.

    These steps align with the documented guidance for monitoring and troubleshooting Azure Database for MySQL Flexible Server operations and CLI errors. If the platform operation is stuck on the service side, only Microsoft support can force-complete or repair it.


    References:

    0 comments No comments

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.