A CLI tool that fetches Azure Advisor cost recommendations across all your Azure subscriptions and generates a CSV report.
- Node.js 20.x or later
- Azure CLI installed and authenticated (
az login)
yarn installyarn build
yarn startThe 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
| 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 |
This tool uses DefaultAzureCredential from @azure/identity, which tries the following authentication methods in order:
- Environment variables
- Managed Identity
- Azure CLI (
az login) - Azure PowerShell
- Interactive browser login
For local development, simply run az login before using the tool.
# Run linter
yarn lint
# Fix lint issues
yarn lint:fix
# Check formatting
yarn prettier:check
# Format code
yarn prettier:write
# Run tests
yarn test