/commercial-marketplace-managed-application-metering-samples

A set of samples and notes for different approaches using the metering service with managed applications.

Primary LanguageC#

Azure Marketplace Managed Apps metered billing examples

This repository contains several reference implementations of solutions to emit metered billing usage events from within an Azure Managed Application.

These examples are for reference when building your own solution.

PowerShell script

Post a metered billing event from a VM deployed inside a managed resource group.

  1. Virtual Machine Example

Azure Functions

Post a metered billing event from an Azure function.

  1. Post a metered billing event from a Azure Function HTTP Trigger using a C#.
  2. Post Recurring metered billing event from a Azure Function Timer using a C#.

Post a Metered Billing Event Using Notification webhook

  1. Post a metered billing event on creation from Managed Application Notification webhook using a C#.