Showing posts from May, 2014

How to move Azure VM to different Cloud Service

In this case I wanted to move Azure VM from one cloud service to another cloud service in same Azure Subscription. Using Microsoft Azure Web Portal this task can be achieved in following three steps:
Note the disk(s) that were attached on Azure VM, and other configuration settings like VM size, virtual network, endpoints and so on.Delete the Azure VM with option to keep the attached disksCreate new VM from Gallery, and on first Wizard page (Chose an Image) select MY DISKS option, and select the disk noted in first step. Complete the wizard with assigning the VM to the new Cloud Service. In my case the VM was having couple of additional data disk drives, and I was unable to attached them using Azure Web Portal Create New Virtual Machine from Gallery Wizard. But, this can be easily achieved using Powershell. The script is very easy to read, and is consisted of:
Setting the currentStorageAccount for the Azure SubscriptionSetting basic variables for the VM, like Name, disks, virtual networ…

How to create predictible (static) ip address for Azure VMs

In Microsoft Azure all created VMs have internal IP addresses assigned from DHCP server, and those IP addresses are within the defined virtual network scope if you have created virtual network. The IP address assigned by the DHCP to the Azure VM, will remain the same for the vm's lifetime as long as the VM is not in Stop (Deallocated) state. Here is output from the ipconfig /all from the Azure VM:

This means that when the VM is shut down from the operating system (you're paying for the VM in this state), it will obtain the same IP (in this example when the VM will start up again. Also, while this VM is in Stopped state (shut down from the OS), no other VM will be offered the same address. And here is the state of the VM from Azure Portal:

In case when you don't want to pay for the VM, you have to shut down the VM from the Azure portal or Powershell, and the VM will be in Stopped (Deallocated) state :

Starting the VM from this (Stopped -Deallocated) stat…

The Software Protection service entered the running state

In this case I have experienced Event ID 7036 from Service Control Manager source with following information:
The Software Protection service entered the running state. This event was filling up the System event log, because the same event was generated every 30 seconds.
In my case I have stopped this event from logging by starting the system from Control Panel (the system was already activated), but anyway clicked the View Details in Windows Activation and click the Activate with a new key. On Windows Activation wizard page, clicked cancel and new event with same ID 7036 was logged but with information that:
The Software Protection service entered the stopped state. After this event, there were no more events with id 7036 logged for every 30 seconds in system event log with information that software protection service entered the running state.