Unassigning a public IP address
A public IP address can be unassigned from a resource in order to be saved for later use or assigned to another resource. When a resource is deleted or decommissioned, we can still put the public IP address to use and assign it to the next resource.
Getting ready
Before you start, open your browser and go to the Azure portal at https://portal.azure.com. Make sure that the VM using a public IP address is not running.
How to do it...
To unassign a public IP address, we must do the following:
- Locate the NIC that the public IP address is associated with.
- In the Network interface pane, go to IP configurations under Settings and select the IP configuration:
Figure 4.4: IP configurations under the NIC pane
- In the new pane, change the Public IP address setting to Disassociate:
Figure 4.5: Unassigning the public IP address
- After the changes are made, click Save to apply the new configuration.
How it works...
A public...