@Ananya Sarkar , As mentioned by @GitaraniSharma-MSFT , you will not be able to edit the Private IP address of an Azure Firewall. The address will be automatically provisioned from the Azure Firewall Subnet address range.
I tried this in two ways but failed:
- I gave a try to change the Azure Firewall Subnet range to custom private address range. But it failed with an error saying that you cannot modify the Azure Firewall subnet once created and in use.
- I even used PowerShell to "Get" the Firewall IP configurations and modified the Private IP address using these commands,
All worked well and the Private IP has been added in the variable, but you cannot set it using Set command. Which proves that we cannot create/alter Private IP address of an Azure Firewall.Get-AzFirewall -ResourceGroupName rgName -Name azFw $azfw.ipconfigurations $azfw.ipconfigurations.PrivateIPAddresstype() $azfw.ipconfigurations[0].PrivateIPAddress="custom Private IP" Set-AzFirewall -AzureFirewall $azFw
But it's strange that there is no private IP being created on deployment. Could you please recheck whether your IAAS code satisfies all the requirements and steps for creating an Azure Firewall?
Hope this helps!