https://pulumi.com logo
Title
r

rapid-oil-61997

10/07/2020, 5:54 PM
Hi, I have created a new issue in github regarding pulumi destroy. If somebody here has any suggestions, please let let me know. https://github.com/pulumi/pulumi-azure/issues/724
m

mysterious-australia-14256

10/08/2020, 8:24 AM
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 `
SubnetId = virtualNetwork.Subnets[0].Id
?
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?