Exercise 1: User-Assigned Managed Identity
A user-assigned managed identity is a standalone resource that you can create that is trusted by the subscription in which it is created. Once you have created a user-assigned managed identity, you can assign it to one or more applications. These applications can also have one or more user-assigned managed identities for authentication. With this type of managed identity being standalone and assignable to multiple resources, its life cycle is managed independently of any of the resources to which it is assigned.
You can use Azure Functions to query your key vault by using a user-assigned manage identity for authentication. Begin by creating the user-assigned managed identity and providing it with the required permissions by following these steps:
- Create a new user-assigned managed identity with the name of your choice, as shown:
az identity create -n "<name>" -g "<resource group name>"
- Within the...