Error Deleting Azure AD - azure

I'm trying to delete my Ad, but the system says that I cannot delete it because "there is an Application using it.
When I go to Application Tab, it just show me Visual Studio Online (with www.visualstudio.com url) and did not show an option to delete... How can I do to remove it?
Note: I've tried to create another Azure account, but the system tells
me that I've already created my mycompany.onmicrosoft.com

A global administrator can delete an Azure AD directory from the portal. When a directory is deleted, all resources contained in the directory are also deleted; so you should be sure you don’t need the directory before you delete it.
There are some conditions before you can delete the AD from portal because it will impact the users or Applications.
global administrator who will delete the AD
sync will need to be turned off if you are using in house AD to Azure
Other users must be deleted in the cloud directory by using the Management Portal or the Azure module for Windows PowerShell.
Any applications must be deleted before the AD can be deleted.
Make sure there is no online subscription connected with AD.
Check in Azure management ? settings for more info.
I hope you can resolve your issue quicker.
Let me know the outcome.
Regards

Related

How to Delete Azure Active Directory?

When I try to delete an Azure Active Directory I get this screen:
When I click on the link to enterprise applications, there are none:
How can I delete this Azure Active Directory?
You have to pass security checking first which make sure that anything on your directory won't impacts your current resource.
Prerequisite Of Deleting Directory:
Only an Azure Active Directory (Azure AD) global administrator can
delete an Azure AD directory from the portal.
There can be no users in the directory except one global
administrator who is to delete the directory
There can be no applications in the directory. Any applications must
be removed before the directory can be deleted
There can be no multi-factor authentication providers linked to the
directory
There can be no subscriptions for any Microsoft Online Services such
as Microsoft Azure, Office 365, or Azure AD Premium associated with
the directory
When you complete above steps then your delete option should look like below screen shot.
Note: Once you finish all the steps above. Only then you can be shown delete option active.other then it will remain inactive. For more details you can have a look this official docs

How to Delete Multiple Azure Active Directories and restore to original state?

I have a Microsoft Azure pay-as-you-go subscription. When I first started to try Azure, I created a lot of trial directories and services. Now I would like to cleanup my account, but I am unable to delete the Active Directory because I am a user in that directory. How can I cleanup my azure and restore it to a first time use state?
The error message is:
User akisha#akisha.com is a Service administrator for subscription Access to Azure Active Directory and cannot be removed.
Firstly you should know the followings about deleting an Azure AD directory:
Only the user who has been assigned the "Global Administrator role" can delete the directory. By default, the user who signs up for Azure subscription will get this role.
Any other users in the directory except the global administrator should be deleted before you delete the directory. Any applications should be deleted as well.
You cannot delete the Azure AD directory on the Azure portal if there're still Azure subscriptions be associated with this directory.
A work and school account cannot delete his/her home directory (which the account be created in). Only the guest user (the external user added from another directory or the Microsoft account) can delete the directory.
Just think about the following two scenarios:
1. You use an work and school account (Azure AD account) to sign up for Azure
When you sign up for the Azure subscription, you already have an Azure AD directory which contains the default domain. Your sign up account will both be assigned the Service Administrator role for Azure and the Global Administrator role for Azure AD. In this case, you cannot delete this default directory because this is the home directory of that account.
2. You use an Microsoft Account(outlook, hotmail, etc) to sign up for Azure
In this scenario, this account is a guest user in the default directory (directory A) . Assume that he/she creates another directory lately (directory B). By default, the Azure subscription will be associated with the directory A and you cannot delete it as note above. However, you can change the associated directory to directory B on the Settings note (Azure classic portal). After doing this , you will be able to delete the directory A because the association has been removed.
I wrote a blog page on how to delete an active directory tenant. I have updated the process to use the new portal and the newer AzureAD PowerShell cmdlets.
https://blog.nicholasrogoff.com/2017/01/20/how-to-delete-an-azure-active-directory-add-tenant/
If you just want to clear out all the users, applications and other stuff then you can use PowerShell commands like
Get-AzureADGroup | Remove-AzureADGroup
Get-AzureADUser | Remove-AzureADUser
etc..
To fully remove the AD Tenant you do need to clear it out and my blog explains how to do this with Principals and Applications, but the principle is the same for all objects.

Azure AD, Synchronisation services

After deleting some users from my Azure AD (via the Windows Azure Active Directory-module for Windows PowerShell)
I have a problem that those users won't re-synchronise with the Azure AD.
Any new users that I add in the on-premises Active Directoy will be added to the Azure AD without any problems.
But any users that already were in the Azure AD before the delete command, won't re-import.
I can't recover the users in Azure AD, because I've already deleted the recycling bin.
Does someone know any solution, that may work?
After contact with the support of Office365.
The solution was quite easy:
1) The users entry was still present in metaverse and hence they were not able to get synced
2) I deleted the connectors and connector space of AD and WAAD connector.
3) Once that was done, I ran the configuration wizard again, however I made sure I didn't ran the sync cycle after completion of configuration wizard
4) Once OU filtering was done , I ran the sync cycle

Delete Azure Active Directory

I want to delete an Azure active directory. Sadly I receive error messages.
The first one: "Directory has one or more Azure subscriptions". Yes that's normal, I want to delete everything to start over my Azure account.
This AD directory just contains one user, which is a global administrator (me with a different email). When I try to modify it to put it as a standard user, I receive this error: "Please try again. If the problem persists, contact support."
So actually I can't delete this AD directory. I tried to get help from the support but I didn't find a way to have more information.
Do you have an idea of how can I do that? Any help would be appreciated (thanks).
The problem isn't the one user in your Azure AD, but the whole AD is tied to your subscription.
You need to create a new Azure AD and connect it to your subscription.
Steps to make this work:
Create a new ID
go to manage.windowsazure.com
select Settings (bottom left menu item
Select your subscription
Press "Edit Directory" in the bottom navigation bar
Associate the new Azure AD
Now you should be able to delete the old Azure AD.
I just wrote a blog about how to delete Azure AD tenants. Unfortunately you often need to resort to using PowerShell to finally clear out any lingering Principals and/or registered applications.
See https://blog.nicholasrogoff.com/2017/01/20/how-to-delete-an-azure-active-directory-add-tenant/

How to remove Azure Active Directory from Subscription

I can't seem to figure out how I can delete the tenant which I have created from my Azure Subscription. Can anyone help me figure out how to do this? It sounds like it should be easy to do, but maybe I'm missing something.
Currently you cannot remove AAD tenant from the Azure Portal. You also cannot rename it. The good thing is that you are not being charged for it if you are not using any special features (i.e. even if you use for just authenticating without the Two-Factor-Authentication it is still free!). And I don't recall to have seen an API via which you would be able to remove an AAD tenant.
UPDATE
As of November 2013 you are able to rename Azure AD, Add new Azure AD, change default AD for a subscription, delete Azure AD(as long as there is not subscription attached, and no user/groups/apps objects in it).
We were eventually able to delete an Azure Active Directory instance after we deleted all mapped users (except for the administrator who was logged in) and groups.
Make sure you go through the following list of possible causes for not being able to delete your Azure AD:
You are signed in as a user for whom <Your Company Name> is the home directory
Directory contains users besides yourself
Directory has one or more subscriptions to Microsoft Online Services.
Directory has one or more Azure subscriptions.
Directory has one or more applications.
Directory has one or more Multi-Factor Authentication providers.
Directory is a "Partner" directory.
Directory contains one or more applications that were added by a user or administrator.

Resources