Summary: Identify virtual machines that are shut down, but are consuming billing time.
How can I use Windows PowerShell to track virtual machines that are not shut down from
the management portal in Azure?
Use the Get-AzureVM cmdlet, and filter on 'StoppedVM' status:
Get-AzureVM | Where { $_.Status –eq 'StoppedVM' }
You can then properly shut down all of them with the Stop-AzureVM cmdlet:
Get-AzureVM | Where { $_.Status –eq 'StoppedVM' } | Stop-AzureVM