manuquentin / BillingCodeSamples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microsoft Azure Billing API Code Samples

The Microsoft Azure Billing APIs enable integration of Azure Billing information into your applications, providing new insights into your consumption of Azure resources, allowing you to accurately predict and manage your Azure resource consumption costs.

To learn more about the Billing Usage and RateCard APIs, visit the overview article Gain insights into your Microsoft Azure resource consumption. Visit the Azure Billing REST API Reference article for more details on each of the APIs.

Get started

To download the source code of our samples via your favorite git shell or command line (ie: Git Bash, Git for Windows, etc.) just type:

git clone https://github.com/Azure/BillingCodeSamples.git
cd ./BillingCodeSamples/

Before you attempt to run the samples, please be sure to follow the instructions in the associated readme.md files for each, as they contain instructions for completing the requisite Azure Active Directory app registration work.

Sample Index

  • ConsoleApp-Billing-Usage - This sample will help you get started with using the Usage API.
  • ConsoleApp-Billing-RateCard - This sample help you get started with using the RateCard API.
  • WebApp-Billing-MultiTenant - This MultiTenant sample creates a WebApp that allows the logged-in user to give it consent, to call the Azure Graph API and the Usage API on the user's behalf. It also shows the OAuth flows required to get consent for the ‘Reader’ role, to access the list of Microsoft Azure subscriptions that the user wants to allow access to.

Need Help?

Be sure to check out the Azure forums on StackOverflow and MSDN if you are having trouble. The Azure Billing product team actively monitors the forums and will be more than happy to assist you.

If you would like to provide feedback on the Billing APIs or ideas on how we can improve them, please visit the Azure Feedback Forums.

Contribute Code or Provide Feedback

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.

If you encounter any bugs with the library please file an issue in the Issues section of the repository.

Learn More

About

License:MIT License


Languages

Language:C# 86.2%Language:JavaScript 9.0%Language:HTML 4.3%Language:CSS 0.3%Language:ASP 0.1%