Monday, March 24, 2014

Quick guide to Azure VM start/stop with PowerShell

I had a specific need to just quickly start and stop my VM on Azure. Here’s a quick run through.

1. Create your Azure VM (Won’t go through this here)

2. Install Microsoft Web Platform Installer

3. Start Windows Azure Powershell

4. Run Add-AzureAccount (use your Microsoft Account etc. to authenticate)

5. Run Get-AzurePublishSettingsFile and download the settings file

6. Run Import-AzurePublishSettingsFile "Filenameyoujustdownloaded”

7. Run Get-AzureVM (note the name of your service and vm)

8. Run Start-AzureVM -Name erinome -ServiceName xencloud1 (replace names with yours)

That’s it! Same goes for Stop-AzureVM

1 comment:

  1. Very good information. Its very useful for me. We need learn from real time examples and for this we choose good training institute, we need to learn from experts . So we make use of demo classes . Recently we tried azure demo class of Apponix Technologies.
    https://www.apponix.com/Microsoft-Azure/Microsoft-Azure-Training-in-Bangalore.html

    ReplyDelete