⬆️ ⬇️

Static IP address lifetime in Windows Azure

The use of static addresses is a frequently used practice on the Internet. For example, access to Contoso web services can only be done from specific IP addresses (Figure 1)



Fig. 1. An example of using static IP addresses



The question immediately arises about the lifetime of the static IP addresses of the application in Windows Azure. This article discusses the process of saving static IP addresses for both PaaS and IaaS in Windows Azure.

Note : these are only public VIPs (virtual IP addresses).



PaaS: Web and Worker Roles



In PaaS, the IP address is assigned to the deployment (production or staging) of the package you created (Figure 2). The IP address will remain unchanged throughout the deployment life cycle. There is currently no way to save an IP address beyond the life of the deployment .



Fig. 2. Deployment Example



VIP address will NOT change




VIP address will change




Thus, if you do not want a VIP change, consider the possibility of an on-site upgrade or VIP exchange.

')

IaaS: Virtual Machines



In the case of IaaS, there is only a production deployment. A VIP address is assigned only when a virtual machine is added to an empty cloud service (Fig. 3)



Fig. 3. No VIP change after adding a new virtual machine.



VIP address will NOT change




VIP address will change






Fig. 4. Cloud service without virtual machines



In case you need to delete all virtual machines, but do not want to lose the public IP, deploy a temporary virtual machine in the same cloud service.



Conclusion



Thus, in this article we examined the situations in which (or not) public IP addresses change for both PaaS and IaaS in Windows Azure. I hope this article will give you a more complete picture of managing public VIPs in Windows Azure.

Source: https://habr.com/ru/post/165207/



All Articles