From 6cddbbc145535b20cfb950fcd7e8c37630dfa76c Mon Sep 17 00:00:00 2001 From: Tejas Shah Date: Tue, 26 May 2020 10:33:44 -0700 Subject: [PATCH] Update Set Firewall help file with an example for doing DNS Server configuration --- src/Network/Network/help/Set-AzFirewall.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Network/Network/help/Set-AzFirewall.md b/src/Network/Network/help/Set-AzFirewall.md index ccba81613e66..8fe9d7bc1964 100644 --- a/src/Network/Network/help/Set-AzFirewall.md +++ b/src/Network/Network/help/Set-AzFirewall.md @@ -122,6 +122,17 @@ $azFw | Set-AzFirewall In this example, the management public IP address of the firewall will be changed to "AzFwMgmtPublicIp2" +### 6: Add DNS configuration to an Azure Firewall +``` +$dnsServers = @("10.10.10.1", "20.20.20.2") +$azFw = Get-AzFirewall -Name "AzureFirewall" -ResourceGroupName "rg" +$azFw.DNSEnableProxy = $true +$azFw.DNSServer = $dnsServers + +$azFw | Set-AzFirewall +``` + +In this example, DNS Proxy and DNS Server configuration is attached to the Firewall. ## PARAMETERS