Thanks for posting your question in the Microsoft Q&A forum.
Here are some steps you can try to resolve this issue:
- Ensure that you have correctly configured and enabled either a system-assigned or user-assigned managed identity for your App Service. if using a user-assigned managed identity, make sure it is assigned to both the App Service and the Key Vault resource.
- In the Azure Key Vault resource, navigate to
Access policies
and click onAdd Access Policy
. select theKey permissions
andSecret permissions
you want to grant . in theSelect principal
field, search for and select the managed identity of your App Service. - Ensure that the managed identity has the "Reader" role assigned at the subscription and resource group levels . you can assign roles using the Azure portal, Azure CLI, or Azure PowerShell
- After granting the necessary permissions, you can verify the role assignments by navigating to the
Access control (IAM)
blade in the Azure portal. check if the managed identity is listed with the appropriate roles assigned at the Key Vault, resource group, and subscription levels.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful