In cloud computing, it is crucial to follow best practices when building a reliable, high-performing, and secure environment. However, it is equally important to implement a strategy aimed at reducing the total cost of ownership. In this context, this Grafana dashboard offers a centralized view of Azure orphan resources that can be safely removed. By identifying and removing these unnecessary resources, you can effectively decrease the overall cost associated with maintaining their Azure subscriptions and increase the operational efficiency. You can find the Grafana dashboard under this GitHub repository.
This dashboard is influenced by the Azure Orphaned Resources 2.0 project developed by my colleague Dolev Shor. It incorporates and integrates some of the queries he designed for his Azure workbook, which can be created and utilized within the Azure Portal. You can refer to the Azure workbook documentation to learn more about creating and utilizing workbooks in the Azure Portal.
You can host the Grafana dashboard in Azure Managed Grafana, your own Grafana installation in an AKS cluster, or any Kubernetes cluster with access to the public internet.
The dashboard performs a series of queries using the Kusto Query Language and Azure Resource Graph to individuate unused, orphan resources that can be safely removed from your Azure subscriptions without impacting the operability of your cloud hosted workloads. Azure Resource Graph is an Azure service designed to extend Azure Resource Management by providing efficient and performant resource exploration with the ability to query at scale across a given set of subscriptions so that you can effectively govern your environment.
For more information Azure Resource Graph, you can refer to the following links:
Here is the list of the resources currently supported by the dashboard:
Please note that all the resources mentioned above come with an associated cost. Some resources like Availability Sets, Route Tables, Subnets, IP Groups, and Resource Groups are available free of charge.
To import the dashboard into Azure Managed Grafana, follow these steps:
Identity
under Settings
.Azure role assignments
button.Endpoint
URL on the Overview
page of your Azure Managed Grafana resource.Connections
and ensure that you have an Azure Monitor
datasource. If not, create one and select Managed Identity
as the authentication mechanism.Load subscriptions
button to test the data source.Dashboards
, click on New
, and then select Import
.Load
button.
Import
button. Upload Dashboard to Azure Managed GrafanaBefore importing the dashboard into your own Grafana installation, you need to create a service principal under your Microsoft Azure AD account and assign the Monitoring Reader role to it. Once done, follow these steps:
Connections
and ensure that you have an Azure Monitor
datasource. If not, create one and specify the tenant id
, client Id
, and client secret
of your service princiapl as shown in the following picture:
Load subscriptions
button to test the data source.Dashboards
, click on New
, and then select Import
.Load
button.
Import
button.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.