๐ฏ Objective
Create and assign a Public IP address to an Azure Virtual Machine so it can be accessed from the internet.
Public IPs allow users to connect to the VM using services like SSH, RDP, or web applications.
๐ What is a Public IP?
A Public IP address allows Azure resources such as Virtual Machines to communicate with the internet.
It enables:
Example:
20.204.120.45
๐ Public IP Types in Azure
For production systems, Static IPs are recommended.
๐ ๏ธ Steps to Create Public IP (Azure Portal)
1๏ธโฃ Sign in to Azure
Go to the Azure Portal:
https://portal.azure.com
2๏ธโฃ Navigate to Public IP Address Service
Search for:
Public IP addresses
Click:
Create
3๏ธโฃ Configure Public IP
Fill in the following details:
4๏ธโฃ Review and Create
Click:
Review + create
Then click:
Create
Azure will deploy the Public IP resource.
๐ Associate Public IP with Virtual Machine
1. Navigate to:Virtual Machines โ Your VM
1. Click:Networking
1. Select the Network Interface (NIC)
1. Click IP configuration
1. Under Public IP address, select the created Public IP
Save the configuration.
๐ Verify Public IP
Go to:
Virtual Machines โ Your VM
You should now see the Public IP address assigned to the VM.
Example:
20.204.120.45
๐ Connect to the VM
Example SSH connection:
ssh azureuser@<public-ip>Example:
ssh azureuser@20.204.120.45โ ๏ธ Important Notes
๐ฏ Result
A Public IP address has been successfully created and assigned to the Azure Virtual Machine, enabling remote access from the internet.