Reclaiming the unused and overallocated Azure virtual machines
Use the out-of-the-box Azure views to identify the unused and overallocated virtual machines that are provisioned in the Azure infrastructure. The views also provide recommendations to reclaim these VMs for optimizing the capacity and improving the efficiency of your Azure infrastructure.
For more information, see the following sections:
Nathan is an Azure Technology Specialist in an IT organization. He manages and monitors the Azure infrastructure to ensure that the existing infrastructure capacity has sufficient resources (CPU, memory, and storage) to meet the current and future demands.
Current problem: Nathan wants to know whether the current Azure infrastructure elements are optimally and efficiently utilized. He wants to identify whether there are any overprovisioned or unused Azure VMs and take necessary actions on such infrastructure elements.
Solution: Nathan can use the Recommendations page in the Azure views to quickly and easily get the information that he wants. The Recommendations page in the Azure Virtual Machines view provides a list of elements that have overallocated and idle VMs and recommended actions to manage them.
Prerequisites: Let us assume that Alan, the TrueSight Capacity Optimization administrator, has already completed the necessary prerequisite tasks to set up the Azure views so that Nathan can view and use the Azure views.
- Set up data collection to import Azure data using the following ETL:
Microsoft Azure - Azure API Extractor
- Ensure that data is loaded into the data warehouse daily and the Indicators are available in the Workspace. The out-of-the-box recommendations are based on historical data for the last 30 days. With data over a longer period (15-30 days), you can get improved recommended actions.
- Install the Azure views
- Grant Nathan the required permissions to access the Azure views.
The following illustration provides a high-level view of the process.
Nathan performs the following steps:
Open the Azure Virtual Machines view
- Log on to the TrueSight console.
In the left navigation pane, click Capacity > Views > Cloud > Azure > Virtual Machines.
View the VM-specific core metric details
On the Virtual Machines page, review the following column values (metrics) to understand the utilization of the key resources:
Resource CPU Memory Description Metrics CPU Memory Shows the total resource value for the Azure virtual machine. CPU Util Memory Util Shows the current utilized resource value. CPU Trend Memory Trend Shows the rate at which the resource utilization is increasing or decreasing or is staying stable.
By default, some columns are hidden. Use the action menuthat is located next to the table title to display the hidden columns.
Configure the optimization behavior settings
- On the Virtual Machines page, select
> Edit Settings.
- In the Other Settings, configure the optimization behavior settings.
Click here to view the details of the optimization behavior settings
Optimization behavior Description Aggressive
Resource utilization in the server is computed by considering the average value of hourly samples. Spikes in the resource utilization within the hour are not considered. Then, 95th percentile of the hourly value over the last 30 days is computed for each resource to generate the configuration of the target virtual machine or instance type.
Resource utilization in the server is computed by considering the 90th percentile value of hourly samples. Only 10% of spikes in the utilization within the hour are not considered. Then, 95th percentile of the hourly value over the last 30 days is computed for each resource to generate the configuration of the target virtual machine or instance type.
Resource utilization in the server is computed by considering the 99th percentile value of hourly samples. Only 1% of spikes in the utilization within the hour are not considered. Then, 95th percentile of the hourly value over the last 30 days is computed for each resource to generate the configuration of the target virtual machine or instance type.
If you select the Conservative or Balanced optimization behavior for a server that is not instrumented, the results are based on the Aggressive behavior.
BMC recommends the Conservative behavior for servers that are running business-critical applications.
View the recommendations for the overallocated and idle VMs
Click the Recommendations tab.
The Recommendations page displays a table that lists overallocated and idle VMs with efficiency and risk related issues, and recommendations to fix them.
If TrueSight Cloud Cost Control is installed, the Efficiency recommendations also provide the estimated cost savings (in $) that you can achieve by performing the recommended actions. The cost savings are computed based on the bill amount of your last or current month.
Before you install TrueSight Cloud Cost Control, see .
To view a list of overallocated VMs and idle VMs with either high or low efficiency only, click the High Efficiency or Low Efficiency quick filter buttons.
To view more details of a VM, click the Severity icon corresponding to the VM.
The details are displayed in a new window. Observe the information such as severity or efficiency (low or high), optimizer findings, and recommended actions.
Consider the following examples with sample data:
Idle VM with high efficiency Idle VM with low efficiency Overallocated VM with high efficiencyClick here to review the recommendations details
The following table explains the different fields that you see in the Recommendations window.
Field Description System Name of the virtual machine Optimizer findings Brief description of the issue Type Recommendation type. It is one of the configuration parameters in the optimizer rule that generates this recommendation Severity/Efficiency Efficiency level of the recommendation that is based on the estimated savings per month that you can achieve by implementing the recommended action Generated on Date of the last run of the associated optimizer rule Optimizer rule Name of the associated optimizer rule Recommended actions Suggested actions that you can implement to optimize your costs Accuracy indicator
Displayed only for overallocated VM. Indicates the level of accuracy or reliability of the resizing recommendation. For more information about how the recommendation is generated, see Overallocated VM recommendation.
You can click the icon to view its description.
The icon can have one of the following values:
Value - Accuracy level
- Very High
For more information about each accuracy level, see Accuracy levels of resizing recommendations for overallocated VMs.
For more information about recommendations, see Using recommendations to resolve capacity risk and efficiency issues.
Click x to close the window.
Save an offline copy of the recommendations
Click Settings > Export to Excel to export the recommendations to an Excel file for offline reference or to share it with other stakeholders.