The Cost Management tile shows the cost of Azure resources, resource groups or subscriptions.
Analysing your Azure costs should help you identify big costs early, spot trends, and tie costs to applications.
The SquaredUp Cost tile is able to display cost information provided the resource group(s)/subscription(s) have been delegated under a role which has the necessary actions (e.g. the Cost Management Reader role).
After clicking on the Cost Management tile there are several Cost Management graph types to choose from:
Cost tile types
The Cost Management Scalar tile can be scoped to show the total cost of resources, resource groups or subscriptions. You can list resources to be summed, or select all of a particular type, resource group or tag, as described below.
The Cost Management Line Graph tile shows the cost over time, either as an aggregated single line or individual lines.
Clicking on a subscription, resource group or resource will take you to the drilldown page for that item.
The value in the centre always shows the total for the hovered item.
Clicking on a subscription, resource group or resource will take you to the drilldown page. Hovering over a segment shows the item's name as a tooltip, and the legend labels show the top 5 most expensive items.
The Utilization Treemap tile combines cost with metric. The tile must be scoped so that all the objects are of the same type, because metrics are being used (as with Performance tiles). For example, scope to a resource group or subscription and then use the filter by type to only show virtual machines. For more information see the below Walkthrough: Using the Utilization Treemap to show a heated treemap of cost and percentage CPU.
Cost tile options
The scope section allows you to define which resources are used to calculate the total cost shown.
For example, if you use the list option to select several individual resources, then the sum of the cost for these items will be shown.
Known issue: Cost accrued for deleted resources is not included.
You might use the type option to show the total cost of all resources with a particular type, for example all virtual machines. When using the Utilization Treemap tile it must be scoped so that all the objects are of the same type, because metrics are being used.
For more information see How to scope tiles
Azure role-based access control (RBAC)
It's worth noting that users will only see in SquaredUp what they are allowed to see in the Azure portal, which is controlled by role-based access control (RBAC) for Azure resources.
If the user does not have access to any of the resources that the Cost tile is scoped to, they will see a zero cost, or when scoped to a subscription:
The subscription was not found in the list of available subscriptions.
If they have access to some of the resources they will not see the full cost, but instead see the cost of the subset of resources that they have permission to see.
Removing the aggregate tick for a Cost Line Graph will show a line for each cost rather than one total cost line.
When adding and editing the tile you can choose either use page timeframe or specific timeframe.
For the Utilization Treemap tile only last 7 days and last 30 days are available, as it's only possible to get metric data from the API for up to 30 days.
For more information see How to use Timeframe.
Allows you to set the font size of the value in the tile.
Allows you to add a unit to the value displayed in the Scalar tile. For example, if your value shows a time in milliseconds, you can enter "ms" or if your value shows pageviews, you can enter "pageviews".
Allows you to format the value by using the mustache picker. For example, you can round the value up or down or convert it.
The Data Range option allows you to choose the range of data the graph will display. For line graphs, this means the data on the y-axis.
|percentage||Shows 0 to 100|
|fit to data||Shows the data minimum to data maximum|
|fit to data (from zero)||Shows from 0 to the data maximum|
|custom||Allows you to specify the min and max|
Allows you to specify the min and max limits, so that data outside your settings will not be shown. If all the data falls within your specified ranges then the y-axis range will fit to the data rather than your caps.
Height: Allows you to set the height of the tile with a slider.
The color section allows you to choose how the Treemap and Sun Burst graphs are displayed.
|subscription||Results that belong to the same subscription will be shown in the same colour.|
|resource group||Results that belong to the same resource group will be shown in the same colour.|
|type||Results that belong to the same type will be shown in the same colour.|
|none||All results will be shown in the same colour.|
show legend allows you to display a key to the coloured graph lines. When this is selected you can change from the automatic label to specify your own label format. The default label shows the name metric and unit.
The Treemap graph also includes a sublabel option.
Using the custom option you can create your own advanced label to specify exactly how you want the results to be displayed (using both static text and dynamic properties) to ensure that the results always make sense.
For more information see How to use Custom Labels
This walkthrough shows you how to add a Utilization Treemap tile to a dashboard.
In SquaredUp navigate to where you'd like the dashboard to be created. Hover over the + button and click dashboard.
Give the dashboard a title, by replacing the text that says New Dashboard.
The dashboard is saved as you go along so there's no need to save your changes. You can find your dashboard by clicking on the right-hand menu ☰ > system > unpublished.
A new tile has already been added to the dashboard. Edit the title by overwriting the placeholder value New tile with your own title.
The tile selector will already be open. Click Cost Management.
Click on the Utilization Treemap button.
Next we need to scope the tile. In the scope section add a resource group or subscription.
Tick filter by type and in the box type
In the metric section select a suitable metric such as
Percentage CPU. At this point you should see a Utilization Treemap.
The size is the cost representation, and the colour is the metric. By default the metric value is the average for the timeframe selected, in this case the average for the last 30 days, so we'll change this to maximum next.
Under aggregation click on maximum
Click on the color section and change the colour if you wish. The darker the colour the higher the metric value, in this case the higher the percentage CPU. So we can look for large rectangles (high cost) with pale colour (low CPU use) to see if there are VMs we are under-utilising.
- Deleted resources are not included when scoping the Cost Management tile leading to discrepancies with the Azure Portal (SU-7709)
- Cost tiles may show small differences from the values shown in the Azure Portal when longer timeframes are used (SU-7896)
- The calculated totals for Treemap and Sunburst tiles do not include the cost of each item that, over the selected timeframe, does not exceed 0.50 in the currency unit for that item (SQ-2527)
- SquaredUp for Azure does not currently support Azure Cost Management’s cost allocation rules