Summary
In this chapter, we learned about Azure Key Vault – an Azure service that helps to unify the storage and management of application secrets. In the first section, we learned about Azure Key Vault, followed by learning how to create and configure a key vault using the Azure portal and the Azure CLI. In the next section, we learned how to set and read secrets, certificates, and keys from Azure Key Vault in the Azure portal and using the Azure CLI. In the final section, we learned about setting up authentication in Azure Key Vault. We covered both system-assigned managed identities and user-assigned managed identities, which will help us to decide which approach we need to choose when designing and provisioning Azure resources. We also learned how to access the secret value from Azure Key Vault in an ASP.NET Core web application. This will help us to keep important values such as connection strings, API keys, and tokens securely in a centralized location.
In the next...