Apparent Bug in PUT /api/v1/arm/hostpool/{subscriptionId}/{resourceGroup}/{hostPoolName}/auto-scale

I've identified a bug today that you can't currently deploy the auto-healing of broken hosts via the API. Previously, like I wrote in my Blog Article: Deploying Azure Virtual Desktop with Nerdio Manager for Enterprise

You would configure autoHeal like this:

"autoHeal": { "enable": true, "config": { "wvdStatuses": ["Unavailable"], "sessionCriteria": "WithoutActive", "staleHeartbeatMinutes": null, "restartAttempts": 2, "waitMinutes": 10, "finalAction": "DeleteHost" } } }

Looks like that has changed to this syntax:

 "autoHeal":  {
                        "enable":  true,
                        "config":  {
                                    "wvdStatuses":  [
                                    "Unavailable"
                                    ],
                                    "sessionCriteria":  "WithoutActive",
                                    "staleHeartbeatMinutes":  null,
                                    "waitMinutesBeforeFirstAction": 10,
                                    "waitMinutes":  10,
                                    "actions": [
                                     {
          "type": "RestartVm"
        },
        {
          "type": "RestartVm"
        },
        {
          "type": "RemoveVm"
        }
      ]
    }
  }

Both now result in the error:

{ "errorMessage": "Default schedule. Auto-heal: number of recovery actions should be between 1 and 10", "innerMessage": "Auto-heal: number of recovery actions should be between 1 and 10" }

1

Comments (3 comments)

0
Avatar
Carl Long

Hi Jon, thank you for posting this!  Can you please confirm that this is for the Nerdio Manager for MSP product and not the Nerdio Manager for Enterprise product?  I just want to ensure we get visibility to the right team.  Thanks!

0
Avatar
Jonathan Towles


Its Nerdio for Enterprise

0
Avatar
Carl Long

Ah, thank you.  Will you please repost here as I want to make sure you get responses from the right sources. - https://nmehelp.getnerdio.com/hc/en-us/community/topics/23455781756685-Nerdio-Manager-API

Thanks!


Post is closed for comments.