---
title: "Building IPv6 Dual-Stack Azure Application Gateways: A Terraform Guide"
description: Cloud consultant Mark Smit teaches you how to deploy an Azure Application Gateway with dual-stack IPv4 and IPv6 support using Terraform.
image: https://www.cloudnation.nl/hubfs/CloudNation-beeld-31-1.jpeg
---

 English

[ Nederlands](https://www.cloudnation.nl/inspiratie/blogs/dual-stack-azure-application-gateways-een-terraform-gids)

an IG&H company

[![_CN_Monogram_Color_White_rgb](https://www.cloudnation.nl/hubfs/_CN_Monogram_Color_White_rgb.png "Back to home") ![preview__CN_Logo_Left_Color_Black_rgb](https://www.cloudnation.nl/hubfs/preview__CN_Logo_Left_Color_Black_rgb.png "Back to home") ](https://www.cloudnation.nl/en/)

 Services

 Migrate

[ Cloud Migration

 Realize a seamless transition to the cloud 

](https://www.cloudnation.nl/en/services/cloud-migration) [ Cloud Readiness Assessment

 Before you start your journey on the cloud. 

](https://www.cloudnation.nl/en/services/cloud-readiness-assessment) [ Cloud Landing Zone Accelerator

 The start of a cloud journey. 

](https://www.cloudnation.nl/en/services/cloud-landing-zone-accelerator) [ Advice & Strategy

 Use the knowhow of our best experts. 

](https://www.cloudnation.nl/en/services/strategy) [ Application Modernization

 Modernize, simplify and transform applications. 

](https://www.cloudnation.nl/en/services/applicationmodernization)

 Improve & Modernize

[ Cloud Security & Compliance

 Security & compliance 

](https://www.cloudnation.nl/en/services/cloud-security/old) [ Cloud Competence Center

 Accelerate development. 

](https://www.cloudnation.nl/en/cloud-center-of-excellence-cloudnation) [ FinOps

 Turn cloud spend into business value 

](https://www.cloudnation.nl/en/cloudnation-finops)

 Integrate

[ Hybrid cloud

 Combine the best of private and public cloud. 

](https://www.cloudnation.nl/en/services/hybrid-cloud) [ Network & connectivity

 Use the cloud optimally and create value. 

](https://www.cloudnation.nl/en/services/networking-connectivity) [ Managed Cloud Services

](https://www.cloudnation.nl/en/services/managed-cloud-services) [ Managed Kubernetes Services

](https://www.cloudnation.nl/en/en/services/managed-kubernetes-services)

 Data & AI

[ AI Solutions

 Harness the power of artificial intelligence 

](https://www.cloudnation.nl/en/artificial-intelligence) [ Data Landing Zone

 A secure and scalable foundation for your data operations. 

](https://www.cloudnation.nl/en/services/data-landing-zone) [ Agent Lake

 The governed foundation for enterprise AI agents 

](https://www.cloudnation.nl/en/agent-lake)

[![aws-grey](https://www.cloudnation.nl/hubfs/aws-grey.svg) ](https://aws.amazon.com/free/?trk=3c7428a8-c52c-45ed-8072-8e2ba8bf9225&sc_channel=ps&ef_id=Cj0KCQjwwvilBhCFARIsADvYi7InrIXPaSi0tr77kUKV_-nyhN-NviOxvxIBVTUFilC3rM2czBruU-gaAuXlEALw_wcB:G:s&s_kwcid=AL!4422!3!649687334390!e!!g!!aws!19738730142!145148221566&all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all) [![azure-grey](https://www.cloudnation.nl/hubfs/azure-grey.svg) ](https://azure.microsoft.com/en-us/free/search/?ef_id=_k_Cj0KCQjwwvilBhCFARIsADvYi7IzQ1lpK0myTZJUEGM4La7kZrvaGTatFZ5ommalhQTlkevfIc4qPNsaAl4FEALw_wcB_k_&OCID=AIDcmmy4pl1olr_SEM__k_Cj0KCQjwwvilBhCFARIsADvYi7IzQ1lpK0myTZJUEGM4La7kZrvaGTatFZ5ommalhQTlkevfIc4qPNsaAl4FEALw_wcB_k_&gclid=Cj0KCQjwwvilBhCFARIsADvYi7IzQ1lpK0myTZJUEGM4La7kZrvaGTatFZ5ommalhQTlkevfIc4qPNsaAl4FEALw_wcB) [![google-cloud-grey](https://www.cloudnation.nl/hubfs/google-cloud-grey.svg) ](https://cloud.google.com/gcp/?hl=nl&utm_source=google&utm_medium=cpc&utm_campaign=emea-nl-all-nl-bkws-all-all-trial-e-gcp-1011340&utm_content=text-ad-none-any-DEV_c-CRE_495030366170-ADGP_Hybrid+%7C+BKWS+-+EXA+%7C+Txt+~+GCP+~+General%23v3-KWID_43700060393215884-kwd-6458750523-userloc_9064924&utm_term=KW_google%20cloud-NET_g-PLAC_&&gad=1&gclid=Cj0KCQjwwvilBhCFARIsADvYi7Kh3LYZSTLyTiCJcfyw5z0iKjKdP0z6hgphICBbRRXr230tD1FvZiIaAh7OEALw_wcB&gclsrc=aw.ds) [![oracle-ci-grey](https://www.cloudnation.nl/hubfs/oracle-ci-grey.svg) ](https://www.oracle.com/) 

[ Services overview ](https://www.cloudnation.nl/en/services)

[ Success stories ](https://www.cloudnation.nl/en/success-stories)

 Industries

 Our **cloud-native specialists** have deep** knowhow** and relevant **experience** in various industries 

[ Branches overview ](https://www.cloudnation.nl/en/industries)

[ FinTech

 Accelerate FinTech innovations 

](https://www.cloudnation.nl/en/industries/finance-fintech) [ ISV

 Remain future proof and transform your applications through the cloud 

](https://www.cloudnation.nl/en/industries/isv) [ Manufacturing

 Improve operational efficiency, security and scalability of your processes. 

](https://www.cloudnation.nl/en/industries/production-industry) [ Digital Natives

 Unlock new possibilities with cloud solutions designed for the digital pioneer. 

](https://www.cloudnation.nl/en/branches/digital-natives)

[ Inspiration ](https://www.cloudnation.nl/en/inspiration)

 About Us

[ About CloudNation ](https://www.cloudnation.nl/en/about-us)

[ Careers ](https://www.cloudnation.nl/en/careers)

[ Our partners ](https://www.cloudnation.nl/en/partners)

[ CloudNation Academy ](https://www.cloudnation.nl/en/cloud-academy)

[ Contact ](https://www.cloudnation.nl/en/contact)

[Plan a call ](https://www.cloudnation.nl/en/schedule-a-meeting)

[![_CN_Monogram_Color_White_rgb](https://www.cloudnation.nl/hubfs/_CN_Monogram_Color_White_rgb.png "Back to home") ![preview__CN_Logo_Left_Color_Black_rgb](https://www.cloudnation.nl/hubfs/preview__CN_Logo_Left_Color_Black_rgb.png "Back to home") ](https://www.cloudnation.nl/en/)

 Services

 Migrate

[ Cloud Migration

 Realize a seamless transition to the cloud 

](https://www.cloudnation.nl/en/services/cloud-migration) [ Cloud Readiness Assessment

 Before you start your journey on the cloud. 

](https://www.cloudnation.nl/en/services/cloud-readiness-assessment) [ Cloud Landing Zone Accelerator

 The start of a cloud journey. 

](https://www.cloudnation.nl/en/services/cloud-landing-zone-accelerator) [ Advice & Strategy

 Use the knowhow of our best experts. 

](https://www.cloudnation.nl/en/services/strategy) [ Application Modernization

 Modernize, simplify and transform applications. 

](https://www.cloudnation.nl/en/services/applicationmodernization)

 Improve & Modernize

[ Cloud Security & Compliance

 Security & compliance 

](https://www.cloudnation.nl/en/services/cloud-security/old) [ Cloud Competence Center

 Accelerate development. 

](https://www.cloudnation.nl/en/cloud-center-of-excellence-cloudnation) [ FinOps

 Turn cloud spend into business value 

](https://www.cloudnation.nl/en/cloudnation-finops)

 Integrate

[ Hybrid cloud

 Combine the best of private and public cloud. 

](https://www.cloudnation.nl/en/services/hybrid-cloud) [ Network & connectivity

 Use the cloud optimally and create value. 

](https://www.cloudnation.nl/en/services/networking-connectivity) [ Managed Cloud Services

](https://www.cloudnation.nl/en/services/managed-cloud-services) [ Managed Kubernetes Services

](https://www.cloudnation.nl/en/en/services/managed-kubernetes-services)

 Data & AI

[ AI Solutions

 Harness the power of artificial intelligence 

](https://www.cloudnation.nl/en/artificial-intelligence) [ Data Landing Zone

 A secure and scalable foundation for your data operations. 

](https://www.cloudnation.nl/en/services/data-landing-zone) [ Agent Lake

 The governed foundation for enterprise AI agents 

](https://www.cloudnation.nl/en/agent-lake)

[![aws-grey](https://www.cloudnation.nl/hubfs/aws-grey.svg) ](https://aws.amazon.com/free/?trk=3c7428a8-c52c-45ed-8072-8e2ba8bf9225&sc_channel=ps&ef_id=Cj0KCQjwwvilBhCFARIsADvYi7InrIXPaSi0tr77kUKV_-nyhN-NviOxvxIBVTUFilC3rM2czBruU-gaAuXlEALw_wcB:G:s&s_kwcid=AL!4422!3!649687334390!e!!g!!aws!19738730142!145148221566&all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all) [![azure-grey](https://www.cloudnation.nl/hubfs/azure-grey.svg) ](https://azure.microsoft.com/en-us/free/search/?ef_id=_k_Cj0KCQjwwvilBhCFARIsADvYi7IzQ1lpK0myTZJUEGM4La7kZrvaGTatFZ5ommalhQTlkevfIc4qPNsaAl4FEALw_wcB_k_&OCID=AIDcmmy4pl1olr_SEM__k_Cj0KCQjwwvilBhCFARIsADvYi7IzQ1lpK0myTZJUEGM4La7kZrvaGTatFZ5ommalhQTlkevfIc4qPNsaAl4FEALw_wcB_k_&gclid=Cj0KCQjwwvilBhCFARIsADvYi7IzQ1lpK0myTZJUEGM4La7kZrvaGTatFZ5ommalhQTlkevfIc4qPNsaAl4FEALw_wcB) [![google-cloud-grey](https://www.cloudnation.nl/hubfs/google-cloud-grey.svg) ](https://cloud.google.com/gcp/?hl=nl&utm_source=google&utm_medium=cpc&utm_campaign=emea-nl-all-nl-bkws-all-all-trial-e-gcp-1011340&utm_content=text-ad-none-any-DEV_c-CRE_495030366170-ADGP_Hybrid+%7C+BKWS+-+EXA+%7C+Txt+~+GCP+~+General%23v3-KWID_43700060393215884-kwd-6458750523-userloc_9064924&utm_term=KW_google%20cloud-NET_g-PLAC_&&gad=1&gclid=Cj0KCQjwwvilBhCFARIsADvYi7Kh3LYZSTLyTiCJcfyw5z0iKjKdP0z6hgphICBbRRXr230tD1FvZiIaAh7OEALw_wcB&gclsrc=aw.ds) [![oracle-ci-grey](https://www.cloudnation.nl/hubfs/oracle-ci-grey.svg) ](https://www.oracle.com/) 

[ Services overview ](https://www.cloudnation.nl/en/services)

[ Success stories ](https://www.cloudnation.nl/en/success-stories)

 Industries

 Our **cloud-native specialists** have deep** knowhow** and relevant **experience** in various industries 

[ Branches overview ](https://www.cloudnation.nl/en/industries)

[ FinTech

 Accelerate FinTech innovations 

](https://www.cloudnation.nl/en/industries/finance-fintech) [ ISV

 Remain future proof and transform your applications through the cloud 

](https://www.cloudnation.nl/en/industries/isv) [ Manufacturing

 Improve operational efficiency, security and scalability of your processes. 

](https://www.cloudnation.nl/en/industries/production-industry) [ Digital Natives

 Unlock new possibilities with cloud solutions designed for the digital pioneer. 

](https://www.cloudnation.nl/en/branches/digital-natives)

[ Inspiration ](https://www.cloudnation.nl/en/inspiration)

 About Us

[ About CloudNation ](https://www.cloudnation.nl/en/about-us)

[ Careers ](https://www.cloudnation.nl/en/careers)

[ Our partners ](https://www.cloudnation.nl/en/partners)

[ CloudNation Academy ](https://www.cloudnation.nl/en/cloud-academy)

[ Contact ](https://www.cloudnation.nl/en/contact)

[Plan a call ](https://www.cloudnation.nl/en/schedule-a-meeting)

[![_CN_Monogram_Color_White_rgb](https://www.cloudnation.nl/hubfs/_CN_Monogram_Color_White_rgb.png "Back to home") ![preview__CN_Logo_Left_Color_Black_rgb](https://www.cloudnation.nl/hubfs/preview__CN_Logo_Left_Color_Black_rgb.png "Back to home") ](https://www.cloudnation.nl/en/)

[ Let's talk ](https://www.cloudnation.nl/en/schedule-a-meeting)

Menu

[![_CN_Monogram_Color_White_rgb](https://www.cloudnation.nl/hubfs/_CN_Monogram_Color_White_rgb.png "Back to home") ![preview__CN_Logo_Left_Color_Black_rgb](https://www.cloudnation.nl/hubfs/preview__CN_Logo_Left_Color_Black_rgb.png "Back to home") ](https://www.cloudnation.nl/en/)

[ Let's talk ](https://www.cloudnation.nl/en/schedule-a-meeting)

Menu

 Services

 Migrate

[ Cloud Migration 

](https://www.cloudnation.nl/en/services/cloud-migration) [ Cloud Readiness Assessment 

](https://www.cloudnation.nl/en/services/cloud-readiness-assessment) [ Cloud Landing Zone Accelerator 

](https://www.cloudnation.nl/en/services/cloud-landing-zone-accelerator) [ Advice & Strategy 

](https://www.cloudnation.nl/en/services/strategy) [ Application Modernization 

](https://www.cloudnation.nl/en/services/applicationmodernization)

 Improve & Modernize

[ Cloud Security & Compliance 

](https://www.cloudnation.nl/en/services/cloud-security/old) [ Cloud Competence Center 

](https://www.cloudnation.nl/en/cloud-center-of-excellence-cloudnation) [ FinOps 

](https://www.cloudnation.nl/en/cloudnation-finops)

 Integrate

[ Hybrid cloud 

](https://www.cloudnation.nl/en/services/hybrid-cloud) [ Network & connectivity 

](https://www.cloudnation.nl/en/services/networking-connectivity) [ Managed Cloud Services 

](https://www.cloudnation.nl/en/services/managed-cloud-services) [ Managed Kubernetes Services 

](https://www.cloudnation.nl/en/en/services/managed-kubernetes-services)

 Data & AI

[ AI Solutions 

](https://www.cloudnation.nl/en/artificial-intelligence) [ Data Landing Zone 

](https://www.cloudnation.nl/en/services/data-landing-zone) [ Agent Lake 

](https://www.cloudnation.nl/en/agent-lake) 

[Services overview ](https://www.cloudnation.nl/en/services)

[ Success stories ](https://www.cloudnation.nl/en/success-stories)

 Industries

[ FinTech ](https://www.cloudnation.nl/en/industries/finance-fintech)

[ ISV ](https://www.cloudnation.nl/en/industries/isv)

[ Manufacturing ](https://www.cloudnation.nl/en/industries/production-industry)

[ Digital Natives ](https://www.cloudnation.nl/en/branches/digital-natives) 

[Branches overview ](https://www.cloudnation.nl/en/industries)

[ Inspiration ](https://www.cloudnation.nl/en/inspiration)

 About Us

[ About CloudNation ](https://www.cloudnation.nl/en/about-us)

[ Careers ](https://www.cloudnation.nl/en/careers)

[ Our partners ](https://www.cloudnation.nl/en/partners)

[ CloudNation Academy ](https://www.cloudnation.nl/en/cloud-academy)

[ Contact ](https://www.cloudnation.nl/en/contact) 

[Let's talk ](https://www.cloudnation.nl/en/schedule-a-meeting)

[ nl](https://www.cloudnation.nl/inspiratie/blogs/dual-stack-azure-application-gateways-een-terraform-gids)

[Back ](https://www.cloudnation.nl/en/inspiration/)

[Azure](https://www.cloudnation.nl/en/inspiration/blogs/tag/azure)

# Building IPv6 Dual-Stack Azure Application Gateways: A Terraform Guide

![](https://www.cloudnation.nl/hubfs/Mark%20web%20small.jpg)

**Mark Smit** Cloud consultant

 Publish date: 22 October 2024

![](https://www.cloudnation.nl/hs-fs/hubfs/CloudNation-beeld-31-1.jpeg?width=1600)

<https://www.linkedin.com/shareArticle?mini=true&url=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide> <https://twitter.com/intent/tweet?text=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide> [mailto:info@example.com?&subject=&body=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide](mailto:info@example.com?&subject=&body=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide) <https://web.whatsapp.com/send?text=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide>

## Introduction to Azure Application Gateway with IPv6 Support using Terraform

As businesses grow and the internet expands, the limitations of IPv4 have become evident, especially with the exhaustion of available addresses. IPv6 solves this by offering a nearly limitless address space, along with improved routing, better auto-configuration, enhanced security, and better performance for mobile devices.

Azure Application Gateway, a scalable Layer 7 load balancer, supports dual-stack deployment, allowing applications to handle both IPv4 and IPv6 traffic seamlessly. Adding IPv6 support does not require changes to the backend, so there is a minimal impact to the organization.  This feature is crucial for organizations transitioning to IPv6 or serving global users who rely on it. Supporting both protocols ensures future-proof infrastructure while maintaining smooth connectivity. 

![Dual-stack azure](https://www.cloudnation.nl/hs-fs/hubfs/Dual-stack%20azure.png?width=1377&height=858&name=Dual-stack%20azure.png)

Terraform, as an infrastructure-as-code (IaC) tool, automates the deployment and management of Azure resources like Application Gateway. With Terraform, you can consistently and efficiently integrate IPv6 support into your existing setups.

#### **Why is IPv6 Support Important?**

1. **IPv4 Address Exhaustion**: The limited number of public IPv4  addresses is running out. IPv6 provides a vast address space for future internet growth.
2. **Global Accessibility**: IPv6 adoption is increasing as more regions face IPv4 scarcity. Supporting IPv6 ensures your application remains accessible globally.
   
   ![Dual-stack azure 2](https://www.cloudnation.nl/hs-fs/hubfs/Dual-stack%20azure%202.png?width=2520&height=1275&name=Dual-stack%20azure%202.png) Figure 1: IPv6 uptake as a % of all Internet users – 2012 to the present. Source: [APNIC Labs](https://stats.labs.apnic.net/ipv6/XA?c=XA&x=1&v=1&p=0&r=0&w=30&r=1).
3. **Improved Efficiency**: IPv6 enhances network performance with simplified routing, a higher payload and better auto-configuration , especially for mobile and IoT devices.
4. **Enhanced Security**: IPv6 natively supports IPsec, making secure communication easier to implement across your network.
5. **Future-Proofing**: Adopting IPv6 early ensures your infrastructure is ready for future growth and keeps your applications relevant.

Recently, a customer requested an Azure Application Gateway with IPv6 support to boost their website’s score on Internet.nl, a platform that evaluates compliance with modern internet standards. This is a practical example of how IPv6 can enhance your web presence and meet industry benchmarks.

In this blog, we will explore how to deploy an Azure Application Gateway with dual-stack IPv4 & IPv6 support using Terraform, ensuring your application is future-ready.

 

## Key Caveats and Limitations

While dual-stack deployment enhances flexibility, there are several important limitations when using IPv6 with Azure Application Gateway:

- **v2 SKU Required**: Only the v2 SKU supports dual-stack (IPv4 and IPv6). The v1 SKU does not support IPv6.
- **No IPv6 Backend Support**: Backend pools only support IPv4, meaning IPv6 traffic to the gateway must be routed to IPv4 backends.
- **No IPv6 Private Link**: Private Link connections are limited to IPv4, as IPv6 is not supported for Private Link on Application Gateway.
- **No IPv6-Only Gateway**: The Application Gateway must be dual-stack, as IPv6-only configurations are not supported.
- **Ingress Controller Limitation**: Application Gateway Ingress Controller (AGIC) for Kubernetes does not currently support IPv6 configurations.
- **No IPv4 to Dual-Stack Upgrades**: You cannot upgrade an existing IPv4 gateway to dual-stack. Redeployment is required for dual-stack functionality.
- **No IPv6 WAF Custom Rules**: Web Application Firewall (WAF) does not support custom rules with IPv6 match conditions. Standard rule sets must be used for IPv6 traffic.

## Deploy a Dual stack Application Gateway using Terraform

Our main.tf file contains the CIDR ranges used in the subnet for IPv4 and IPv6  (make sure to edit the subscription_id to reflect your own). You also need to think of some address ranges to use. More information on how to conceptually plan these can be found [in this link.](https://learn.microsoft.com/en-us/azure/architecture/networking/guide/ipv6-ip-planning) It is important to note that IPv6 subnets in Azure need to have a size of /64.

![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-4.png?width=555&height=171&name=image-png-4.png)

The first step is to create a virtual network and/or add an IPv6 address range to your virtual network. This is a required step for the subnet to be able to support IPv4 and IPv6. For this demo I've picked an IPv6 range of `2001:0db8:abcd::/48` which includes 1,208,925,819,614,629,174,706,176 addresses.

![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-Oct-22-2024-09-22-58-8021-AM.png?width=611&height=245&name=image-png-Oct-22-2024-09-22-58-8021-AM.png)

The result:

![Dual-stack azure 3](https://www.cloudnation.nl/hs-fs/hubfs/Dual-stack%20azure%203.png?width=412&height=175&name=Dual-stack%20azure%203.png)

Now we are ready to create the subnet, and/or add the IPv6 range to the subnet by adding the address prefixes for both IPv4 and IPv6 ranges. It is important to note that the application gateway subnet can contain only application gateways. So, no other resources are allowed.

![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-Oct-22-2024-09-28-29-0598-AM.png?width=771&height=170&name=image-png-Oct-22-2024-09-28-29-0598-AM.png)

The result:

![Dual-stack azure 4](https://www.cloudnation.nl/hs-fs/hubfs/Dual-stack%20azure%204.png?width=1055&height=437&name=Dual-stack%20azure%204.png)

The next step is to create some public IP resources for the Application gateway, both IPv4 and IPv6. These will be linked to the Application Gateway in the next section. IPv6 Application Gateway supports up to 4 frontend IP addresses: two IPv4 addresses (Public and Private) and two IPv6 addresses (Public and Private).

![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-Oct-22-2024-09-29-51-1638-AM.png?width=535&height=377&name=image-png-Oct-22-2024-09-29-51-1638-AM.png)

The supporting resources have been deployed and we can start to deploy the Application Gateway resource. First we use a locals block to define variables, which is convenient for keeping the code structured and following the DRY (Don’t Repeat Yourself) principle.

![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-Oct-22-2024-09-30-54-0877-AM.png?width=730&height=570&name=image-png-Oct-22-2024-09-30-54-0877-AM.png)

In this configuration we deploy a WAF V2 SKU application gateway with the `gateway_ip_configuration` linked to the subnet we created earlier. The `frontend_ip_configuration` blocks define the public and private IP’s for IPv4 and IPv6.

![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-Oct-22-2024-09-32-31-8284-AM.png?width=908&height=588&name=image-png-Oct-22-2024-09-32-31-8284-AM.png)![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-Oct-22-2024-09-32-49-8604-AM.png?width=876&height=588&name=image-png-Oct-22-2024-09-32-49-8604-AM.png)

Now we will create the public and private configuration for the website1.nl backend. We are using an HTTP configuration in this example, but in a non-testing environment you would use the more secure HTTPS protocol and link a certificate. In this example we will create a public frontend for IPv6. It is also possible to add a private IPv6 address and route that traffic to your IPv4 backend(s). When using a public and private IPv6 listener it is important to use a different frontend port. 

![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-Oct-22-2024-09-34-07-9160-AM.png?width=932&height=588&name=image-png-Oct-22-2024-09-34-07-9160-AM.png)

![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-Oct-22-2024-09-34-25-2246-AM.png?width=929&height=588&name=image-png-Oct-22-2024-09-34-25-2246-AM.png)

![](https://www.cloudnation.nl/hs-fs/hubfs/image-png-Oct-22-2024-09-34-36-9530-AM.png?width=921&height=396&name=image-png-Oct-22-2024-09-34-36-9530-AM.png)

## Conclusion

In conclusion, we’ve successfully deployed an Azure Application Gateway with dual-stack IPv4 and IPv6 support using Terraform. This ensures your application is ready to handle both modern IPv6 traffic and existing IPv4 traffic without any backend changes. Supporting IPv6 is a practical step toward keeping your infrastructure future-ready, providing better network performance, and enhancing global accessibility for your users. By future-proofing your setup today, you’re not just enhancing your current capabilities; you're ensuring smooth sailing for the challenges of tomorrow.

#### Want to learn more about how to future-proof your infrastructure?

Mark knows how.

[Contact ](https://www.cloudnation.nl/en/contact)

![Mark N](https://7979774.fs1.hubspotusercontent-na1.net/hubfs/7979774/Mark%20N.jpg)

<https://www.linkedin.com/shareArticle?mini=true&url=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide> <https://twitter.com/intent/tweet?text=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide> [mailto:info@example.com?&subject=&body=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide](mailto:info@example.com?&subject=&body=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide) <https://web.whatsapp.com/send?text=https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide>

![](https://www.cloudnation.nl/hubfs/Mark%20web%20small.jpg)

**Mark Smit** Cloud consultant

 Publish date: 22 October 2024

## More knowledge, how-tos and insights for inspiration

[![](https://7979774.fs1.hubspotusercontent-na1.net/hubfs/7979774/Right%20Banner%20size%20%2810%29-1.png)

News

Azure

## Microsoft Channel AI Market Maker Partner of the Year 2025!

 Lees verder 

](https://www.cloudnation.nl/en/inspiration/blogs/microsoft-channel-ai-market-maker-partner-of-the-year-2025) [![](https://7979774.fs1.hubspotusercontent-na1.net/hubfs/7979774/10.png)

News

Knowledge

Azure

## From Concern to Control: An EU-Sovereign Azure path. Part 2

 Lees verder 

](https://www.cloudnation.nl/en/inspiration/blogs/from-concern-to-control-an-eu-sovereign-azure-path-part-2) [![](https://7979774.fs1.hubspotusercontent-na1.net/hubfs/7979774/9.png)

News

Knowledge

Azure

## From Concern to Control: An EU-Sovereign Azure path. Part 1

 Lees verder 

](https://www.cloudnation.nl/en/inspiration/blogs/from-concern-to-control-an-eu-sovereign-azure-path.-part-1)

<https://www.cloudnation.nl/>

Follow us: <https://www.linkedin.com/company/cloudnation-nl/> <https://twitter.com/cloudnationnl>

##### Contact

 Kosterijland 10

 3981 AJ Bunnik

[![blue-chat-icon](https://www.cloudnation.nl/hubfs/Development%20assets/blue-chat-icon.svg)   Chat with us

](https://www.cloudnation.nl/en/inspiration/blogs/dual-stack-azure-application-gateways-a-terraform-guide#hs-chat-open) [![blue-phone-call](https://www.cloudnation.nl/hubfs/Development%20assets/blue-phone-call.svg)   +31 (0)6 48 016 896

](tel:0031648016896) [![blue-mail](https://www.cloudnation.nl/hubfs/Development%20assets/blue-mail.svg)   info@cloudnation.nl

](mailto:info@cloudnation.nl) ![iso 27001](https://www.cloudnation.nl/hubfs/iso%2027001.svg)  ![gdpr compliant](https://www.cloudnation.nl/hubfs/gdpr%20compliant.svg)

 

![iso 27001](https://www.cloudnation.nl/hubfs/iso%2027001.svg)  ![gdpr compliant](https://www.cloudnation.nl/hubfs/gdpr%20compliant.svg)

 

##### CloudNation

[ About CloudNation ](https://www.cloudnation.nl/en/about-us) [ Careers ](https://www.cloudnation.nl/werken-bij) [ CloudNation Academy ](https://www.cloudnation.nl/en/cloud-academy) [ Contact ](https://www.cloudnation.nl/contact)

##### Partners

[ All our partners ](https://www.cloudnation.nl/en/partners) [ AWS ](https://www.cloudnation.nl/en/partners/amazon-web-services#aws-partner) [ Azure ](https://www.cloudnation.nl/en/partners#microsoft-azure-partner) [ And lots more ](https://www.cloudnation.nl/en/partners)

##### Knowledge, howto's and insights of CloudNation in your mailbox