When preempted nodes are given back, previously installed .NET 8.0 disappeared

Grace Tong 0 Reputation points
2025-04-07T16:19:41.3066667+00:00

I have a pool in my batch account with 6 low-priority nodes. I have seen that previously 2 of them were preempted, but when given back the previously installed .NET 8.0 using start task disappeared. Since my applications require .NET 8.0 to run, how can I avoid this issue?

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
369 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Markapuram Sudheer Reddy 1,675 Reputation points Microsoft External Staff Moderator
    2025-04-07T19:35:17.56+00:00

    Hi Grace Tong,

    Generally, start task is mainly used to install the applications required for task execution.

    The start task runs every time a node starts, for as long as it remains in the pool. This includes when the node is first added to the pool and when it is restarted or reimaged. When a low-priority node is preempted and later reallocated, Azure Batch reimages the node to its original state.

    To overcome your current challenge, try using pre-packaged custom image to allocate batch node. This might eliminate the need for repetitive installations or configurations during node startup.

    Please verify the similar workaround shared here for more comprehensive information of using a custom image to ensure installations persist on Azure Batch nodes. https://techcommunity.microsoft.com/blog/azurepaasblog/how-to-apply-custom-image-while-creating-batch-pool-and-node-for-python-runtime/3458579

    Please check below documentation for more information,

    https://learn.microsoft.com/en-us/azure/batch/batch-custom-images

    https://learn.microsoft.com/en-us/azure/batch/jobs-and-tasks#start-task

    If the information is helpful, please click on "Upvote"

    If you have any queries, please do let us know, we will help you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.