Skip to content

Repository files navigation

Azure Subscription Cost Management

A Blazor-based dashboard for reviewing Azure subscription Actual Cost and managing budgets according to each signed-in user's Azure permissions.

Azure Subscription Cost Dashboard

Prerequisites

Getting Started

Azure login

  1. Login to Azure.

    # Azure CLI
    az login
    
    # Azure Developer CLI
    azd auth login

Local development

  1. Create the local Microsoft Entra registration and credential.

    # zsh/bash
    ./scripts/new-dashboard-entra-app.sh --with-client-secret
    # PowerShell
    ./scripts/New-DashboardEntraApp.ps1 -WithClientSecret
  2. Run Aspire.

    # Aspire CLI
    aspire run --file ./apphost.cs
    
    # dotnet CLI
    dotnet run --project src/AzureCostDashboard.AppHost

Azure deployment

  1. Run the command.

    azd up

    You will be asked to provide the environment name, subscription and location.

  2. If you want to use GitHub Actions as the CI/CD pipeline, run the following command and push changes.

    azd pipeline config

    Then, follow the prompt by selecting and/or entering values.

GitHub app canvas

The extension in .github/extensions/azure-cost-dashboard provides an Azure Cost Dashboard canvas backed by the current Azure CLI session:

Open this repository in the GitHub Copilot app and ask Copilot to open the Azure Cost Dashboard canvas. The canvas discovers the subscriptions visible to the signed-in Azure CLI user and queries month-to-date Actual Cost.

TO-DO list

See the PRD MoSCoW priorities and implementation status for completed and remaining Must-have, Should-have, Could-have, and Won't-have items.

Read more

About

Dashboard for cost management for Azure subscriptions

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages