In Azure Portal, Advisor VM/VMSS right sizing CPU threshold can be set to 100%, but not when using ARM

Aimee Silva 40 Reputation points
2026-07-16T14:30:22.5766667+00:00

Within Portal, the drop down option for the CPU threshold shows 100 as an option. The documentation screenshot, also shows 100 as an option. However, if we try to configure it using Bicep/ARM templates, 100 is no longer an option. The documentation seems to have removed 100 as an option and running it this week fails. This was working fine just last week.

Why was the 100 option removed from ARM/Bicep when it is still available through Portal?

Azure Advisor
Azure Advisor

An Azure personalized recommendation engine that helps users follow best practices to optimize Azure deployments.


Answer accepted by question author

Suchitra Suregaunkar 16,125 Reputation points Microsoft External Staff Moderator
2026-07-16T16:18:29.52+00:00

Hello Aimee Silva

The lowCpuThreshold property on Microsoft.Advisor/configurations has always been defined as an enumeration in the resource provider, and the only accepted values are:

5 (default), 10, 15, or 20

This is documented consistently across every current API version (stable and preview) of the resource type, and across the REST API, Bicep, and ARM template references:

So 100 was never a valid value on the ARM contract, the docs page you referenced was updated recently to correct the property table so it matches what the Advisor RP actually accepts. That is why your deployment now fails validation on that value, even if a previous run appeared to succeed.

Why the Portal still shows 100:

The Azure Portal blade for Advisor's VM/VMSS right-sizing rules exposes a couple of UI options that are handled by the Portal experience itself, not by the Microsoft.Advisor/configurations ARM resource. The ARM lowCpuThreshold property specifically feeds Advisor's low CPU utilization evaluation (used to detect under-utilized VMs for shutdown/resize recommendations), which by design is bounded to a small threshold range see the algorithm details here:

That is consistent with why the ARM enum caps at 20.

To fix this update your Bicep/ARM template to use one of the supported values. For example:

resource advisorConfig 'Microsoft.Advisor/configurations@2025-01-01' = {
 name: 'default'
 properties: {
 lowCpuThreshold: '20' // allowed: '5' (default) | '10' | '15' | '20'
 duration: '7' // allowed: '7' (default) | '14' | '21' | '30' | '60' | '90'
 exclude: false
 }
}

Equivalent REST PUT body (sample from the official reference):

{
 "properties": {
 "lowCpuThreshold": "20",
 "duration": "7",
 "exclude": false
 }
}

If you truly need a 100% threshold:

That value isn't currently expressible through the ARM/Bicep/REST contract for Microsoft.Advisor/configurations, so there's no template workaround. The best path is to open a feature request using below link:

https://feedbackportal.microsoft.com/feedback/post/

Thanks,

Suchitra.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Christos Panagiotidis 3,301 Reputation points
    2026-07-18T09:23:19.3466667+00:00

    The current public contract is unambiguous: lowCpuThreshold accepts only 5, 10, 15, or 20. The 2025-01-01 REST API and the ARM/Bicep resource definition use the same enumeration, so 100 is rejected by the resource provider.

    The portal documentation also describes its VM/VMSS CPU setting as a filter on which recommendations are shown; it does not change how recommendations are generated. Therefore, the 100 option visible in the portal is not currently equivalent to the ARM lowCpuThreshold property.

    For automation, use 20 as the maximum supported value, for example lowCpuThreshold: '20', and allow up to 24 hours for recommendations to reflect the change. If an earlier deployment appeared to accept 100, read the current configuration back instead of assuming it persisted. There is no supported ARM workaround for 100 today. If that value is required, open an Azure support or product-feedback case asking Microsoft to align the portal and resource-provider contract.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.