How to force change ip on a Windows Azure virtual machine?

I would like to know how to force an IP change on a Windows Azure machine? The ipconfig -renew does not seem to work.

+4
source share
5 answers

After your machine completes, you will receive a new IP address.

eg. click on shutdown on the portal and you will see this message:

If you continue, the IP addresses assigned to this virtual machine will be issued. Are you sure you want to close the [name] virtual machine?

+4
source

First of all, you really do not need to change the IP address of any Windows Azure virtual machine. I will try to explain more about the details of the Windows Azure IP address.

Windows Azure Machine has a fixed IP address that is internal, and Windows Azure Service has a virtual IP address that is public. An internal IP address refers to each virtual machine (cloud service instance or virtual machine instance) that is assigned when the virtual machine instance is configured and remains unchanged for the duration of the virtual machine instance.

In the case of the Windows Azure Cloud Service Instance (PaaS), you have no control over the IP address of the virtual machine. However, if you are creating a Windows Azure virtual machine (IaaS), you can use the Windows Azure virtual network to combine all the virtual machines into a group of IP addresses / subnets, as described here . This may or may not be your requirement, however it is one of the ways in the IaaS VM, you can combine the virtual machine with your virtual network.

enter image description here

+2
source

Uninstall the deployment or cloud service, wait about 10 minutes, and recreate. This will assign the new PUBLIC IP address to the new cloud service.

+1
source

Powershell way if you use the resource manager:

 Get-AzureRmVM | Stop-AzureRmVM -Force Get-AzureRmVM | Start-AzureRmVM 

or for a classic virtual machine:

 Get-AzureVM | Stop-AzureVM -Force Get-AzureVM | Start-AzureVM 
0
source
-2
source

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


All Articles