J.W
J.W

Reputation: 719

Is the Azure virtual machine public IP address static?

After creating a VM in Azure, there is a public IP assigned to it (the IP address can be check out under Azure portal > Virtual machine > Networking).

Is this public IP address assgined by Azure static or not?

enter image description here

Update: When click the Stop button, there is a warning message "Public IP address will be lost ...". enter image description here

Upvotes: 0

Views: 2376

Answers (2)

Charles Xu
Charles Xu

Reputation: 31384

The public IP address assigned by Azure is dynamic in default. The static type needs to be set manually.

Update

About the dynamic method for the public IP address, you can see rules when the public IP address would change like this:

Selecting dynamic allocation method for a basic public IP address resource means the IP address is not allocated at the time of the resource creation. The public IP address is allocated when you associate the public IP address with a virtual machine or when you place the first virtual machine instance into the backend pool of a basic load balancer. The IP address is released when you stop (or delete) the resource. After being released from resource A, for example, the IP address can be assigned to a different resource. If the IP address is assigned to a different resource while resource A is stopped, when you restart resource A, a different IP address is assigned.

Upvotes: 1

Sajeetharan
Sajeetharan

Reputation: 222522

It is based on the settings, When you are creating a new VM, you can find Under Settings, select Public IP address.

enter image description here

Upvotes: 1

Related Questions