How to assign Public IP address to Azure VM

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

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”

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

Specify the Name and click on OK

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


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

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.

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

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

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

Under Public IP address blade, click on Associate

  • 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: