Azure batch pool nodejs sdk autoScaleEvaluationInterval correct syntax RRS feed

  • Question

  • I need to shorten the Azure batch pool autoscale evaluation interval from 15 minutes to 5 minutes.
    I'm using Azure batch NodeJS SDK.
    I've tried with different syntaxes, like 'PT5M', '300', '5', but they don't work.
    The correct property in pool configuration is autoScaleEvaluationInterval that
    is of type 'Duration':
    I don't know what's the syntax to define a new duration in JavaScript and how to use it here so that it works. With what I've tried so far, the pool creation fails.

    • Edited by rierjarv Wednesday, May 29, 2019 9:10 AM
    Wednesday, May 29, 2019 9:09 AM

All replies

  • The Node.js Azure SDK's use moment.js representation of Duration for durations: https://momentjs.com/docs/#/durations/
    Wednesday, May 29, 2019 3:41 PM
  • Any update on this thread?

    If a answer was useful, please remember to upvote and "Mark as answer" so others in the community can easily find it. 

    Friday, May 31, 2019 6:52 PM