Recover your Office 365 admin account

While studying for the 70-533 exam (which I passed) I purchased an Office 365 subscription and connected it to my Azure AD.  I added the domain name to Azure AD and also to Office 365.

After the exam I decided to clean up my Azure subscription and accidently deleted my Office 365 admin account…

So what to do? There are several articles about recovering accounts from Office 365 but they assume that you still have administrative access. And I didn’t.

First I tried to create a new user with the same username but that didn’t work. What did work was creating a new global administrator user with the same domain suffix and then recover the deleted user from the Office 365 admin center.