Can't get VM to start with script

Hello,

I am using Microsoft Azure and am running a virtual machine.  I found a script that allows you to automate when your virtual machine is started. https://gallery.technet.microsoft.com/scriptcenter/Start-Windows-Azure-b6c179b6#content

I uploaded the file to Azure runbooks.  Then I tried running the script and it completes but it doesn't actually start my VM.  What could I be doing wrong?

Thank you!

August 22nd, 2015 10:30pm

https://gallery.technet.microsoft.com/scriptcenter/Start-Azure-Virtual-1bb60f5e

I ended up using this script and it works fine.  To use it you have to go into your Assets tab under automation and create a connection under "new setting" at the bottom.  Then you will have to create a certificate - https://blogs.endjin.com/2015/02/generating-and-using-a-certificate-to-authorise-azure-automation/  use that link for reference.  Then in the script enter the asset names. 

 

$MyConnection = "My MSDN Azure Account Connection" --- ENTER YOUR CONNECTION NAME

$MyCert = "MSDN Azure Certifcate" ---ENTER YOUR CERTIFICATE NAME

          
Free Windows Admin Tool Kit Click here and download it now
August 23rd, 2015 2:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics