Hi @rapid-oil-61997
Just a guess but could it be that you need to specify the DependsOn dependencies as you create the resources so that Pulumi knows what order to destroy them in?
r
rapid-oil-61997
10/08/2020, 10:26 AM
@tall-librarian-49374 any comments on this is much appreciated.
t
tall-librarian-49374
10/08/2020, 10:50 AM
Weren’t you able to do `
Copy code
SubnetId = virtualNetwork.Subnets[0].Id
?
tall-librarian-49374
10/08/2020, 10:51 AM
Otherwise, the
DependsOn
suggestion should help as a workaround.
r
rapid-oil-61997
10/09/2020, 4:28 PM
Thanks for your reply @tall-librarian-49374. Virtual network.subnets[0].Id was not working..
I can try the depends on property. Do you have any example for that?
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.