question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az batch pool autoscale parameter "--auto-scale-evaluation-interval" lacks documentation

See original GitHub issue

I am trying to use az batch pool autoscale and set the “–auto-scale-evaluation-interval” parameter.

The docs do not provide any help on how this parameter should be set.

The error I am getting when using this parameter is:

msrest.exceptions.SerializationError: Unable to serialize value: '00:05:00' as type: 'duration'., ISO8601Error: Unable to parse duration string '00:05:00'

I have tried the following values (with and without quotes) and all resulted in a similar error:

  • 00:05:00
  • 00:05
  • T000500.0
  • T000500
  • T00:05:00
  • T00:05
  • 5
  • 5m

The result is that “–auto-scale-evaluation-interval” parameter is unusable

az cli version : 2.37.0 (current latest)

install on mac using brew Python (Darwin) 3.10.4 (main, Apr 26 2022, 19:42:59) [Clang 13.1.6 (clang-1316.0.21.2)]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RakeshMohanMSFTcommented, May 31, 2022

@ttsakpc You can refer this for ISO 8601 duration format https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm. I will get the document updated

1reaction
ttsakpccommented, May 30, 2022

I just found out (by looking at terraform docs) that value PT5M does what I need

Can someone explain a bit?

And please update the documentation for the command parameter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatically scale compute nodes in an Azure Batch pool
Azure Batch can automatically scale pools based on parameters that you define, saving you time and money. With automatic scaling, Batch ...
Read more >
Big Compute – includes - NET
In this hands-on lab, you will implement big compute workloads targeted at 3D rendering and media processing in Azure using Azure Batch and...
Read more >
Azure Batch Pool Autoscale - Batch Shipyard - Read the Docs
Azure Batch periodically evaluates an autoscale formula as specified by the evaluation interval timespan which can be as frequent as every 5 minutes....
Read more >
How to trigger/force Azure Batch pool autoscale formula
My problem is that the minimum evaluation interval for the formula is 5 minutes, which means that in the worst case I have...
Read more >
A pool in the Azure Batch service. - BatchService
API Documentation: BatchService A client for issuing REST requests to the Azure Batch service.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found