Oh la la, Calvin Chan hi mon ami ))
that's a tough spot u're in... deleting the whole resource group instead of just the public ip is like throwing away the whole cake when u just meant to scrape off some frosting :(
u gotta move fast! azure might have a tiny window where they can recover deleted resources, but its not guaranteed. U need to contact azure support immediately through the portal. The sooner u reach out, the better chance u have. https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
sometimes azure keeps deleted resources for up to 14 days in their backend, even if soft delete wasn't enabled. But u need microsoft's help to access them. Beg them nicely in ur support ticket, explain it was an accident ))
For general stuff that could help next time - aha, now u see why backups are like that umbrella u never appreciate until it rains! Worth looking into azure backup for vms https://docs.microsoft.com/en-us/azure/backup/backup-azure-vms-first-look-arm and maybe enable resource locks so u dont oopsie again https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources
This might help in other tools too - always double check (ok, triple check!) when deleting anything in cloud consoles. Those confirmation dialogs exist for a reason, oui? ))
As well check this - for dns records, u might need to recreate them manually if they don't come back. https://docs.microsoft.com/en-us/azure/dns/dns-operations-recordsets
Merci for posting this question - it's a good reminder for all of us to be extra careful with cloud resources. Fingers crossed azure support can work some magic for u! %)
P.S. For future migrations, maybe test ip assignments in a dummy resource group first? Just saying... :)
Alex
and "yes" if you would follow me at Q&A - personaly thx.
P.S. If my answer help to you, please Accept my answer