Azure VMs

Swapping NICs

  • Create a temporary NIC inside the subnet of the VMs.
  • Stop both VMs.
  • Attach the temporary NIC to first machine.
  • Change the primary NIC on the first machine to the temporary NIC.
  • Dettach the previous primary NIC from the VM.
  • Attach it to second VM.
  • Make it primary NIC.
  • Dettach the previous NIC.
  • Attach it to first VM.
  • Start the VMs.
  • Destroy the temporary NIC.