Find and Restore deleted OneDrive accounts
After a user account is deleted, the account is held for 30 days before it's deleted off the portal.
OneDrive accounts seem to be kept for 90 days but not shown in the portal.
The following powershell scripts will
1. List deleted OneDrive accounts and the days left til purged
2. restore the OneDrive account required and assign access to a specified user
The scripts are attached below