You are developing a custom script that runs on an on-premises server to automate resource provisioning in Azure. The script must authenticate programmatically with Microsoft Entra ID using a dedicated service principal associated with an application registration. Which of the following credential types can be configured directly on the application registration to enable this authentication? (Select TWO)
- A client secret (symmetric key) created under the Certificates & secrets settingsAnswer
- An uploaded public certificate (asymmetric key) under the Certificates & secrets settingsAnswer
- CA system-assigned managed identity associated directly with the application registration
- DA Shared Access Signature (SAS) token mapped to the application registration credentials
Answer
A client secret (symmetric key) created under the Certificates & secrets settings and an uploaded public certificate (asymmetric key) under the Certificates & secrets settings.
Microsoft Entra ID application registrations support two credential types for authenticating a service principal: client secrets (symmetric keys) and certificates (asymmetric keys). Client secrets act as passwords, while certificates allow using cryptography by uploading a public key (.cer, .pem, etc.), which is more secure for production daemon applications or scripts.
Step-by-Step Solution
Key Concept
Microsoft Entra application registrations support two primary types of credentials for service principal authentication: client secrets and certificates.