You need to configure an Azure App Service web app to retrieve secrets from an Azure Key Vault by using a user-assigned managed identity. Which sequence of steps should you perform? To answer, arrange the actions in the correct order.
- 1Create a user-assigned managed identity in your Azure subscription.
- 2Associate the user-assigned managed identity with the Azure App Service web app.
- 3Assign a Key Vault access policy or Azure RBAC role to the user-assigned managed identity.
- 4Modify the web app code to authenticate using the user-assigned managed identity's client ID.
Cevap
The correct sequence of steps is: first, create the user-assigned managed identity; second, associate the user-assigned managed identity with the Azure App Service web app; third, assign the role or access policy to the identity on the Key Vault; and fourth, configure the application code to authenticate using the client ID of the user-assigned managed identity.
To successfully authenticate an App Service using a user-assigned managed identity, you must first provision the identity resource. Once created, it must be linked to the web app so the runtime environment can access its credentials. You then grant the identity permissions on the target Key Vault via role-based access control or access policies. Finally, since multiple user-assigned identities can exist on a resource, you must explicitly supply the client ID in your code configuration (e.g., using DefaultAzureCredentialOptions) to specify which identity to use.
Adım Adım Çözüm
Anahtar Kavram
Provisioning, assigning, and authorizing a user-assigned managed identity to access Azure resources.
Tahmini Süre:1m 0s