PowerShell Quick Tip: Validate the status of a virtual machine

More often than you might expect, you may have to validate if any given virtual machine is running or stopped (deallocated) in Microsoft Azure. I wrote a function where we need to provide the VM name and the desired status that we want. The function will be running until the VM does not return the desired condition.

Read More