Last active
June 30, 2016 08:39
-
-
Save cobysy/b9c4f075b9c9c6732757071a5c94fb65 to your computer and use it in GitHub Desktop.
not-able-to-delete-b2c-tenant?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://social.msdn.microsoft.com/Forums/azure/en-US/afbfb7b3-92c9-4af6-9128-ba96795de5a6/not-able-to-delete-b2c-tenant?forum=WindowsAzureAD | |
| Please follow the following steps: | |
| Create Temporary Admin Account | |
| 1. Open a browser and login to https://manage.windowsazure.com | |
| 2. In the left hand menu navigate to Active Directory, and select your directory | |
| 3. Click Users and Groups > Add User | |
| 4. Create this user with a username of [email protected] and be sure to grant this user the role Global Administrator | |
| Change OTP Password for tempadmin | |
| 1. Open a new In-Private/Incognito window | |
| 2. Navigate to https://manage.windowsazure.com and sign in with user [email protected] | |
| 3. This will force you to change the password, please do this | |
| 4. Close browser | |
| Download and Install AAD PowerShell (if required) | |
| 1. From here: http://aka.ms/aadposh | |
| Delete and Disable remaining Service Principal objects in Directory | |
| 1. Open PowerShell, and run the following commands in the order below | |
| Import-Module MSOnline | |
| Connect-MsolService (Please login here as [email protected]) | |
| Get-MsolServicePrincipal | Remove-MsolServicePrincipal | |
| Get-MsolServicePrincipal | Set-MsolServicePrincipal -AccountEnabled $False | |
| Remove Temp Admin from Azure AD | |
| 1. Log back into https://manage.windowsazure.com | |
| 2. Find the account we created earlier ([email protected]) | |
| 3. Delete this user | |
| Attempt Deletion of directory via Azure Portal | |
| 1. Once the user above is deleted, there should only be one account left in the directory | |
| 2. At this point, highlight the B2C directory in the Azure Portal | |
| 3. Select Delete | |
| Hope this helps. | |
| Regards, | |
| Neelesh | |
| _______________ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment