title: How could I list Azure Virtual Machines using Python?
body: <p>I’ve used the below code to get the Access Token from my Azure account.</p>
  
  <p><a href="https://github.com/AzureAD/azure-activedirectory-library-for-python/blob/dev/sample/certificate_credentials_sample.py" rel="nofollow noreferrer">https://github.com/AzureAD/azure-activedirectory-library-for-python/blob/dev/sample/certificate_credentials_sample.py</a></p>
  
  <p>It’s working fine, I already got the token.</p>
  
  <p>However, how can I use this token to list all VMs running in that subscription/resource group with Azure SDK for Python?</p>
  
  <p>I guess that Microsoft documentation is a bit confusing.</p>
  
  <p>Thanks.</p>