In this post we will see how to assign Public IP address to Azure VM. There are multiple ways to assign the Public IP. Here we are going to
demonstrate 2 methods:

Method 1: Creating Public IP through VM Network settings
Method 2: Creating Public IP and associating it to VM

PublicIP 01

Method 1: Creating Public IP through VM Network settings


This example will cover assigning Public IP to one of the VM already created (Server2019)
Logon to Azure Portal
Click on Virtual Machine with name “Server2019”

PublicIP 02
  • Under VM Blade, click on “Networking”
  • Under Networking Blade, click on “Network Interface”
PublicIP 03
  • Under “Network Interface” Blade, click on “IP Configurations” and click on ipconfig1
PublicIP 04
  • Select Enable under Public IP address settings and click on “Configure required settings”
  • Under “Choose public IP address” Blade, click on “Create New”
PublicIP 05

Specify the Name and click on OK

PublicIP 06

This will return to IP Configurations Blade, click on Save.

PublicIP 07

Click on Virtual Machine\Server2019 to verify public IP as been assigned

PublicIP 08

Method 2: Creating Public IP and associating it to VM

Logon to Azure Portal
Search for “Public IP address” under search bar and select the option to open the “Public IP address” Blade.

PublicIP 09

Click on “Add” or “Create public IP address”

PublicIP 10

Specify the Name, select existing resource group and click on Create.

PublicIP 11

Once Public IP address is displayed with the name “Server2019IP”, click on it.

PublicIP 12

Under Public IP address blade, click on Associate

PublicIP 13
  • Under “Associate public IP address” Blade select “Network Interface”
  • Under Resource type drop down menu this will open “Choose Network interface Blade” and select “server2019519” and click OK.