I hope I could explain the issue. Please let me know if you need more details.
While I was doing some labs, I’ve created a new Azure AD directory named contoso.onmicrosoft.com. Then I assigned “Developer Program Benefit” subscription to the newly created contoso.onmicrosoft.com. After all the lab exercises completed, I assigned “Developer Program Benefit” back to my default directory (mynameoutlook.onmicrosoft.com) and deleted contoso.onmicarosoft.com on a classic portal.
On a classic portal I did not get any error messages, so the directory was successfully deleted. At least, it is not listed on available directories list.
However, the new portal still lists contoso.onmicrosoft.com’s UID.
But most importantly, I cannot use “Developer Program Benefit” as it is not available on the subscriptions list.
If I access my account using Azure CLI, az account list shows that I actually have “Developer Program Benefit” subscription associated with my default directory, however, on the portal.azure.com I can’t see this directory.
So, the question is how do return "Developer Program Benefit" subscription back so that I can continue to use it?