This message was deleted.
# azure
s
This message was deleted.
e
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
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.