Microsoft Azure Documentation

Configuring ExpressRoute Public Peering

This document provides detailed instructions on how to configure ExpressRoute public peering, enabling you to connect to Microsoft's public services (like Office 365, Dynamics 365, and Azure public endpoints) over a private, dedicated connection.

Note: ExpressRoute Public Peering is being deprecated. We recommend using Microsoft peering for connecting to Microsoft's public services. However, this document remains for reference purposes.

Prerequisites

Steps to Configure Public Peering

1. Create a Public Peering within Your ExpressRoute Circuit

You can configure public peering directly through the Azure portal, PowerShell, or Azure CLI.

Using Azure Portal:
  1. Navigate to your ExpressRoute circuit resource in the Azure portal.
  2. Under "Settings," select "Peerings."
  3. Click "+ Add" to create a new peering.
  4. For "Peering type," select "Public."
  5. Configure the following settings:
    • VLAN ID: A unique identifier for this peering (1-4094).
    • Peer ASN: Your on-premises Autonomous System Number (ASN).
    • IPv4 Advertisement Prefix: Your public IPv4 address block that you will advertise to Microsoft. This must be a registered public IP address block.
    • IPv6 Advertisement Prefix (Optional): Your public IPv6 address block if you plan to use IPv6.
  6. Click "Add" to create the peering.
Using Azure CLI:

Use the following command to add public peering:

az network express-route peering create --circuit-name  --name AzurePublicPeering --resource-group  --peering-type Public --azure-asn 12076 --peer-asn  --vlan-id  --ipv4-prefix  --metro-location 
            

Replace placeholders like <YourCircuitName>, <YourResourceGroupName>, <YourPeerASN>, <VLAN_ID>, <YourIPv4Prefix>, and <MetroLocation> with your specific values.

2. Configure Your Network Edge Device

Once the peering is established in Azure, you need to configure your network edge router to establish BGP sessions. This typically involves:

Tip: For detailed router configuration examples, consult the documentation provided by your network service provider or router vendor. Microsoft's BGP ASN for public peering is typically 12076.

3. Verifying Connectivity

After configuration, you can verify the status of your peering and BGP session:

Important Considerations

Warning: Public peering is being phased out. For new deployments and for accessing Microsoft public services, please use Microsoft peering. Refer to the Microsoft Peering documentation for more details.