An Azure managed MySQL database service for app development and deployment.
Hi Devops,
It sounds like your MySQL Flexible Server is stuck in an Inaccessible state because the customer-managed key (CMK) failed its revalidation check (CMKRevalidateCheckKeyFailed). This usually means the server’s managed identity lost access to the Key Vault or the CMK settings need to be reapplied. Here’s what you can try:
- Double-check your managed identity and Key Vault configuration: • Verify the user-assigned or system-assigned managed identity on your MySQL server has a Key Vault access policy with at least Get, WrapKey and UnwrapKey permissions on the key.
• Make sure the Key Vault firewall (if enabled) allows access from your server’s network or service tag. - Reapply or update the CMK on the Flexible Server:
• In the Azure portal: – Navigate to your MySQL Flexible Server > Encryption (under Settings) > Customer-managed key. – Click “Update” or “Change key,” reselect the Key Vault and key version, and save.
• Via Azure CLI (example):
This forces the service to reattach and revalidate the CMK. https://dori-uw-1.kuma-moon.com/en-us/azure/mysql/flexible-server/security-customer-managed-key#recommendations-for-configuring-data-encryptionaz mysql flexible-server encryption update \ --resource-group MyResourceGroup \ --name MyServerName \ --cmk-uri https://MyVault.vault.azure.net/keys/MyKeyName/KeyVersion
https://dori-uw-1.kuma-moon.com/en-us/azure/mysql/flexible-server/overview#enterprise-grade-security-compliance-and-privacy Please do let me know if it works. If not, share the details in private message for further troubleshooting.