Перейти к файлу
unknown 6119dc7769 adding .gitignore 2015-07-08 13:13:01 -07:00
ConsoleApp-Billing-RateCard Merge branch 'master' of https://github.com/Azure/BillingCodeSamples 2015-06-15 17:11:05 -07:00
ConsoleApp-Billing-Usage tweaks to AAD setup 2015-06-15 17:10:27 -07:00
WebApp-Billing-MultiTenant Update web.config 2015-06-16 18:21:15 -07:00
.gitignore adding .gitignore 2015-07-08 13:13:01 -07:00
License.TXT Update License.TXT with Company name 2015-06-15 17:47:21 -07:00
readme.md Revision to 3rd sample 2015-06-22 09:06:09 -07:00

readme.md

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