I recently presented a webinar introducing Azure Automation, and addressing concerns about how SQL Server Agent is not available in Azure SQL DB.  I want to use this post to make my presentation materials available, and to answer questions I was not able to get to during the talk.

Following is a link to the recording of the webinar: Azure SQL DB What Happened to SQL Server Agent

The slides I presented are available here: AzureAutomation_PPT

Following are my responses to questions I did not address in the session.

Q: Can I send email notification based upon the results of an individual job??

A: The short answer is yes, but it’s not that simple.  There is currently no way to add notifications to Azure Automation the way we do today in SQL Server Agent.  You could add logic to your runbook to send email based on certain events.  Your email configurations could be stored as Azure Automation variables for reuse.

I also suggest reading this post: https://azure.microsoft.com/en-us/updates/send-your-runbook-job-status-and-job-streams-from-automation-to-log-analytics-oms/.  It describes a technique for using Azure Log Analytics to consume Azure Automation Logs.  Azure Log Analytics has capabilities for sending notifications based on certain logged events.

In either case, I suggest also enabling detailed logging on your runbook.  The screenshot below shows how to enable this from the Azure Portal.

 

AzureAutomationLogging
Runbook Logging Options

 

Q: Is there any way to handle the execution of SSIS packages stored locally?

A: Azure Automation works on Azure resources.  It cannot be used for executing local SSIS packages.

Q: Is there a way to calculate a local VM’s DTUs, for comparing against cloud Azure SQL DB?

A: Justin Henriksen from Microsoft has created an Azure SQL DB DTU Calculator available here: http://dtucalculator.azurewebsites.net/.  This is a good place to start understanding what tier of Azure SQL DB will support workload of an existing on-prem database.

I also recommend this great post on sqlperformance.com written by Andy Mallon: What the heck is a DTU?  Andy runs tests and compares existing workloads to Azure SQL DB tiers, and also estimates Azure VM specs that would support various Azure SQL DB service tiers.  It’s a very interesting read!

Q: Is it possible to call Azure SQL DW Stored procedure from Azure automation?

A: Yes.  Refer to this script from the Runbook Gallery to get started with running SQL Scripts via a runbook: How to use a SQL Command

Q: Is it possible to process SSAS tabular models in an Azure VM from Azure Automation?

A: I haven’t seen a good way to do this.  If you are running SSAS in a VM, you may be better off using SQL Agent to automate SSAS processing.

Q: Can you use Azure Data Factory as alternative to running SSIS on an Azure VM?

A: Possibly, yes.  Azure Data Factory is not intended to be a cloud based replacement for SSIS.  It depends on how you are using SSIS.  In ETL scenarios, Azure Data Factory not very good at the T (transform).  I suggest reading this post from James Serra at Microsoft where he outlines some differences and similarities between SSIS and Azure Data Factory: Azure Data Factory and SSIS Compared

 

Advertisements