diff --git a/deployment/common/AzureNetwork.psm1 b/deployment/common/AzureNetwork.psm1 index 80a3d9b365..b4c39d47f6 100644 --- a/deployment/common/AzureNetwork.psm1 +++ b/deployment/common/AzureNetwork.psm1 @@ -150,7 +150,7 @@ function Deploy-Firewall { # Ensure Firewall public IP address exists $publicIp = Deploy-PublicIpAddress -Name "${Name}-PIP" -ResourceGroupName $ResourceGroupName -Location $Location -AllocationMethod Static -Sku "Standard" # NB. Azure Firewall requires a 'Standard' public IP Add-LogMessage -Level Info "Ensuring that firewall '$Name' exists..." - $vnet = Get-AzVirtualNetwork -Name $VirtualNetworkName -ResourceGroupName $ResourceGroupName + $vnet = Get-AzVirtualNetwork -Name $VirtualNetworkName -ResourceGroupName $ResourceGroupName $firewall = Get-AzFirewall -Name $Name -ResourceGroupName $ResourceGroupName -ErrorVariable notExists -ErrorAction SilentlyContinue if ($notExists) { Add-LogMessage -Level Info "[ ] Creating firewall '$Name'"