This message was deleted.
# azure
s
This message was deleted.
s
My understanding is that the public_ip_address is actually expecting a subresource reference, i.e. the resource id of the pip: https://github.com/pulumi/pulumi-azure-nextgen/blob/master/sdk/python/pulumi_azure_nextgen/network/latest/_inputs.py#L15917.
t
Yes, something like
Copy code
"public_ip_address": {
   "id": pip.id,
},
i
Same error :-(
This is the definition of VNET vnet = azure.network.VirtualNetwork(vnet_name,         location=location,         resource_group_name=rg_name,         address_spaces=[vnet_addr],         subnets=[             azure.network.VirtualNetworkSubnetArgs(                 name=vnet_gw_subnet,                 address_prefix=vnet_gw_subnet_addr,             ),             azure.network.VirtualNetworkSubnetArgs(                 name=vnet_fw_subnet,                 address_prefix=vnet_fw_subnet_addr,             ),             azure.network.VirtualNetworkSubnetArgs(                 name=vnet_core_subnet,                 address_prefix=vnet_core_subnet_addr,                 #security_group=nsg.id,             ),         ],         tags={             "environment": env,         })
t
Hmm, it looks like it should be named
publicIPAddress
although I don’t know why, see https://github.com/pulumi/examples/pull/806/files#diff-2e88f2a7288ea9a06f8a0e48d2d3c1e8R134
i
I will confirm to you that you are right, this is the right configuration: ip_configurations=[{             "name": "azureFirewallIpConfiguration",             "subnet": {                  "id": vnet.subnets[1].id                 },             "publicIPAddress": {                 "id": pip.id             },         }], Then the documentation is wrong, it needs to fix it because it report wrong property
t
👍 1
i
I have raised in github as well