Can Azure Public IP addresses be translated into another Public IP addresses?

Tomas 20 Reputation points
2023-12-07T13:03:55.84+00:00

i go to azure portal -Public IP addresses and see a list of public IPs there.

However, none of them match the public IP that i see when i open website "whatismyip.com" from a VM. Is there some NAT of public IPs in azure?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,667 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 110.1K Reputation points
    2023-12-07T14:33:27.28+00:00

    Hi Tomas,

    The outgoing public IP for a VM depends on the specific networking configuration applicable to that VM.

    For example, say you create a new VM, in new Virtual Network (VNet), with a Standard Public IP associated to the network interface. In this case, the VM will use the associated Public IP, and that is what you would see when browsing to websites that show public IP.

    On the other hand, if a VM is on a Virtual Network that is using Azure NAT Gateway, then it will use the Public IP associated with the NAT Gateway. If a VM is on a VNet where outbound traffic is flowing through Azure Firewall (and then directly out to Internet), then it will use the firewall's public IP.

    If no public IP is associated with a VM, and there is no NAT Gateway/Firewall/load balancer/similar on the VNet, then it will use default outbound access. The public IP used for default outbound access is not in your control and is subject to change.

    Default outbound access in Azure

    https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/default-outbound-access

    With the above in mind, what is the network configuration of the VM that you tested with? If you are unsure where it is getting its public IP from please describe details about your configuration and I will assist.

    Please click Accept Answer and upvote if the above was useful.

    Thanks.

    -TP

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.