You are developing a daemon application that runs on an on-premises physical server. The application must authenticate programmatically to Azure Key Vault to retrieve secrets. You need to configure the identity for this application. Which identity configuration should you use?
- AEnable a system-assigned managed identity on the on-premises physical server.
- BCreate a user-assigned managed identity in Microsoft Entra ID and assign it to the on-premises application.
- Register an application in Microsoft Entra ID to create a service principal, and authenticate using a certificate or client secret.Answer
- DGenerate a Shared Access Signature (SAS) token in Microsoft Entra ID and configure the application to authenticate using the token.
Answer
Register an application in Microsoft Entra ID to create a service principal, and authenticate using a certificate or client secret.
For workloads hosted on-premises, a standard application registration must be created in Microsoft Entra ID. This registration creates an application object and a service principal. The application can then authenticate programmatically using a client secret or certificate credentials to obtain Entra ID tokens and access Azure resources like Key Vault.
Step-by-Step Solution
Key Concept
App Registrations and Service Principals vs Managed Identities