0
0
Azurecloud~10 mins

Public IP addresses in Azure - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Public IP addresses
Request Public IP
Azure assigns IP
IP linked to resource
Resource accessible via IP
Release or keep IP
Keep: IP reserved
Release: IP freed
This flow shows how Azure assigns a public IP to a resource, making it accessible from the internet, and how the IP can be kept or released.
Execution Sample
Azure
az network public-ip create --resource-group MyGroup --name MyPublicIP --allocation-method Static
This command creates a static public IP address in Azure linked to a resource group.
Process Table
StepActionInputAzure ResponseResult
1Request Public IP creationResource group: MyGroup, Name: MyPublicIP, Allocation: StaticAcceptedPublic IP resource created with pending status
2Azure assigns IP addressN/AIP assigned: 52.170.12.34Public IP resource now has IP 52.170.12.34
3Link IP to resourceAssociate with VM or Load BalancerAssociation successfulResource accessible via 52.170.12.34
4Use IPConnect from internetConnection establishedResource reachable externally
5Decide to keep or release IPKeep or delete IP resourceIf kept: IP reserved; If deleted: IP freedIP either reserved or released
6ExitN/AN/AProcess ends
💡 Process ends after IP is either reserved or released
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 5Final
Public IP ResourceNoneCreated (pending)Assigned IP 52.170.12.34Linked to resourceKept or ReleasedKept or Released
IP AddressNoneNone52.170.12.3452.170.12.3452.170.12.34 or None52.170.12.34 or None
Resource AccessibilityNoNoNoYesYes or NoYes or No
Key Moments - 3 Insights
Why does the public IP resource show 'pending' after creation?
Because Azure first creates the resource placeholder before assigning an actual IP address, as shown in step 1 and 2 of the execution_table.
What happens if I delete the public IP resource after use?
The IP address is released back to Azure and no longer reserved, so the resource becomes unreachable, as explained in step 5.
Can I use a dynamic public IP instead of static?
Yes, but the IP can change over time. The example uses static allocation to keep the IP fixed, as shown in the command in execution_sample.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the IP address assigned at step 2?
A10.0.0.4
B52.170.12.34
CNone
D192.168.1.1
💡 Hint
Check the 'Azure Response' column at step 2 in the execution_table.
At which step does the resource become accessible from the internet?
AStep 3
BStep 1
CStep 5
DStep 6
💡 Hint
Look for 'Resource accessible via IP' in the 'Result' column.
If you delete the public IP resource after use, what happens to the IP address?
AIt remains reserved for you
BIt changes to a new IP automatically
CIt is released and can be assigned to others
DIt becomes private
💡 Hint
Refer to step 5 in the execution_table about keeping or releasing the IP.
Concept Snapshot
Public IP addresses in Azure allow resources to be reachable from the internet.
You create a public IP resource, which Azure assigns an IP address.
The IP can be static (fixed) or dynamic (may change).
Link the public IP to a resource like a VM or load balancer.
Keep the IP to reserve it or delete to release it back to Azure.
Full Transcript
This visual execution shows how Azure handles public IP addresses. First, you request a public IP resource creation. Azure creates the resource in a pending state. Then, Azure assigns an actual IP address to this resource. Next, you link this public IP to a resource such as a virtual machine or load balancer. Once linked, the resource becomes accessible from the internet via this IP. Finally, you decide whether to keep the IP reserved or release it. Keeping it reserves the IP for your use; releasing it frees the IP back to Azure. This process ensures your resource can be reached externally with a stable or dynamic IP as needed.