The Microsoft Power BI JavaScript Sample Code by Microsoft shows how to deploy the Microsoft Power BI API in JavaScript applications. Apart from providing authentication procedure for consuming the RESTful API, the sample code also demonstrates the procedures for creating and getting datasets, adding and deleting rows from datasets, and updating table schemas. Developers must register their sample apps in Azure Active Directory to be able to authenticate and deploy this particular sample code.