How to get list of all Azure VMs in Powershell -


i'm attempting list of azure vms in powershell.

get-azurevm 

unfortunately returns vms listed under virtual machines (classic).

enter image description here

how can list of new virtual machines?

you need use azure resource manager mode access new vms:

switch-azuremode -name azureresourcemanager 

you can read more here.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -