title: Azure REST access token
body: <p>I want next:
  From my website to be able to start virtual server (Ubuntu, linux, windows server).
  I dit this with AWS and there was simple to find via IAM the access key and token. </p>
  
  <p>I would like to do the same if possible with Azure, to get the access key and token. I found some tutorials on how to like here: <a href="https://www.youtube.com/watch?v=ujzrq8Fg9Gc&amp;t=51s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=ujzrq8Fg9Gc&amp;t=51s</a> but it makes so much things and I just need key token and secret token to be able to access the virtual hosts and manipulate it.</p>
  
  <p>I see there is also oAuth2 and tha is too much to set it up for this project.</p>
  
  <p>there is also so called azure ad <a href="https://docs.microsoft.com/en-us/rest/api/" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/</a></p>
  
  <p>So any help would be nice to find that easy access key key and token to list, create, update virtual machines.</p>
  
  <p>Maybe because I have free account?</p>
  
  <p>Update:
  I found this one and it is very easy: 
  <a href="https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/createorupdate" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/createorupdate</a></p>
  
  <p>just say: PUT <a href="https://management.azure.com/subscriptions/" rel="nofollow noreferrer">https://management.azure.com/subscriptions/</a>{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}?api-version=2017-12-01</p>
  
  <p>subscriptionID if I provide this, would that be enough?
  I was thinking there should be some authorization?</p>