Configure routing preference for a public IP address using the Azure portal
This article shows you how to configure routing preference via ISP network (Internet option) for a public IP address. After creating the public IP address, you can associate it with the following Azure resources for inbound and outbound traffic to the internet:
- Virtual machine
- Virtual machine scale set
- Azure Kubernetes Service (AKS)
- Internet-facing load balancer
- Application Gateway
- Azure Firewall
By default, the routing preference for public IP address is set to the Microsoft global network for all Azure services and can be associated with any Azure service.
If you don't have an Azure subscription, create a free account now.
Create a public IP address with a routing preference
Sign in to the Azure portal.
Select Create a resource.
In the search box, type Public IP address.
In the search results, select Public IP address. Next, in the Public IP address page, select Create.
For SKU, select Standard.
For Routing preference, select Internet.
In the IPv4 IP Address Configuration section, enter or select this information:
Setting Value Subscription Select your subscription. Resource group Select Create new, enter RoutingPreferenceResourceGroup, then select OK. Location Select East US. Availability zone Keep the default value - Zone-redundant. Select Create.
Note
Public IP addresses are created with an IPv4 or IPv6 address. However, routing preference only supports IPV4 currently.
You can associate the above created public IP address with a Windows or Linux virtual machine. Use the CLI section on the tutorial page: Associate a public IP address to a virtual machine to associate the public IP to your VM. You can also associate the public IP address created above with an Azure Load Balancer, by assigning it to the load balancer frontend configuration. The public IP address serves as a load-balanced virtual IP address (VIP).
Next steps
- Learn more about public IP with routing preference.
- Configure routing preference for a VM.
- Configure routing preference for a public IP address using the PowerShell.
- Learn more about public IP addresses in Azure.
- Learn more about all public IP address settings.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for