Edit

Share via


Get prediction results for Standby pools (Preview)

Important

Prediction results for standby pools is currently in preview. Previews are made available to you on the condition that you agree to the supplemental terms of use. Some aspects of this feature may change prior to general availability (GA).

To effectively manage and optimize your standby pool for Virtual Machine Scale Sets, you can use the Standby Pool runtime view APIs to retrieve prediction results. These results are available 2-3 weeks after creating the standby pool and provide insights into the predicted number of instances that will be requested from the pool for each hour over a 12-hour period. The predictions include the accuracy of the forecast and a historical view of instances requested from the pool over the past 12 hours, helping you make informed decisions to right-size your standby pool and improve operational efficiency.

While the prediction results provide valuable insights, they are not a guarantee and should be treated as a suggested size for your pool. The actual number of instances requested from the pool may vary depending on the specific demands of your workload. Additionally, the longer the prediction engine is able to monitor and analyze your workload trends, the more accurate and reliable the prediction results will become over time.

Prediction information

Note

Prediction values will not show unless the standby pool has been provisioned for 2-3 weeks.

The prediction results provide detailed insights into the expected behavior of your standby pool. These results include metadata about the forecast, such as accuracy, time intervals, and historical data, as well as the predicted number of instances requested during the forecast period. Use this information to analyze trends, optimize your standby pool size, and improve operational efficiency. Below is a description of the key values included in the prediction results:

Value Description
forecastInfo A JSON string containing additional metadata about the forecast, such as accuracy, time intervals, and recent history of requested instances.
SeriesUnitIntervalInMins The time interval, in minutes, between each data point in the forecast. For example, a value of 60 indicates hourly intervals.
InstancesRequestedCountRecentHistory An array of historical data showing the number of instances requested from the standby pool over the past 12 hours.
ForecastAccuracy The accuracy of the forecast as a percentage. A higher value indicates a more reliable prediction.
forecastStartTime The timestamp indicating when the forecast period begins.
instancesRequestedCount An array of predicted instance counts for each time interval in the forecast period.
az standby-vm-pool status --resource-group myResourceGroup --name myStandbyPool

{
  "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/myStandbyPool/runtimeViews/latest",
    {
      "instanceCountsByState": [
        {
          "count": 0,
          "state": "Creating"
        },
        {
          "count": 0,
          "state": "Starting"
        },
        {
          "count": 1,
          "state": "Running"
        },
        {
          "count": 3,
          "state": "Deallocating"
        },
        {
          "count": 7,
          "state": "Deallocated"
        },
         {
            "state": "Hibernating",
            "count": 0
        },
        {
            "state": "Hibernated",
            "count": 0
        },
        {
          "count": 0,
          "state": "Deleting"
        }
      ]
   }
  "name": "latest",
  "prediction": {
    "forecastInfo": "{\"SeriesUnitIntervalInMins\":60,\"InstancesRequestedCountRecentHistory\":[10,11,9,11,12,11,10,9,7,11,10,12],\"ForecastAccuracy\":90.0}",
    "forecastStartTime": "2025-05-09T17:00:00-07:00",
    "forecastValues": {
       "instancesRequestedCount": [ 10,10,11,12,9,11,11,12,13,10,10,8]}},
  "provisioningState": "Succeeded",
  "resourceGroup": "myResourceGroup",
  "status": {
    "code": "HealthState/healthy"
  },
  "type": "Microsoft.StandbyPool/standbyVirtualMachinePools/runtimeViews"
}

Next steps

Review the most frequently asked questions about standby pools for Virtual Machine Scale Sets.