Skill 2.1.5
Implement secure database access, including passwordless
Key Concepts
Azure SQL Database and SQL database in Fabric support Microsoft Entra authentication. A Microsoft Entra admin is set on the logical server, and database users are created with CREATE USER [name] FROM EXTERNAL PROVIDER for users, groups, service principals and managed identities. Microsoft Entra-only authentication disables SQL authentication for the server, so no SQL login password exists to steal. Contained database users authenticate at the database, which keeps access portable with the database.
Applications on Azure use a managed identity, and the connection string sets Authentication=Active Directory Managed Identity or Active Directory Default, which uses DefaultAzureCredential to pick the managed identity in Azure and the developer's sign-in locally. CI/CD pipelines use workload identity federation (OpenID Connect), so no client secret is stored. Where a secret cannot be avoided, it belongs in Azure Key Vault. Network controls such as private endpoints and disabled public access complement identity.