title: Permissions for listing virtual machines with Graph API
body: <p>I am trying to use the request:</p>
  <pre><code>GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}?api-version=2020-12-01
  </code></pre>
  <p>From microsoft graph API:<a href="https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/get#code-try-0" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/get#code-try-0</a>.</p>
  <p>I created an app registration within the an AD subscription. When I try to use the oauth2 credentials associated with the app registration I receive a 401. I believe this is due to a permissions error. I tried using <a href="https://developer.microsoft.com/en-us/graph/graph-explorer" rel="nofollow noreferrer">https://developer.microsoft.com/en-us/graph/graph-explorer</a>, but I am unable to assume the app registration to simulate the request. Any insight as to why this might be happening or how to debug the issue would be very helpful</p>