Hi Midhun, there are two ways to specify subnets - inline (as you have above) and the recommended way, as standalone resources that reference the virtual network: https://www.pulumi.com/docs/reference/pkg/azure/network/subnet/
As standalone resources, you can refer to them from other code.
c
colossal-room-15708
09/21/2020, 12:04 AM
don't forget that if you're using the subnet resource standalone, then you must run
pulumi up -r
(refresh) every time from then on, otherwise Azure ARM will try to delete your subnets.