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
Relevant keyvault is created and the they are in same resource group.
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:
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: