Below is a sample script you can use to utilize the REST API for azure:
You can then use the obtained token from above to utilize the API. This is passed in the header of the request:
To find what operations are available:
Will post in the future an update here with more functionality, and real-world use-case.