Flexible Server for MySQL 'Inaccessible' Due to Managed Identity not found

XE2 Support 0 Reputation points
2025-05-27T16:41:30.5966667+00:00

Hi

We removed a managed identity and forgot that it was being used by Flexible Server to access the KeyVault for Encryption at Rest and now the DB is inaccessible. We are unable to change to another Managed Identity as the server errors with Failed to add user assigned managed identities to server: OurMysqlServer. Operation is disabled as server 'OurMysqlServer' is currently Inaccessible.

This is a bit of a viscious circle. The keys are available and the new Managed Identity can see them but the server appears not to be able to be altered due to it being inaccessible. The reason its inaccessible is due to the server not being able to look up the keys as the Managed Identity doesn't exist. We can't stop the server either via the CLI - we get the same error.

Please help - thanks in advance.

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
981 questions
{count} votes

1 answer

Sort by: Newest
  1. PratikLad 1,585 Reputation points Microsoft External Staff Moderator
    2025-06-12T12:00:35.6433333+00:00

    Hi XE2 Support,

    Following our discussion, the Azure Database for MySQL Flexible Server was 'Inaccessible' due to Managed Identity not found.

    As mentioned, we attempted to make the server accessible with the help of our internal team.

    I hope this has been helpful!

    Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    If this answers your query, do click Accept Answer and Upvote for was this answer helpful.

    0 comments No comments

Your answer

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