title: How to get a list of Azure Virtual Machine Scale Set Instances using powershell
body: <p>I am trying to get a list of all Virtual Machine Instances within all Scale Sets of a subscription using powershell.</p>
  
  <p>I have been able to list out all the Scalesets by using the code below, but I would like to show all the Virtual Machine instances within each one.</p>
  
  <p>$azureSubs = Get-AzSubscription -TenantID xxxxxxxxxxxxxxxxx</p>
  
  <p>$azureSubs | ForEach-Object {Select-AzSubscription $_ | Out-Null; Get-AzVMss -WarningAction SilentlyContinue} | Export-Csv -Path "c:\Azure\VirtualMachinesScaleSet.csv" -NoTypeInformation</p>
  
  <p>Can anyone suggest anything to help.</p>