title: Quartz.Net Scheduler not working in Azure
body: <p>So I have created a SimpleSchedular using Quartz.Net in C# as below -</p>
  <p>I have created this inside <code>WebApi</code> project.</p>
  <pre><code>// Grab the Scheduler instance from the Factory
   NameValueCollection props = new NameValueCollection
   {
       { &quot;quartz.serializer.type&quot;, &quot;binary&quot; }
   };
   StdSchedulerFactory factory = new StdSchedulerFactory(props);
   IScheduler scheduler = await factory.GetScheduler();
  
   // and start it off
   await scheduler.Start();
  
   // define the job and tie it to our HelloJob class
   IJobDetail job = JobBuilder.Create&lt;IDGJob&gt;()
       .WithIdentity(&quot;job1&quot;, &quot;group1&quot;)
       .Build();
  
  ITrigger trigger = TriggerBuilder.Create()
      .WithIdentity(&quot;trigger1&quot;, &quot;group1&quot;)
      .StartNow()
      .WithSimpleSchedule(x =&gt; x.WithIntervalInMinutes(5).RepeatForever())
      .Build();
  
   // Tell quartz to schedule the job using our trigger
   await scheduler.ScheduleJob(job, trigger);
  </code></pre>
  <p><strong>This worked like a charm in localhost BUT once I deployed it to Azure it did not do anything.</strong></p>
  <p>So I did some googling and found that Azure works on Eastern Standard Time -</p>
  <pre><code>var timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(&quot;Eastern Standard Time&quot;);
  var cronScheduleBuilder = CronScheduleBuilder.DailyAtHourAndMinute(19, 10)
                                                .InTimeZone(timeZoneInfo);
  </code></pre>
  <p>and changed the Scheduler as -</p>
  <pre><code> ITrigger trigger = TriggerBuilder.Create()
       .StartNow()
       .WithSchedule(cronScheduleBuilder)
       .Build();
  </code></pre>
  <p>I also tried UTC format as well.</p>
  <p>BUT still nothing is working.</p>
  <p>I even used <code>RoleEntryPoint</code> class but result again the same.</p>
  <p>Does this Quartz really works on Azure or am i missing anything.</p>