Skip to content

Commit df46a29

Browse files
authored
Merge pull request #3 from TomArcherMsft/patch-2
Update quickstart-web-application-firewall-terraform.md
2 parents a0a5344 + b0debaf commit df46a29

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

articles/web-application-firewall/quickstart-web-application-firewall-terraform.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 'Quickstart: Use Terraform to configure Azure Web Application Firewall v2 on Azure Application Gateway'
33
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.
44
ms.topic: quickstart
5-
ms.date: 04/07/2025
5+
ms.date: 04/08/2025
66
ms.custom: devx-track-terraform
77
ms.service: azure-web-application-firewall
88
author: halkazwini
@@ -46,10 +46,7 @@ In this quickstart, you use Terraform to create an Azure Application Gateway wit
4646

4747
## Implement the Terraform code
4848

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).
5350

5451
1. Create a directory in which to test and run the sample Terraform code, and make it the current directory.
5552

@@ -65,6 +62,13 @@ In this quickstart, you use Terraform to create an Azure Application Gateway wit
6562
1. Create a file named `variables.tf`, and insert the following code:
6663
:::code language="Terraform" source="~/terraform_samples/quickstart/101-web-application-firewall/variables.tf":::
6764

65+
> [!IMPORTANT]
66+
> 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).
71+
6872
## Initialize Terraform
6973

7074
[!INCLUDE [terraform-init.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-init.md)]
@@ -160,4 +164,4 @@ In this quickstart, you use Terraform to create an Azure Application Gateway wit
160164
- [Customize Web Application Firewall rules](/azure/web-application-firewall/ag/application-gateway-customize-waf-rules-portal)
161165

162166
- > [!div class="nextstepaction"]
163-
> [See more articles about Application Gateway.](/search/?terms=Azure%20application%20gateway%20and%20terraform)
167+
> [See more articles about Application Gateway.](/search/?terms=Azure%20application%20gateway%20and%20terraform)

0 commit comments

Comments
 (0)