https://pulumi.com logo
Title
b

bored-activity-40468

10/12/2020, 6:14 PM
@tall-librarian-49374 In this example, using AzureNextGen, https://gist.github.com/dbeattie71/5b67c25b06adb8bf143c171c0ff1d284 I would expect changing the vnet address space and the subnet address prefix to result in a replace for the nic but instead I'm seeing update. So when up runs, I get the error that the Code="InUseSubnetCannotBeDeleted" error. Am I doing something wrong? If that looks correct, I can submit a issue.
t

tall-librarian-49374

10/12/2020, 6:34 PM
I understand why you want NIC to replace but I can’t build a logic sequence that would lead to this in my head. Subnet ID isn’t changing, so I guess NIC won’t “know” yhat subnet is being replaced.
b

bored-activity-40468

10/12/2020, 7:09 PM
oh, DependsOn looks at the Id to see if its changed?
t

tall-librarian-49374

10/12/2020, 7:17 PM
Not DependsOn, but the property. I don’t think DependsOn necessarily causes replacements… I’ll try to check if it should.
b

bored-activity-40468

10/12/2020, 8:16 PM
Is there some hacky work-around for this? Other than, blow away stack, re-run?
t

tall-librarian-49374

10/12/2020, 9:06 PM
You can destroy a single resource with
pulumi destroy --target urn