Azure REST API: Access Token Authentication using PowerShell to perform administrative tasks.
In this article we will see how to use Azure REST API in unison with PowerShell to perform administrative tasks. We will see how to get authorization access token and authenticate to Azure REST APIs so as to get information about all the virtual machines in the azure subscription.
So as to communicate with the Azure REST APIs, we need to register an App.The App will act as a service admin account to access the REST API. So as to do it , lets login into Portal.Azure.Com and go to Azure Active Directory.