Skip to content

SU-PER-NOVA/Azure-Cost-Optimization-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Cost Optimization Scanner

📌 Overview

The Azure Cost Optimization Scanner is a Python script that detects unused or idle Azure resources (stopped VMs, unattached disks, unused IPs, orphaned NICs) and estimates potential monthly savings. It generates a simple, human‑readable report to highlight cost optimization opportunities.

🔑 Features

  • Finds stopped/idle VMs that still incur storage costs.
  • Detects unattached disks and estimates their monthly cost.
  • Identifies unassociated public IPs that add unnecessary charges.
  • Lists unused NICs (no direct cost, but clutter).
  • Generates a summary report with estimated monthly savings.

SCRIPT OUTPUT SCREENSHOT

output

⚙️ Dependencies

Make sure you have the following installed:

pip install azure-identity azure-mgmt-compute azure-mgmt-network azure-mgmt-resourcegraph azure-mgmt-costmanagement

or

#after cloning the repo
pip install -r requirements.txt

Installation Guide

Step 1: Login to Azure

az login
  • Copy the Subscription ID you want to use.

Step 2: Paste Subscription ID into the Script

# Replace with your Azure Subscription ID
subscription_id = "YOUR_SUBSCRIPTION_ID"

Step 3: Run the Script

python AZ_SCRIPT.PY

About

Azure Cost Optimization Scanner is a Python script that detects unused Azure resources like stopped VMs, unattached disks, idle IPs, and orphaned NICs. It estimates potential monthly savings and generates a clear report, helping apply FinOps principles for cost optimization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages