Assigning a public IP address
A public IP address can be created as a separate resource or disassociated from another resource and exist on its own. Such an IP address can then be assigned to a new resource or another already-existing resource. If the resource is no longer in use or has been migrated, we can still use the same public IP address. In this case, the public endpoint that's used to access a service may stay unchanged. This can be useful when a publicly available application or service is migrated or upgraded, as we can keep using the same endpoint and users don't need to be aware of any change.
Getting ready
Before you start, open your browser and go to the Azure portal at https://portal.azure.com.
How to do it...
To assign a public IP address, we must do the following:
- Locate the network interface (NIC) that you want the IP address to be assigned to. This can be done directly by finding the NIC, or through the VM pane that the NIC is assigned...