Skip to content

Commit bf9ff87

Browse files
authored
Merge pull request #99544 from wedoazure/patch-1
Added example to update existing AFW with POSH
2 parents 681ee21 + b80a30d commit bf9ff87

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

articles/firewall/ftp-support.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ The following table shows the configuration required to support various FTP scen
4141

4242
To deploy using Azure PowerShell, use the `AllowActiveFTP` parameter. For more information, see [Create a Firewall with Allow Active FTP](/powershell/module/az.network/new-azfirewall#16---create-a-firewall-with-allow-active-ftp-).
4343

44+
## Update an existing Azure Firewall by using Azure PowerShell
45+
46+
To update an existing Azure Firewall by using Azure PowerShell, switch the `AllowActiveFTP` parameter to 'True'.
47+
48+
```azurepowershell
49+
$rgName = "resourceGroupName"
50+
$afwName = "afwName"
51+
$afw = Get-AzFirewall -Name $afwName -ResourceGroupName $rgName
52+
$afw.AllowActiveFTP = $true
53+
$afw | Set-AzFirewall
54+
```
55+
4456
## Deploy using Azure CLI
4557

4658
To deploy using the Azure CLI, use the `--allow-active-ftp` parameter. For more information, see [az network firewall create](/cli/azure/network/firewall#az-network-firewall-create-optional-parameters).
@@ -58,4 +70,4 @@ For more information, see [Microsoft.Network azureFirewalls](/azure/templates/mi
5870

5971
## Next steps
6072

61-
To learn how to deploy an Azure Firewall, see [Deploy and configure Azure Firewall using Azure PowerShell](deploy-ps.md).
73+
To learn how to deploy an Azure Firewall, see [Deploy and configure Azure Firewall using Azure PowerShell](deploy-ps.md).

0 commit comments

Comments
 (0)