https://pulumi.com logo
Title
p

purple-train-14007

04/19/2021, 5:39 PM
Anyone by chance know how we associate a subnet to a route table? I dont see how you explicitly do that in this doc. I see associating an RT with a Natgateway but not a subnet. I originally though ok I can add the subnet name to the route itself which doesnt seem to do anything. Good news is the RT builds and has all I want in it but I cant figure out how we associate the subnet with the RT programmatically. https://www.pulumi.com/docs/reference/pkg/azure-native/network/routetable/
Here is a picture of the test env Im doing this in. Everything looks good except the associations.
w

witty-candle-66007

04/19/2021, 5:52 PM
I believe the association is made in the subnet resource: https://www.pulumi.com/docs/reference/pkg/azure-native/network/subnet/ There’s a
routeTable
property.
I think providing a route table ID is sufficient.
p

purple-train-14007

04/19/2021, 5:54 PM
Ah, ok so I was looking in the wrong place