Skip to main content
schedule · azure

Scheduling Azure Batch Account

example schedules
6
schedulable
yes

Can ZopNight schedule Azure Batch Account?

ZopNight cannot schedule Azure Batch pools today, because Batch is not one of its schedulable resource types. Dedicated nodes keep billing between job runs, so a pool of 20 idle nodes pays for 20 VMs around the clock. To stop that, scale pools to 0 dedicated nodes in Azure or use an autoscale formula.

How the stop works

Stop mechanism for Azure Batch Account on Microsoft Azure.
Field Value
Behaviournot schedulable in ZopNight today. Scale pools to 0 dedicated nodes in Azure, or use an autoscale formula, to stop idle node charges.

Example schedules

  • 0 8 * * 1-5 — Business Hours Start: Start at 8:00 AM on weekdays
  • 0 18 * * 1-5 — Business Hours Stop: Stop at 6:00 PM on weekdays
  • 0 22 * * * — Night Shutdown: Stop at 10:00 PM every day
  • 0 6 * * 1-5 — Morning Startup: Start at 6:00 AM on weekdays
  • 0 20 * * 5 — Weekend Shutdown: Stop at 8:00 PM on Friday
  • 0 7 * * 1 — Weekend Startup: Start at 7:00 AM on Monday

ZopNight does not schedule Azure Batch today. Batch is not one of its schedulable resource types. The sections below describe how a pool schedule behaves in Azure, which you can set up with Azure’s own autoscale formulas or a manual resize.

The queue makes this schedule forgiving

Batch decouples work from workers. Tasks submitted while a pool sits at 0 dedicated nodes do not fail; they wait in the job queue and begin executing when the morning resize brings nodes back. That property makes Batch one of the safest resources on the directory to schedule aggressively: an overnight submission is deferred, not lost, and no orchestrator upstream needs to be taught about the calendar.

Formulas and fixed resizes are mutually exclusive

A pool in autoscale mode is governed by its formula, and a fixed resize to zero cannot be applied over it. The schedule needs autoscale disabled on the pool to take effect. Where a formula already scales on pending tasks, check what it actually achieves overnight before replacing it. A well-written formula may already reach zero, making the calendar redundant; a conservative one that floors at 2 nodes is exactly what the schedule fixes.

What the 8am rebuild costs

Fresh nodes repeat their entire preparation: boot, start task, application package downloads, container image pulls. A pool whose start task installs heavyweight dependencies can take a long first act before any task runs. Sizing the start cron means adding that preparation time to the queue’s expected drain time, not just the VM allocation time.

Dedicated nodes only; spot is separate

The resize drives the dedicated node count; low-priority and spot nodes are tracked as their own target. Their pricing already discounts idle risk, and a pool leaning on spot capacity may owe more of its bill to the dedicated floor than the spot fleet, which is precisely the part the schedule removes.

Interrupted tasks follow pool policy

Tasks still running at the stop time are handled per the pool’s deallocation option. Requeue is typical, meaning the task reruns from the start on the next available node. Long tasks should checkpoint or be scheduled to finish before the window closes.

See it fire on your bill.

Connect an account read-only in about five minutes. Findings start with the first scan.

472 rule families across 353 resource types on 22 platforms. Every threshold, metric, and IAM action is documented on these pages before you grant anything.

472 rule families documented
353 resource types covered
read-only default access level
Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·