NetBox First Ownership For vSphere VM Provisioning
When Terraform creates vSphere VMs, NetBox should not be an after-the-fact documentation step. Use NetBox as an ownership gate before vSphere VM creation, then verify Terraform removes the NetBox records when the managed VM is destroyed. Desired Order The safe order is: 1. Resolve required NetBox objects 2. Create NetBox VM record 3. Create NetBox interface record 4. Create NetBox IP address record 5. Set NetBox primary IPv4 6. Create vSphere VM The vSphere VM should depend on the NetBox primary IP relationship, not just the VM record. ...