Skip to content

Commit 91c8bfb

Browse files
committed
add info about azure powershell version reqs
1 parent 7bad0a8 commit 91c8bfb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

articles/application-gateway/scripts/waf-customrules-powershell.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
---
2-
title: Azure PowerShell Script Sample - Create custom WAF rules
3-
description: Azure PowerShell Script Sample - Create custom WAF rules
2+
title: Azure PowerShell Script Sample - Create WAF custom rules
3+
description: Azure PowerShell Script Sample - Create WAF custom rules
44
author: vhorne
55
ms.service: application-gateway
66
ms.topic: sample
77
ms.date: 5/23/2019
88
ms.author: victorh
99
---
1010

11-
# Create custom WAF rules with Azure PowerShell
11+
# Create WAF custom rules with Azure PowerShell
1212

1313
This script creates an Application Gateway Web Application Firewall that uses custom rules. The custom rule blocks traffic if the request header contains User-Agent *evilbot*.
1414

15-
[!INCLUDE [sample-powershell-install](../../../includes/sample-powershell-install-no-ssh-az.md)]
15+
## Prerequisites
16+
17+
### Azure PowerShell module
18+
19+
If you choose to install and use Azure PowerShell locally, this script requires the Azure PowerShell module version 2.1.0 or later.
20+
21+
1. To find the version, run `Get-Module -ListAvailable Az`. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps).
22+
2. To create a connection with Azure, run `Connect-AzAccount`.
1623

1724
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
1825

0 commit comments

Comments
 (0)