/commercial-marketplace-samples

Various samples demonstrating commercial marketplace related scenarios.

MIT LicenseMIT

Microsoft Commercial Marketplace samples index

This is a list of repositories of samples we find useful in understanding Microsoft Commercial Marketplace concepts. Please submit a pull request if there is a sample you have developed, or find that you think that may benefit the community by adding a section under the relevant offer type with a short description and a link to the sample repo.

SaaS offers

Clients for Fulfillment and Metering APIs

We are using an Open API Specification (OAS) document (previously known as Swagger) for generating open source community API clients targeting different programming languages. Currently the following are available (all in preview).

Basic integration and manual onboarding sample (a.k.a. Contoso sample)

Some solutions require out-of-band or manual on-boarding steps, such as validating a customer, running scripts manually for deploying resources needed for a new customer etc. This sample uses email notifications for a new customer, or any changes on the subscription status made outside of the solution code.

GitHub repo

Sample for customer and subscription management (a.k.a. SaaS SDK)

This sample along with its API client library was released during the Microsoft Build in 2020. It demonstrates an approach for managing customers and subscriptions, along with implementing the protocol for managing the lifetime of a SaaS offer subscription using the Fulfillment APIs.

GitHub repo

Azure application offers - Azure managed applications

Custom metering, retrieving "resourceId" for a subscription

There are multiple approaches when a managed application needs to post usage to metering service. This set of notes and samples go through those approaches, and explain the relationship between them.

GitHub repo

Azure virtual machine offers

References