It is this line that causes the error: subnet: { i...
# azure
g
It is this line that causes the error: subnet: { id: virtualNetwork.subnets[0].id },
I have tried everything I could think of and am stuck. I can’t get this simple example running: https://github.com/pulumi/examples/tree/master/azure-ts-webserver
It’s not the Pulumi version either. Tried a couple of versions from the past. Same error.
Solution: subnet: { id: (virtualNetwork.subnets as any)[0].id },
or “strict”: false in tsconfig.json
I think most of the examples won’t work if you follow Pulumi’s documentation: https://www.pulumi.com/docs/intro/languages/javascript/