You are developing a web application that will be hosted on an on-premises web server. The application must programmatically retrieve database connection strings stored as secrets in an Azure Key Vault.
You need to configure the security and authentication requirements to allow the application to access the secrets.
Which of the following actions should you perform?
- Register the application in Microsoft Entra ID to create an application object and a service principal, configure a client secret or certificate for the registration, and grant the service principal access to the secrets in the Key Vault access policy.Cevap
- BEnable a system-assigned managed identity on the on-premises web server, and grant that managed identity access to the secrets in the Key Vault access policy.
- CRegister the application in Microsoft Entra ID, configure a client secret in the application registration, and reference the secrets in Azure App Configuration using Key Vault references without modifying the Key Vault access policy.
- DRegister the application in Microsoft Entra ID, and generate a Shared Access Signature (SAS) token with Read permissions from the Key Vault to authenticate the application directly.
Cevap
Register the application in Microsoft Entra ID to create an application object and a service principal, configure a client secret or certificate for the registration, and grant the service principal access to the secrets in the Key Vault access policy.
The correct option outlines the standard process for enabling an application running outside of Azure (on-premises) to authenticate and access Azure Key Vault. Since it is hosted on-premises, it cannot use Azure Managed Identities. It requires an Application Registration in Microsoft Entra ID to establish a service principal. The application uses a client secret or certificate to authenticate as this service principal, which must be granted the necessary permissions in the Key Vault access policy to retrieve the secrets.
Adım Adım Çözüm
Anahtar Kavram
App Registrations and Service Principals are used to establish a security identity for applications, especially when running outside of Azure where Managed Identities are not supported.