Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
g
glamorous-lifeguard-90201
07/02/2021, 12:09 AM
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/
3 Views
#azure
Join Slack