> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/cloud-networking/get-started/validate-connection-in-public-cloud/microsoft-azure-cloud-configuration.md).

# Azure ExpressRoute Circuit Configuration

The Azure side of the setup: create the ExpressRoute circuit and hand over the service key, configure the virtual network and gateway, add the connection, and check BGP.

## Background Information

Azure ExpressRoute connects you to Azure over a service provider's dedicated circuit instead of the public internet. Compared with internet access it is more reliable, lower latency, and more secure, which suits cross-region data exchange for large enterprises, finance, and healthcare — especially real-time processing, bulk data migration, and disaster recovery.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-d5933071d6bdb869e9c91da860c69a8972001bb2%2Fazure-er-traffic-paths.png?alt=media" alt=""><figcaption><p>How ExpressRoute reaches Azure public services and virtual networks</p></figcaption></figure>

## Terminology

| Term                        | Description                                                                      |
| --------------------------- | -------------------------------------------------------------------------------- |
| **ExpressRoute circuit**    | The virtual private link between your network and Azure                          |
| **Virtual network**         | The virtual network environment under your Azure subscription                    |
| **Virtual network gateway** | The gateway of that virtual network                                              |
| **Connections**             | The component that links the ExpressRoute circuit to the virtual network gateway |

{% hint style="info" %} <mark style="color:blue;">**Note**</mark>

<mark style="color:blue;">An ExpressRoute circuit starts billing</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**as soon as the service key is issued**</mark><mark style="color:blue;">. Create the circuit once the design is settled and Zenlayer is ready to configure the connection.</mark>
{% endhint %}

## Procedures

Your on-premises device peers with workloads in Azure over a Zenlayer Layer 2 connection. The flow is as follows:

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-eb45108d30d001daa7e3a1d1873cd06bf41f614a%2Fazure-expressroute-flow.svg?alt=media" alt=""><figcaption><p>Azure-side setup flow</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-4c432ba3250e983701fff1f683cf402d05ed1b24%2Fazure-er-architecture.png?alt=media" alt=""><figcaption><p>End-to-end Azure ExpressRoute connection</p></figcaption></figure>

{% stepper %}
{% step %}
**Create the ExpressRoute circuit and hand over the service key**

Open **ExpressRoute circuits** and click **Create**.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-c1d2a4e95343e48358057fdd2527c08a4c408883%2Fazure-er-circuit-1.png?alt=media" alt=""><figcaption><p>Create the ExpressRoute circuit</p></figcaption></figure>

Configure it to match your design:

