You can restore back your VM after you replace network interface, doing this require a VM downtime.
- Shutdown VM
- Attach network interface - Create new network interface
- Detach old network interface and delete
- On the new network interface replace same old IP address and if any same details
- power on VM
this will restore VM back to normal.
https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface
If the Answer is helpful, please click Accept Answer
and up-vote, this can be beneficial to other community members.