Thanks for posting your question in the Microsoft Q&A forum.
You should populate the $publicip*
fields with the public IP addresses associated with your Azure Firewall. In this case, you have two relevant public IP addresses:
- TUR-pip-afw-client-prod
- TUR-pip-afw-mgmt-prod
Here's how you should modify the PowerShell script to turn on your Azure Firewall:
$azfw = Get-AzFirewall -Name "Your-Firewall-Name" -ResourceGroupName "tur-rg-hub-prod"
$vnet = Get-AzVirtualNetwork -ResourceGroupName "tur-rg-hub-prod" -Name "Your-VNet-Name"
$publicip1 = Get-AzPublicIpAddress -Name "TUR-pip-afw-client-prod" -ResourceGroupName "tur-rg-hub-prod"
$publicip2 = Get-AzPublicIpAddress -Name "TUR-pip-afw-mgmt-prod" -ResourceGroupName "tur-rg-hub-prod"
$azfw.Allocate($vnet,@($publicip1,$publicip2))
Set-AzFirewall -AzureFirewall $azfw
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful