To create an Azure Public IP address, you can follow these steps:
- Go to the Azure portal at https://portal.azure.com/ and log in with your Azure account.
- In the search bar, search for "Public IP addresses" and click on the result.
- Click on "Create".
- In the "Create public IP address" page, fill out the following information:
- Subscription: Select the Azure subscription that you want to use.
- Resource group: Select an existing resource group or create a new one.
- Select the region for this public IP address. Make sure this region also has the resource this public IP address will be attached to. See?Resource Group, Step 7 for more details.
- Name: Enter a name for the new public IP address.
- IP address assignment: Select "Dynamic" IP address assignment.
- SKU: Select the SKU for the public IP address, which determines the features and pricing. For this demo, we will use Basic SKU for public IP address. For production environment involving public IP address, you would want a Standard SKU for the IP address to persist if the VM is shutdown for any reasons.
- DNS name label: Enter a unique name that will be used as the DNS name for the public IP address (optional).
- Click on "Review + create" to review the settings for the new public IP address.
- After verifying the settings, click on "Create" to create the new public IP address.
Once the public IP address is created, you can associate it with other Azure resources, such as a virtual machine or a load balancer, to make them accessible from the Internet. To do so, you can go to the "Networking" section of the resource's configuration page and select the public IP address that you created from the dropdown menu. Here is an example of associating to vNIC that can be attached to a VM.