Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to programmatically delete or rename an Azure Active Directory?

I have accidentally created an Azure Active Directory with the wrong name.

Using the management console, I could not find a way to correct it... I was wondiering if there is some kind of hidden API with which you this can be done?

like image 734
vainolo Avatar asked Apr 17 '13 09:04

vainolo


People also ask

How do I delete Azure Active Directory?

In the Azure portal, search for and select Azure AD Domain Services. Select the name of your managed domain, such as aaddscontoso.com. On the Overview page, select Delete. To confirm the deletion, type the domain name of the managed domain again, then select Delete.

What happens when you delete an Azure AD registered device?

Deleting a device: Prevents it from accessing your Azure AD resources. Removes all details attached to the device. For example, BitLocker keys for Windows devices.

How do I delete an Azure AD enterprise application?

Search for and select the application that you want to delete. For example, Azure AD SAML Toolkit 1. In the Manage section of the left menu, select Properties. At the top of the Properties pane, select Delete, and then select Yes to confirm you want to delete the application from your Azure AD tenant.


1 Answers

Once created you can't delete a Windows Azure Active Directory.

This is the current state of the service. The irritating part is that you also can't create new one. Hopefully we will soon see at least "rename" option.

UPDATE

Around November 2013 (roughly 6 months after original question and answer!) Rename of Azure AD was added along with possibility to more than one Azure AD to an Azure Subscription. More details can be read on this blog post.

Around May 2014 (more than 1 year after original question and answer!) Delete of Windows Azure Active directory was added. More details can be read in this blog post.

As of Late September 2014 (more than one and a half years after the original question and answer!) there is still no API to rename or delete AD. Thus no programmatic way to perform these actions.

like image 146
astaykov Avatar answered Oct 04 '22 06:10

astaykov