You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/web-application-firewall/quickstart-web-application-firewall-terraform.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: 'Quickstart: Use Terraform to configure Azure Web Application Firewall v2 on Azure Application Gateway'
3
3
description: In this quickstart, you use Terraform to create an Azure Application Gateway with an Azure Web Application Firewall (WAF) v2 policy. A virtual network with a subnet, a static public IP address, a WAF policy with custom rules, and Azure Application Gateway with autoscaling work together to block specific IP addresses.
4
4
ms.topic: quickstart
5
-
ms.date: 04/07/2025
5
+
ms.date: 04/08/2025
6
6
ms.custom: devx-track-terraform
7
7
ms.service: azure-web-application-firewall
8
8
author: halkazwini
@@ -46,10 +46,7 @@ In this quickstart, you use Terraform to create an Azure Application Gateway wit
46
46
47
47
## Implement the Terraform code
48
48
49
-
> [!NOTE]
50
-
> The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-web-application-firewall). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-web-application-firewall/TestRecord.md).
51
-
>
52
-
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform).
49
+
The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-web-application-firewall). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-web-application-firewall/TestRecord.md). See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform).
53
50
54
51
1. Create a directory in which to test and run the sample Terraform code, and make it the current directory.
55
52
@@ -65,6 +62,13 @@ In this quickstart, you use Terraform to create an Azure Application Gateway wit
65
62
1. Create a file named `variables.tf`, and insert the following code:
> If you're using the 4.x azurerm provider, you must [explicitly specify the Azure subscription ID](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#specifying-subscription-id-is-now-mandatory) to authenticate to Azure before running the Terraform commands.
67
+
>
68
+
> One way to specify the Azure subscription ID without putting it in the `providers` block is to specify the subscription ID in an environment variable named `ARM_SUBSCRIPTION_ID`.
69
+
>
70
+
> For more information, see the [Azure provider reference documentation](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#argument-reference).
0 commit comments