This article is contributed. See the original author and article here.

We are excited to announce the general availability (GA) of Elastic Jobs for Azure SQL Databases.  


 


Elastic Jobs is a fully integrated Azure SQL database service that allows you to automate and manage administrative tasks across multiple SQL databases in a secure, scalable way. It can run one or more T-SQL job scripts in parallel using Azure portal, PowerShell, REST, or T-SQL APIs. Jobs can be run on a schedule or on-demand, targeting any tier of Azure SQL Database. Job target can include all databases in a server, in an elastic pool, across multiple servers and even databases across different subscriptions and geo regions on Azure. Servers and pools are dynamically enumerated at runtime, so jobs run against all databases that exist in the target group at the time of execution.


 


Jobs - conceptual-diagram.png


Where can you use Elastic Jobs?


Any database administration or management job that can be scripted with a T-SQL script is a good candidate for elastic jobs. Some of these example scenarios include:



  • Automate management tasks like deploy schema changes, index rebuilding, performance/telemetry data collection etc.  

  • Configure jobs like query execution, collecting results across a collection of databases on a recurring basis.

  • Aggregate and collect data for processing and reporting.

  • Data movement, ETL processing to extract/process/insert data between tables in a database.

  • .. to name a few.


What are some significant capabilities of Elastic Jobs?


Elastic Jobs makes it easy and secure to manage large number of SQL databases across Aure. Some significant security and management capabilities of Elastic Jobs include:



  • Microsoft Entra ID (formerly Azure Active Directory) support for central administration of authentication and permissions

  • Service-managed Private Link support to securely connect to target databases.

  • Integration with Azure Alerts for job execution status notification. 

  • Easily scale Job Agent’s tier to connect to hundreds of target databases concurrently across Azure. 

  • Dynamic enumeration target databases in target servers and elastic pools

  • Jobs can be composed of multiple steps to customize the execution sequence.

  • All functionalities can be accessed through portal, PowerShell, T-SQL and REST APIs


How do you setup and use Elastic Jobs?


Setting up and using elastic jobs is simple as described here.


 



  • Job Agent and Job database creation


Job Agent and associated Job database creation experience in portal is similar to a SQL database creation. As part of job agent creation, its service tier can be chosen, and a user assigned managed identity can be added for Entra authentication. Once the job agent is created, its portal page allows easy access to all its capabilities.


 


SriniAcharya_3-1712275428921.png


 



  • Defining Jobs, their target groups and monitoring them through job agent’s portal page.


Jobs and job steps can be defined, edited and executed through portal page. These jobs can also be scheduled to run at regular intervals and their execution can be monitored.


SriniAcharya_1-1712356381526.png


 



  • Advanced security functionalities, alert notification and scaling are also easily accessed through Job Agent’s portal page.


Job agents Entra ID can be changed and private links to target databases established easily through portal page. Azure Alerts can be defined for getting alert notification on job executions status. Scaling the job agent’s compute tier to enable it to connect to hundreds of target databases concurrently is also easy through portal page links.


 


SriniAcharya_0-1712358374916.png


 


Steps described above for creating, configuring, and managing elastic jobs also be accomplished through using PowerShell, REST and T-SQL APIs.


 


Pricing


Billing for Job agents will start at GA time, April 11th, 2024. Billing cards in the Azure portal page will show estimated cost based on the provisioned job agent tier.


  *Billing for the job agents in national clouds are expected to start a little later, depending on the billing pipeline deployment in those regions.

 


Regional availability 


The Elastic Jobs is available in all the regions that Azure SQL Database is available. 


 


Resources 


To get started, access the Elastic Database Jobs in our documentation and follow through with the tutorials. 


 

Brought to you by Dr. Ware, Microsoft Office 365 Silver Partner, Charleston SC.