How to stop an Azure Batch service

Koteswara Pentakota 71 Reputation points
2022-07-04T11:15:24.233+00:00

Hi,

To offload a lot of data processing we have started to use Azure Batch services by creating a dedicated vm for this purpose. This service is going to start the Batch service and process the data for us.

But we are not sure how to stop the service and vm post the processing. If we do not stop this will keep running indefinitely and incurs cost for us.

Any inputs are aprpeciated.

Thanks,
Kotesh

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
307 questions
Azure ISV (Independent Software Vendors) and Startups
Azure ISV (Independent Software Vendors) and Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.ISV (Independent Software Vendors) and Startups: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
89 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 22,396 Reputation points
    2022-07-06T09:09:33.883+00:00

    Hello @Koteswara Pentakota ,

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

    In case you have to run this data processing jobs regularly, you can use batch-job-schedule. By scheduling your jobs, you can make sure you use the least number of resources. Nodes can be decommissioned when not needed, and tasks that are dependent on other tasks are spun up just in time optimizing the workflows. In addition to that scheduling batch jobs enables you to prioritize the jobs you want to run first, while taking into account tasks that have dependencies on other tasks.

    If you are looking for manually stopping a specific batch job here is a reference to it https://learn.microsoft.com/en-us/cli/azure/batch/job?view=azure-cli-latest#az-batch-job-stop

    In general, customers can use auto scale formula to scale in the batch pool depending on task count. Azure Batch can automatically scale pools based on parameters that you define, saving you time and money. With automatic scaling, Batch dynamically adds nodes to a pool as task demands increase and removes compute nodes as task demands decrease.

    For more details on how to set auto scale formulas, you can follow the below link
    https://learn.microsoft.com/en-us/azure/batch/batch-automatic-scaling#autoscale-formulas.

    --please don't forget to upvote and accept as answer if the reply is helpful--

    0 comments No comments