azureazure-mysql-database

Unable to create Azure Flexible MySQL database, key vault not found error


Im trying to create Azure Flexible MySQL database, I tried multiple times by providing key vault and managed key information. Still it showing Could not find Azure Key Vault Key with key name

deployment phase

error
Relevant keyvault is created and the they are in same resource group.


Solution

  • enter image description here

    If User-assigned Managed Identity (UMI) doesn’t have access to the key vault keys, then you may get above error while deploying Azure Flexible MySQL database. To resolve the error if RBAC is enabled, add Key Vault Crypto Service Encryption User role to the UMI as shown below:

    enter image description here

    If Vault access policies are enabled, then The UMI must have the following access to the key vault:

    After successful assignment of role, you will be able to deploy Azure Flexible MySQL database successfully without any error. For more information you can refer to the below documents: