Can I replace SQL Jobs by Azure Scheduler?

admin

Administrator
Staff member
Currently there are 3 different ways SQL jobs are getting created in my on-premise instance.

<ol>
<li>SQL Jobs - Which will use SSIS Packages (Created Manually)</li>
<li>SQL Jobs - Which runs the SPs (Created Manually)</li>
<li>Automated Jobs created by SSRS subscriptions</li>
</ol>

I am trying to migrate on-premise SQL Server to Azure VM (IaaS) and I found something called Azure Scheduler. Now I am wondering how can I migrate above 3 type of Jobs!

Based on MSDN Forum by one of MVP

<blockquote>
The right and recommended way is with Azure
Scheduler. Scheduler can be used with success to replace the classical
SQL Jobs.
Another option is to use Azure Automation to trigger or even run
different action on SQL Azure -
<a href="https://azure.microsoft.com/en-us/documentation/articles/automation-manage-sql-database/" rel="nofollow noreferrer">https://azure.microsoft.com/en-us/documentation/articles/automation-manage-sql-database/</a>.
</blockquote>

But SSRS Subscriptions are dynamically generating SQL Jobs! How can I tell SSRS subscriptions not to create SQL Jobs rather to create Azure Scheduler?

Here is screenshot of SQL Jobs created by SSRS. As you see below its created dynamically!

<a href=" " rel="nofollow noreferrer"><img src=" " alt="enter image description here"></a>

Now how can I change or use azure scheduler here!

I have downloaded Image from blog post <a href="https://www.mssqltips.com/sqlserver...heduled-sql-server-reporting-services-report/" rel="nofollow noreferrer">https://www.mssqltips.com/sqlserver...heduled-sql-server-reporting-services-report/</a>

<strong>Update</strong>

Since we have <strong>Always On</strong> setup in Azure, there will be two nodes having same SQL jobs. I want only SQL Jobs from Active node to be executed/run.
So can I use Azure Scheduler to monitor the active node and run only SQL Jobs in that node?

<strong>Keeping Azure aside</strong>

I would like to make my question more simple.
How can we handle SQL Jobs in SQLServers which are configured in <strong>Always On</strong>.
As per my understanding always on will have 2 nodes so how we can find active node in this setup? because since both servers are active, jobs of both the servers will run and end up in many issues

My current investigation says SQL Scheduler is not right candidate for replacement of SQL Agents which runs on <strong>always ON</strong> configuration

Here are links which will provide in-dept details on finding PRIMARY nodes in Always ON and setting up SQL Agents

<a href="http://sqlschool.gr/blog/running-sq...ayson-availability-groups-blog-post-1046.aspx" rel="nofollow noreferrer">http://sqlschool.gr/blog/running-sq...ayson-availability-groups-blog-post-1046.aspx</a>

<a href="https://jaredzagelbaum.wordpress.co...rite-sql-agent-jobs-across-alwayson-replicas/" rel="nofollow noreferrer">https://jaredzagelbaum.wordpress.co...rite-sql-agent-jobs-across-alwayson-replicas/</a>