* Select your Azure subscription. Keeping one project's cloud resources in the same **resource group** makes them easier to maintain.
* Select the **region** to deploy ExpressRoute in and name the circuit.
* Set **Port type** to **Provider** and choose **Zenlayer** as the provider.
* Pick the right peering location — see the [**Global commercial Azure**](https://learn.microsoft.com/azure/expressroute/expressroute-locations#global-commercial-azure) list.
* Choose the bandwidth, SKU, and billing model you need.

<img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-5961bea9ac389c1aa2f03164b5622f10a99895e1%2FIcon.svg?alt=media&amp;token=b85eac46-fd05-4800-aa2b-8db408b8af26" alt="" data-size="line"><mark style="color:blue;">**Note**</mark>\ <mark style="color:blue;">The bandwidth of an ExpressRoute circuit can be increased but never decreased. See</mark> [<mark style="color:purple;">**Modify an ExpressRoute circuit**</mark>](https://learn.microsoft.com/azure/expressroute/expressroute-howto-circuit-portal-resource-manager#modify)<mark style="color:blue;">.</mark>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-11e879e0e28af05b8a6d044d816b1a79a82d10af%2Fazure-er-circuit-2.png?alt=media" alt=""><figcaption><p>ExpressRoute circuit settings</p></figcaption></figure>

Once created, take the **service key** from the circuit's **Overview** and send it to Zenlayer along with:

| What to provide                  | Description                                                                                                                                                             |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| On-premises ASN                  | The autonomous system number of your device                                                                                                                             |
| IPv4 primary / secondary subnets | Your device takes the first usable address of the subnet and Azure the second by default. Both circuits need different subnets, whether or not you run a redundant pair |
| VLAN ID                          | Identifies the circuit                                                                                                                                                  |

Zenlayer preconfigures BGP, which takes about 10 minutes. When it finishes, the BGP status shows **UP**, meaning the connection is established. You can adjust it later under **Peerings** > **Azure private**.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-4da8fae682fce6e502813c3704fa57b1e3b09a9b%2Fazure-er-service-key.png?alt=media" alt=""><figcaption><p>Take the service key from the Overview</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-42405377f5d4826a6f9276b75e1e9eb3f2d94af3%2Fazure-er-bgp-up.png?alt=media" alt=""><figcaption><p>The BGP status shows UP</p></figcaption></figure>
{% endstep %}

{% step %}
**Configure the virtual network and its gateway**

Skip this step if the virtual network and its gateway already exist.

1. Open **Virtual networks** and click **Create**, making sure the resource group and region match your needs.
2. Under **Subnets**, create the **gateway subnet**.
3. Open **Virtual network gateways** and click **Create** to create the ExpressRoute gateway in the matching region, attached to that gateway subnet.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-5e3bdfb789ae525ce02bfcac60cb478ddf8bf62e%2Fazure-er-vnet-1.png?alt=media" alt=""><figcaption><p>Create the virtual network</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-bdcedeef8c027ce1452ae1527232b43c903dbcf5%2Fazure-er-vnet-2.png?alt=media" alt=""><figcaption><p>Create the gateway subnet</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-e4f43f4ae9978cbd0354504be2ae0ab68f034f10%2Fazure-er-gateway-1.png?alt=media" alt=""><figcaption><p>Create the ExpressRoute virtual network gateway</p></figcaption></figure>

Once configured, the gateway shows as attached to the virtual network.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-1f7c8a5cf856526f619d3c0943485d4651c45ce6%2Fazure-er-gateway-2.png?alt=media" alt=""><figcaption><p>The gateway is attached to the virtual network</p></figcaption></figure>
{% endstep %}

{% step %}
**Add the connection**

Once Zenlayer reports the circuit as **Provisioned**, go back to the ExpressRoute circuit and add a connection between the circuit and the virtual network gateway under **Settings** > **Connections**.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-59e654cd5deac1fe4ba4a6a524466dfa97b1655b%2Fazure-er-connection-1.png?alt=media" alt=""><figcaption><p>Add a connection on the Connections page</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-a6b61106215ac4719e3bdfc89797c79e2908ccad%2Fazure-er-connection-2.png?alt=media" alt=""><figcaption><p>Select the ExpressRoute connection type</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-f04b6542cea0ef49c2c24f1874d12243996a7eff%2Fazure-er-connection-3.png?alt=media" alt=""><figcaption><p>Link the virtual network gateway to the circuit</p></figcaption></figure>

The connection then shows as below, and the cloud-side setup is complete.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-7958e9c624a9a5263a2a69eef1f76dd17b1de8aa%2Fazure-er-connection-4.png?alt=media" alt=""><figcaption><p>The established connection</p></figcaption></figure>
{% endstep %}

{% step %}
**Check BGP peering**

Under the circuit's **Peerings** > **Azure private**, check the BGP neighbor state and the learned routes to confirm that both sides have each other's prefixes.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-50a28d7e721b0c53ace1e2110e917f5baeb44922%2Fazure-er-peering-1.png?alt=media" alt=""><figcaption><p>Open the Azure private peering</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-4900a88794e638c2b12bab903cf2d5015284329a%2Fazure-er-peering-2.png?alt=media" alt=""><figcaption><p>Check the BGP neighbor state</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-d40a9f718220005b47b210f64f64dd60083a3be7%2Fazure-er-peering-3.png?alt=media" alt=""><figcaption><p>Review the learned routes</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-8e721a9ec0a0eba56e92fa243c6108028774455b%2Fazure-er-peering-4.png?alt=media" alt=""><figcaption><p>Confirm connectivity</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## On zenConsole

Use the service key from Azure to create the cloud connection:

* [**Private connect**](https://docs.console.zenlayer.com/welcome/cloud-networking/get-started/create-a-layer-2-connection/select-a-public-cloud-as-access-point.md)
* [**Cloud router**](https://docs.console.zenlayer.com/welcome/cloud-networking/get-started/create-a-layer-3-connection/select-a-public-cloud-as-access-point.md)

## References

* [**Create an ExpressRoute circuit**](https://learn.microsoft.com/azure/expressroute/expressroute-howto-circuit-portal-resource-manager)
* [**ExpressRoute locations**](https://learn.microsoft.com/azure/expressroute/expressroute-locations#global-commercial-azure)
* [**Configure a virtual network gateway for ExpressRoute**](https://learn.microsoft.com/azure/expressroute/expressroute-howto-add-gateway-portal-resource-manager)
