Forum Discussion
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:
- Clone the Repository
Start by cloning the official repo:
git clone https://github.com/microsoft/metered-billing-accelerator.git cd metered-billing-accelerator- 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
- 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
- Run the Deployment Script
Use the provided PowerShell or Bash scripts in the deploy folder:
./deploy/deploy.shThis will provision all necessary Azure resources, including:
- Event Hub
- Azure Functions
- Storage Account
- Cosmos DB (if configured)
- 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.