Turn off Azure Virtual machine relationship to VIP address,internal IP address (1)
As we routinely use Windows Azure Virtual machine, we can stop the VM to save costs if the service is no longer in use.
In general, there are three ways to safely stop an azure VM:
1 Use azure Management Portal to stop VM
2 Use Remote Desktop Connection VM, shutdown VM on Remote Desktop
3 Stop VM using Windows Azure PowerShell
In this chapter, I will give you a detailed description of the above three kinds of secure stop Azure VM and fixed IP relationship.
Note: This chapter covers only the single Azure VM.
We created the Azure VM and named LEISINGLEVM, the DNS address is: http://LeiSingleVM.cloudapp.net
The VIP and internal IP of this VM are shown below:
1. Use Azure Management Portal to stop VM
1 We can use the Azure Management Portal's Shut down button to stop the Azure VM. The following figure:
When we press the Shut down button on an azure VM, the VM's state becomes stopped (deallocated). The following figure
So what does this state mean? deallocated is literally unassigned, that is, if your VM is in deallocated, the VM's hardware resources such as CPU, memory, and network will be inactive, and the VM will not continue to charge fees. Well, so far everything seems to be all right. But deallocated has a side effect: previously we said that deallocated is releasing hardware resources, but the next time the VM restarts, it will get a different internal IP
Tips: If you want to use Azure portal to shut down the VM and also want to keep internal IP, use the Azure Virtual network.
Will the public Virtual IP (VIP) address change? Because we're thinking about a single VM in this chapter, if a user uses the Shut down button in the Azure Portal to stop the Azure VM, the VIP address of the VM will definitely change.
Let's click the Start button to restart the Azure VM.
Let's compare the changes between the VIP address and the internal IP address in the Azure VM before and after shut down:
Conclusion: The VIP and internal IP will change after using the Azure Portal SHUTDOWN vm.
2. Use Remote Desktop Connection VM to shut down VM on Remote Desktop
Based on the results of the previous step, the IP information for the Azure VM is now as follows:
VIP address:137.116.161.18
Internal IP address:100.80.68.42
We use Remote Desktop Connection LEISINGLEVM and shut down this VM on Remote Desktop. After a moment's wait, we will find that the VM's state becomes stopped. The following figure: