Creating Azure SQL Database Users Programmatically using Azure DevOps
summary
Automates creation of AAD-contained database users and role memberships by reading a single Excel workbook in source control and running a pipeline that uses Terraform to provision servers, Azure DevOps for CI/CD, Azure Key Vault for secrets, dbatools + PowerShell to run T-SQL as a Service Principal, and a system-assigned SQL Server identity. Pipeline adds/removes hosted-agent firewall rules, requires Directory Readers role on the SPN and SQL identity, enforces the workbook as the truth, and mostly works though demos show Azure-version and env hiccups.
AI-written summary · about
chapters (7)
- 0:00Start
- 2:44Create Azure Sql Database Users
- 17:51Azure Devops Pipeline
- 19:20Connect Our Hosted Agent to Our Azure Sql Instance
- 21:13Deploy the Permissions from the Excel Workbook
- 37:42Data Validation
- 1:02:44Lunch Break
related talks
50mA Deep Dive into DevOps Practices with Azure SQL
48mConnecting the dots of Azure SQL DevOps
01h 09mAzure SQL Database Development Inner and Outer Loops
40mCreate and Deploy Multi Tenant Applications on Azure with Azure DevOps
37mAzure DevOps for Everyone
46mLet Azure control your DevOps Pipelines
46mAutomating Infrastructure as Code with Azure DevOps
25mEnterprise Deployment to Azure and AWS in Azure DevOps
