Deployment for MySQL server fails

»CLØnÊ« Who 0 Reputation points
2023-04-20T07:53:50.0966667+00:00

I'm trying to set up my first MySQL server on azure, but deployment keeps failing with error:

{
    "status": "Failed",
    "error": {
        "code": "AzureKeyVaultKeyNotFound",
        "message": "Could not find Azure Key Vault Key with key name 'https://rxyz.vault.azure.net/keys/rxyz-dev/b8dc631c6369422eaa4610306974f56b'."
    }
}

I followed existing tutorial, but it's outdated and doesn't have information on security settings.
I created a new Managed identity and new Vault Key, so the key from error exists, I opened all permissions I could and is fails constantly.
Any info is appreciated. Thanks!

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

1 answer

Sort by: Most helpful
  1. Rahul Randive 9,091 Reputation points Microsoft Employee
    2023-04-20T14:07:38.45+00:00

    Thanks for your question. The error message suggests that the MySQL Server is unable to locate the key, which can often occur when the lacks sufficient permissions to access it, resulting in a denial of access by the Key Vault. I understand that you have already verified the permissions, but would you kindly double-check them again. If you are facing an issue for MySQL Flexible server, here is the latest document for your reference. Data encryption with customer managed keys – Azure Database for MySQL – Flexible Server | Microsoft Learn Thank you!

    1 person found this answer helpful.