Gracefully shutdown scale set with more than 15 minutes timeout

Sergio Fernandez 0 Reputation points
2024-12-04T17:03:47.2666667+00:00

I'm deploying a scale set and need to implement a graceful scale-in process for instances running jobs that take over 15 minutes to complete

https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification I am trying to use this but it doesnt allow more than 15 min.

How can I ensure the scale-in waits for these jobs to finish before terminating the instances?

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
423 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay kumar Mandha 1,655 Reputation points Microsoft Vendor
    2024-12-04T22:48:39.93+00:00

    Hi Sergio Fernandez,
    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here
    Based on your query, we understand your concern what experience your facing but as per the official documentation we cannot exceed the timeout limit as below image User's image

    The field can take any value between 5 and 15 minutes in ISO 8601 format only not more than 15mints
    Alternate approach for long-running jobs, you might consider splitting them into smaller tasks to ensure they complete within the allowed time frame

    Please let us know you have any further queries tag us in comment


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.