title: How to get list of all Azure VMs in Powershell
body: <p>I'm attempting to get a list of all my Azure VMs in Powershell.</p>
  
  <pre><code>Get-AzureVM
  </code></pre>
  
  <p>Unfortunately this only returns the VMs listed under <strong>Virtual machines (classic)</strong>.</p>
  
  <p><a href="https://i.stack.imgur.com/7hFk6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7hFk6.png" alt="enter image description here"></a></p>
  
  <p>How can I get a list of the new Virtual machines?</p>