Just to add another tidbit to this -- in the future if you delete a RG (Resource Group) there is no way to restore it. I'd recommend using Resource locks to ensure that you do not delete anything that you do not want to accidentally disappear
Lock your resources to protect your infrastructure
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json.
As an administrator, you can lock an Azure subscription, resource group, or resource to protect them from accidental user deletions and modifications. The lock overrides any user permissions.
You can set locks that prevent either deletions or modifications. In the portal, these locks are called Delete and Read-only. In the command line, these locks are called CanNotDelete and ReadOnly.
- CanNotDelete means authorized users can read and modify a resource, but they can't delete it.
- ReadOnly means authorized users can read a resource, but they can't delete or update it. Applying this lock is similar to restricting all authorized users to the permissions that the Reader role provides.
If this is helpful please accept answer.