I have the following piece of code (taken from pulumi/examples/azure-ts-webserver):
const networkInterface = new network.NetworkInterface(“server-nic”, {
resourceGroupName,
ipConfigurations: [{
name: “webserveripcfg”,
subnet: { id: virtualNetwork.subnets[0].id },
privateIPAllocationMethod: network.IPAllocationMethod.Dynamic,
publicIPAddress: { id: publicIp.id },
}],
});
and it results in the error below. Someone can help me to understand how I should solve this?