Skip to content

yblee85/azure-utils

Repository files navigation

azure-utils

A CLI tool that fetches Azure Advisor cost recommendations across all your Azure subscriptions and generates a CSV report.

Prerequisites

  • Node.js 20.x or later
  • Azure CLI installed and authenticated (az login)

Installation

yarn install

Usage

Build and run

yarn build
yarn start

The CSV report will be saved to the output/ directory with a timestamp, e.g.:

output/azure-advisor-cost-recommendations-2026-01-07T20-44-32-956Z.csv

CSV Output Columns

Column Description
Subscription ID Azure subscription GUID
Subscription Name Display name of the subscription
Category Recommendation category (Cost)
Impact Business impact level (High/Medium/Low)
Impacted Resource Name of the affected resource
Problem Description of the issue
Solution Recommended action to take
Potential Benefits Expected savings or improvements
Last Updated When the recommendation was last refreshed
Learn More Link URL to Microsoft documentation

Authentication

This tool uses DefaultAzureCredential from @azure/identity, which tries the following authentication methods in order:

  1. Environment variables
  2. Managed Identity
  3. Azure CLI (az login)
  4. Azure PowerShell
  5. Interactive browser login

For local development, simply run az login before using the tool.

Development

# Run linter
yarn lint

# Fix lint issues
yarn lint:fix

# Check formatting
yarn prettier:check

# Format code
yarn prettier:write

# Run tests
yarn test

License

MIT

About

Basic rest API to generate useful report

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors