Creating an Azure firewall using PowerShell
In scenarios where interactivity in the Azure portal is minimized and deployments are automated and scripted, creating an Azure firewall using PowerShell is the choice of many Azure administrators. In this recipe, you will create an Azure Firewall Standard SKU using PowerShell.
Getting ready
Open your preferred PowerShell tool – this could be Visual Studio Code, Windows PowerShell ISE, the PowerShell console, or something else.
Sign in to your Azure account: Connect-AzAccount
.
How to do it…
To create an Azure firewall using PowerShell, complete the following steps:
- Define resources – resource group, location (Region), virtual network, subnets, IP address, and firewall names:
$RGName="Firewall" $Location="West Europe" $VNetName="PacktPublishing" $ProdSubnetName="Production" $FWSubnetName="AzureFirewallSubnet" $FWpipName="PacktFirewall-PIP"...