Categories: Articles

Azure App Configuration and access to Key Vault references

We decided to use an Azure App Configuration to store configs of backend. App Configuration can use Key Vault as secrets storage. We use connection string to connect from App Service to App Configuration. I configured references from an Azure App Configuration to Key Vault. After that I set access from App Service to Key Vault in order to get value of Key Vault secrets because App Configuration permissions does not allow to do that.

How to set access from App Service to Key Vault references in App Configuration with user managed identity:

  • Assign User managed identity to App Services.
  • Add User managed identity to Key Vault Access policies with List, Get secrets permissions or set RBAC roles “Key Vault Secrets User” if you use RBAC.
  • Add AZURE_CLIENT_ID App Service configuration (environment variable) with Client Id of User managed identity.

How to set access from App Service to Key Vault references in App Configuration with system managed identity:

  • Enable System managed identity.
  • Add System managed identity to Key Vault Access policies with List, Get secrets permissions or set RBAC roles “Key Vault Secrets User” if you use RBAC.

For local instance of application using of Key Vault references in App Configuration can be a bit challenging. Read how to handle that here https://learn.microsoft.com/en-us/azure/azure-app-configuration/use-key-vault-references-dotnet-core?tabs=core6x#grant-your-app-access-to-key-vault

Konstantin “Saqwel” Kostin

Share
Published by
Konstantin “Saqwel” Kostin

Recent Posts

Azure cli az acr login hangs

I have encountered an issue with az acr login --name <acr_name> command. It hanged and…

2023-08-23

Error: Unable to read Docker image into resource: unable to find or pull image nginx:latest

I have tried to learn terraform from scratch and found pretty simple tutorial for beginners.…

2022-09-09

Скрыть поле модели от Swagger (Hide field of model from Swagger)

При внедрении Swagger в проекте .Net Core Web API потребовалось скрыть одно поле из примера,…

2020-04-24

Прогноз цен на акции

Около года назад я решил попробовать заработать на фондовой бирже, покупая и продавая акции. Изучая…

2019-07-20

Installation failed with error code: (0x00000490), “Element not found. “

Во время установки .NET Framework столкнулся с ошибкой Installation failed with error code: (0x00000490), "Element…

2018-12-20

Huawei Watch 2 – замена телефону. Полный обзор

Почти целый год я размышлял и прикидывал, о том, смогу ли я использовать умные часы…

2018-10-06