Configure idle VM recommendations
Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to view and modify the configuration of your idle VM
recommendations. You might want to modify the configuration to increase the
number of recommendations that you receive or to avoid misclassifying
VMs with intentionally small workloads as idle VMs.
If you haven't already, set up authentication.
Authentication verifies your identity for access to Google Cloud services and APIs. To run
code or samples from a local development environment, you can authenticate to
Compute Engine by selecting one of the following options:
Select the tab for how you plan to use the samples on this page:
gcloud
Install the Google Cloud CLI.
After installation,
initialize the Google Cloud CLI by running the following command:
To update the configuration of your idle VM recommendations, modify the value
for observation_period and upload the new configuration for your project.
You can set the observation period to a value between 1 day and 14 days, using
a string with the total number of seconds, followed by the letter s.
For an observation period of 1 day, use "86400s".
For an observation period of 14 days, use "1209600s".
After you upload the new configuration, it takes approximately 48 hours for it
to take effect. Until that time, any generated recommendations use the previous
configuration.
Permissions required for this task
To perform this task, you must have the following
permissions:
recommender.computeInstanceIdleResourceRecommenderConfig.get
on the project to view the configuration.
recommender.computeInstanceIdleResourceRecommenderConfig.update
on the project to modify the configuration.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-09 UTC."],[],[]]