All Questions
Tagged with azure-application-gateway terraform
41
questions
13
votes
2
answers
13k
views
Terraform - How to attach SSL certificate stored in Azure KeyVault to an Application Gateway
I have a Terraform script that create an Azure Key Vault, imports my SSL certificate (3DES .pfx file with a password), and creates an Application Gateway with a HTTP listener. I'm trying to change ...
13
votes
1
answer
16k
views
Attaching SSL certificate to Azure application gateway in Terraform
It's been somewhat long I'm trying to automate the deployment of an application gateway using Terraform but it simply fails with an error message. I have made sure all protocol settings to HTTPS. ...
6
votes
3
answers
5k
views
Create azure application gateway with static private ip address via terraform
I can't find a way to create an application gateway via terraform with private IP without manually inserting hard coded IP private address.
I tried:
Create a private IP in the application gateway ...
5
votes
2
answers
2k
views
Is it possible to add a new listener, backend address pool, and request routing rule(s) to an existing Azure Application Gateway using Terraform?
My use-case is multiple AppService apps with different lifecycles sitting behind a single Application Gateway. I'd like to add a new listener, new multi-site routing rules, and a new backend pool ...
3
votes
1
answer
973
views
Terraform Removes Configurations/Resources Created by the Application Gateway Ingress Controller (AGIC)
I have some Terraform code which deploys AKS behind an Application Gateway along with other infrastructure unrelated to the issue. The code is based on https://learn.microsoft.com/en-us/azure/...
3
votes
4
answers
5k
views
two frontend ports of application gateway are using the same port 443 - Azure application gateway in terraform
I am configuring azure application gateway using terraform.
Following is the module that i wrote:
locals {
backend_address_pool_name = format("appgwbeap-%[1]s-%[2]s%[3]sweb-gw",var....
3
votes
1
answer
682
views
Connect Azure Application Gateway with Internal AKS managed loadbalancer
I am trying to implement AKS Baselines with terraform, but I can't get my Application Gateway connect to the internal load balancer created by AKS.
My AKS config contains of a solr instance and a ...
3
votes
1
answer
2k
views
Application Gateway (or Load Balancer) with App Services using Terraform?
I am looking for the best way to implement load balancing (including redirection between multiple app services based on URL path) with App Services. This is what I have right now:
# App Service Plan
...
2
votes
1
answer
4k
views
Terraform-Azure-Unable to create Private IP configuration for application Gateway StandardV2
I'm trying to create an application gateway (Standard V2) with both public IP and private IP configuration, but upon creation only public IP is being created and private IP configuration is nowhere to ...
2
votes
1
answer
1k
views
Should I use one or multiple Azure App Gateway with multiple environments (dev, test, prod)?
I have App Service behind App Gateway and need to maintain couple different environments (dev, test, prod). I have also vnet with two subnets, frontent for App Gateway and backend for app service. ...
2
votes
1
answer
861
views
Terraform state sync with external changes
I have terraform managing my infrastructure in Azure. However, there are cases where the state can get out of sync when other services are changing the infrastructure as well.
For example, I have ...
1
vote
2
answers
2k
views
Terraform Azure Application Gateway unable to associate with certificate in key vault
I'm trying to install a certificate into an Application Gateway.
Following the documentation I have used key_vault_secret_id in the ssl_certificate block.
Here is a simplified (all the code works its ...
1
vote
2
answers
2k
views
502 Bad Gateway from Azure Application Gateway Connecting to Azure Container Instance
I am working on learning Terraform and Azure Web Services. After following a series of tutorials, I've been working on getting an Azure Container Instance setup that talks to a CosmosDB instance ...
1
vote
1
answer
2k
views
Application gateway request_routing_rules does not exist
I am trying to deploy a azure application gateway. I set the configuration as follow:
resource "azurerm_application_gateway" "demo-app-gateway" {
location = var.location
...
1
vote
2
answers
2k
views
Is it possible to provision backend address pool separately from application gateway
I want to provision my infrastructure with terraform and to have some shared infrastructure. For example, to have 1 shared application gateway and multiple application specific webapps sitting behind ...
1
vote
1
answer
1k
views
InternalServerError for Application Gateway and API Management - Azure/Terraform
I'm trying to deploy an infrastructure in Azure via Terraform, the infrastructure is made of an Application Gateway (tier WAF_v2) and an API Management in the backend.
The error that I get after ...
1
vote
1
answer
3k
views
Terraform application gateway Data for certificate is invalid
I am deploying a azure application gateway using terraform. In the resource setting, I have this configuration:
ssl_certificate {
data = filebase64(var.ssl_certificate_path)
name = &...
1
vote
1
answer
2k
views
How to use Terraform dynamic block
I am trying to create a azure app gateway using terraform and my code looks like below:
main.tf
# Create Application Gateway
resource "azurerm_application_gateway" "app_gateway" {
...
1
vote
2
answers
3k
views
Trying to attach SSL certificate on application gateway using azure terraform
I am trying to pass PFX certificate from local machine to code azure terraform but when i am applying this method in terraform its showing one error certificate or password invalid. i have tested ...
1
vote
1
answer
1k
views
Error Key Vault object_id is an invalid UUID - Terraform/Azure
I'm deploying an Azure Application Gateway in Terraform and I want to store my SSL private certificate for the https between Internet and my App-gtw in an Azure Key Vault.
The code, omitting useless ...
0
votes
2
answers
7k
views
Terraform conditions in a module
I am trying to create some simple logic when calling applicationg gateway module.
When creating WAF v2 application gateway I want to specify more attributes that simple application gateway can't ...
0
votes
2
answers
144
views
Terraform - Create Azure Application Targeting Two Web-Apps
I am using Terraform 1.5.5 to create an Azure Application Gateway (SKU-2) targeting two Azure web-apps under a custom domain. I need to use https in communication but am struggling around "app-gw&...
0
votes
1
answer
5k
views
Terraform Error: Failed to query available provider packages
I'm trying to deploy a simple infrastructure in Azure through Terraform, the infrastructure is made of an Application Gateway (with Web Application Firewall, so the WAF_v2 version) with two virtual ...
0
votes
1
answer
823
views
ApplicationGatewaySubnetInboundTrafficBlockedByNetworkSecurityGroup error when destroying resources with terraform
I am creating Azure infra using terraform. I am able to create AppGateway in gateway subnet. The AppGateway required NSG rule to all access on ports 65200 - 65535, I have added the NSG. I am able to ...
0
votes
1
answer
3k
views
Terraform Create Ingress Application Gateway in AKS Node Resource Group
The AKS node resource group cannot already exist before creating the AKS cluster, so to create an application gateway in the same node resource group means that the application gateway needs to be ...
0
votes
1
answer
102
views
Terraform for AKS Application Gateway Ingress Controller 502 and its subnet peering issue
its works fine when:
everything build on azure portal
enable agic in kubernetes service networking
import self signed ssl cert
host table mapping
When deploy by terrform:
deploy a web page, using ...
0
votes
1
answer
180
views
Error attaching trusted_root_certificate to terraform azurerm application gateway
I would like to have an Ingress in my k8s cluster point to a service and pod on my k8s cluster which will serve a tls cert signed from a CA which is not well-known. To do this, I am trying to add a ...
0
votes
0
answers
95
views
How to attach multiple azure scale set as a target type in azure application gateway backend pool using terraform
How can I attach different Azure scale sets as a target type under different azure application gateway backend pool using terraform?
My requirements:
One application gateway
Multiple backend pools.
...
0
votes
1
answer
491
views
How to use Multiple/Wildcard hosttype in Azure Application Gateway for various API endpoints
I have configured Azure application gateway for a Front End (FE) Web App and an API Web App (Backend)
Both the app services are private endpoint enabled and VNET integrated
The FE web app is working ...
0
votes
1
answer
487
views
Getting error only while executing terraform apply as resource cannot be found in application gateway
I have created a application gateway, WAF policy, public IP via terraform.
From Azure GUI I have created a Key vault in which I have uploaded the pfx certificate also I have created managed identity ...
0
votes
2
answers
783
views
Cannot create an Azure Application gateway using Terraform
I'm trying to create an instance of Application Gateway. While doing so, I get the following error:
Error: creating Application Gateway: (Name "name-gateway-wgrkecswbk" / Resource Group &...
0
votes
1
answer
698
views
Multi site Azure gateway
How to create single azure application gateway for multisites. Both applications are under different resource groups and VNET.
Need single application gateway for test.example.com and test1.example....
0
votes
1
answer
2k
views
Azure terraform application gateway does not have secrets get permission on key vault
I am trying to provision an azure application gateway with terraform. And I have a key vault which has a self signed certificate referenced by the application gateway, but I am getting the below error:...
0
votes
1
answer
989
views
not able to deploy application gateway using terraform as resource is taking too long to deploy
Hi I am trying to deploy the application gateway and it's taking lot of time to deploy. Its taking more than 28mins.
module.app-gateway.azurerm_application_gateway.agw: Still creating... [28m38s ...
0
votes
1
answer
456
views
Is there a web redirect method or example using an application gateway using terraform?
im trying to create a service for web redirect through the application gateway using terraform.
I would like to authenticate the application gateway sl with the free certified (...
0
votes
1
answer
488
views
Destroying Rancher2_Cluster with terraform is failing due to aks resources in "deleting" state
We're facing an issue in terraform in combination with Rancher2 and AKS. We're using terraform to deploy a rancher2_cluster with an aks config also creating a new subnet.
while trying to destroy ...
0
votes
1
answer
699
views
Azure Application Gateway - How to control traffic for different application
I am creating an application gateway and that will be a single point of entry for my multi tenant application. That means I will have multiple application request on this application gateway and then ...
0
votes
2
answers
2k
views
Terraform azurerm_application_gateway configuration capacity autoscale setting
I am creating a module for configuring Azure Application Gateway with Terraform. In the azurerm_application_gateway resource, in the sku block, I see Name, tier, and capacity, but I don't see how to ...
-1
votes
2
answers
1k
views
Azure Application Gateway TLS encryption does not work with certificate from Key Vault
I have a Certificate from Lets Encrypt in PEM format with a private key. I used OpenSSL to convert it to PFX format and then imported it in Azure Key Vault along with the password I used during ...
-1
votes
1
answer
136
views
pass a list of maps to Terraform from Azure DevOps variable group
When i want to pass a list of map to a Terraform variable(where i use dynamic block to iterate over this list) i get this error:
│ Cannot use a string value in for_each. An iterable collection is ...
-1
votes
1
answer
490
views
Terraform Dynamic block for Application Gateway
I have the following list of objects defined as a local:
agw_configs = [
{
env = "dev"
function = "events"
...