Hi guys,
I have an error with Azure Next gen and Azure Firewall.
I receive the follow error but I don't have any idea.
Everything it looks good to me, I have created a public static standard IP and I still receive this error: Code="AzureFirewallPublicIPNotProvided" Message="AzureFirewall azurefirewall references subnet /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnethub936acd5b/subnets/AzureFirewallSubnet, but does not provide a PublicIP Address." Details=[]
Any hint?
This is part of the code:
pip = azure_nextgen.network.latest.PublicIPAddress(
"fwpip",
public_ip_address_name="fwpip",
resource_group_name=rg_name,
public_ip_allocation_method="Static",
location=location,
sku = {
"name": "Standard"
}
)
azure_firewall = azure_nextgen.network.latest.AzureFirewall("azureFirewall",
application_rule_collections=[{
"name": "apprulecoll",
}],
azure_firewall_name="azurefirewall",
ip_configurations=[{
"name": "azureFirewallIpConfiguration",
"subnet": vnet.subnets[1],
"public_ip_address": pip,
}],
location=location,
nat_rule_collections=[{
"name": "natrulecoll",
}],
network_rule_collections=[{
"name": "netrulecoll",
}],
resource_group_name=rg_name,
sku={
"name": "AZFW_VNet",
"tier": "Standard",
},
tags={
"key1": "value1",
},
threat_intel_mode="Alert",
zones=[])