I need to consume Azure Service Management REST API for one of my use-case. I want to get list of subscriptions and for each subscription get list of VM.
I am using Java as programming language.
I think this api need “x-api-version” and “Authorization” as header parameters. How can I get access-token for accessing these apis?
I also found that for authentication, we need tenant-id, from where will I get it?
Could you please guide/help me in this regards.