Azure / PowerShell / Get VM full details with subscription names

Tags:

2 Responses

  1. Hi Manu,

    How would I modify this script to import a csv with specific VM names to lookup?

    Thanks!

    • Hello Martin,
      Thanks for visiting my article and sending comments. The script can be changed as needed in the following line
      $vms = Get-AzVM.
      You need to import the csv file and loop through each line something similar as below:

      $vms = Import-CSV c:\list.csv
      foreach ($vm in $vms) {

      $vms = $vm.vmname

      }

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Comments