Forum Discussion

Alexander72's avatar
Alexander72
Copper Contributor
Oct 25, 2025

Metered Billing Accelerator

Hi!

I want to implement a central instance of the Metered Billing Accelerator (https://github.com/microsoft/metered-billing-accelerator) so my Metered Billing Marketplace Offer apps.

I've reviewed the YouTube videos but they are quite old and certain things changed since the recording in Azure.

Does anyone here know how to install und use it?

BR

Alex

1 Reply

  • Take this for 2025 edition:

     

    1. Clone the Repository

    Start by cloning the official repo:

    git clone https://github.com/microsoft/metered-billing-accelerator.git
    cd metered-billing-accelerator

     

    1. Prerequisites

    Make sure you have:

    • An active Azure subscription
    • Azure CLI installed and logged in (az login)
    • .NET 6 SDK installed
    • A Microsoft Entra (Azure AD) tenant with app registration permissions
    1. Configure Environment Variables

    Set the required environment variables for deployment. These include:

    • AZURE_SUBSCRIPTION_ID
    • AZURE_RESOURCE_GROUP
    • AZURE_LOCATION
    • AZURE_METERING_STORAGE_ACCOUNT
    • AZURE_METERING_EVENTHUB_NAMESPACE

     

    1. Run the Deployment Script

    Use the provided PowerShell or Bash scripts in the deploy folder:

    ./deploy/deploy.sh

    This will provision all necessary Azure resources, including:

    • Event Hub
    • Azure Functions
    • Storage Account
    • Cosmos DB (if configured)
    1. Configure Your Marketplace Offers

    Once deployed, configure your SaaS or VM offers in Partner Center to point to the central metering endpoint. This allows multiple offers to report usage to the same instance.

Resources