Launching Azure VM After Starting With PowerShell

So this morning I decided I was going to run through this blog post on understanding query plans I logged into my Azure Portal to check my balance and clicked start on the machine and then immediately clicked connect.



Of course the RDP session wouldn’t open as the machine was not up so I went and made a coffee. Whilst doing that I thought of a way of doing it with PowerShell


A little Do Until loop on the PowerState Property 🙂


Of course if I was doing it all though PowerShell I would have done this



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s