Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 02: Create and add a client secret to an Azure Key Vault instance

Azure Key Vault is used to securely store and manage sensitive information such as passwords, encryption keys, and certificates. Key Vault provides a centralized and highly secure storage solution, safeguarding these critical assets from unauthorized access.

By using Azure Key Vault, organizations can enhance security practices by reducing the risk of exposing sensitive data within applications or configuration files. Key Vault integrates seamlessly with other Azure services, enabling easy access to stored secrets while enforcing robust access control policies and auditing capabilities for compliance purposes.

In this task, you’ll provision an Azure Key Vault instance.

{: .important } If you want to learn more about Azure Key Vault, go to Azure Key Vault basic concepts.

  1. Return to the Azure Home page.

  2. On the Azure Home page, in the search box, search for and select Key vaults.

  3. Select kv-@lab.LabInstance.Id.

  4. In the left menu, select Objects and then select Secrets.

  5. On the menu, select + Generate/Import.

    keyvaultimport.jpg

  6. Configure the secret by using the following values:

    Default Value
    Name [Your Secret Name] (e.g., appServiceRegistrationSecret)
    Secret value [Your Secret Value]

    {: .important } To access resources in your subscription, you must assign a role to the application. The process includes granting permissions by using Azure Key Vault. This ensures secure storage and retrieval of client secrets for authentication and authorization purposes.

  7. Select Create.

  8. In the left menu pane for the Key vault secrets page, select Access control (IAM). In the Grant access to this resource tile, select Add role assignment.

    addRoleassign.jpg

  9. In the search box, enter and select Key Vault Contributor, and then select Next.

  10. On the Members tab, in the Members section, select + Select members.

  11. In the Select members window, enter and select the appropriate member (e.g., [Your Service Account Name]) from the list and then select Select.

  12. Select Review + assign twice.