Microsoft Entra principals for Azure SQL: managed identity vs service principal, users and groups

Verdict: For workloads connecting to Azure SQL, prefer a managed identity: it is passwordless and stores no secret. Service principals with a client secret are supported but carry credential risk. Entra groups simplify user access management.

CriterionManaged identityService principal (client secret)Entra userEntra security group
Identity typeWorkload identityWorkload identityHuman userCollection of principals
Secret handlingPasswordless, no stored secretClient secret to store and rotateInteractive, supports MFANot applicable
GuidanceRecommended for Azure resourcesSupported but not recommendedNamed DBA accessSimplifies access by group membership

Rules

Traps