DP-300 study notes · 15–20% of the exam
Configure and manage automation of tasks
First draft for review. Check details against Microsoft Learn before relying on them.
What this area covers
SQL Server Agent jobs, automated deployment with templates and scripts, and database tasks in Azure such as elastic jobs and alerts.
SQL Server Agent
- Available on SQL Server VMs and Managed Instance, not Azure SQL Database.
- Jobs have steps (T-SQL, PowerShell and others), schedules, alerts and operators. Database Mail sends notifications.
- Proxies run steps under a credential for least privilege.
- Troubleshoot with job history in msdb, the Agent service status and permissions.
Automated deployment
- ARM templates and Bicep for declarative deployment. Use what-if first.
- Azure PowerShell (New-AzSqlServer, New-AzSqlDatabase, Set-AzSqlDatabase) and Azure CLI (az sql server, az sql db, az sql mi).
- SqlPackage deploys DACPACs and exports or imports BACPACs.
- Check the resource group's deployment history when a deployment fails. Logical server names must be globally unique.
Database tasks in Azure
- Elastic jobs run T-SQL across many Azure SQL databases. They need a job agent and a job database, with a managed identity or database-scoped credentials.
- Target groups can include servers, pools and databases, and can exclude some.
- Azure Automation runbooks, Logic Apps and Functions handle scheduled or event-driven tasks.
- Azure Monitor alerts with action groups notify people or start automation.
- Maintenance windows control when Azure applies planned maintenance.