Azuresql DB Auth

Connects an app to the Azure SQL Database container securely, with a least-privilege database user instead of the sa login, the right auth method per environment, and safe handling of the connection secret. Use when a user asks "don't use sa in my app", "create a least-privilege database user", "app login for SQL", "which authentication should my app use", "secure the connection string", "Encrypt / TrustServerCertificate", "store the connection string in Key Vault", "dotnet user-secrets", "managed identity for Azure SQL", or "grant only the roles my app needs". SQL auth locally, Microsoft Entra or managed identity in the cloud, changing only the connection string. Reach for this before wiring an app to connect as sa, or before committing a connection string to source.

Microsoft 604d672 3 files · 32.1 KB Updated 2.7k repo stars

File contents

microsoft/azure-sql-database-container/tree/main/skills/azuresql-db-auth commit 604d6727e1

Frequently asked questions

npx skillmds@latest add microsoft/azuresql-db-auth