

# Register an existing Amazon Directory Service directory with WorkSpaces Personal
<a name="register-deregister-directory"></a>

To allow WorkSpaces to use an existing Amazon Directory Service directory, you must register it with WorkSpaces. After you register a directory, you can launch WorkSpaces in the directory.

**Requirements:** To register a directory for use with WorkSpaces, it must meet the following requirement:
+ If you're using Amazon Managed Microsoft AD or Simple AD, your directory can be in a dedicated private subnet, as long as the directory has access to the VPC where the WorkSpaces are located.
+ For more information about directory and VPC design, see the [https://d1.awsstatic.com/whitepapers/Best-Practices-for-Deploying-Amazon-WorkSpaces.pdf](https://d1.awsstatic.com/whitepapers/Best-Practices-for-Deploying-Amazon-WorkSpaces.pdf) whitepaper.

**Note**  
Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the [Amazon Directory Service pricing terms](https://www.amazonaws.cn/directoryservice/pricing/).  
To delete empty directories, see [Delete a directory for WorkSpaces Personal](delete-workspaces-directory.md). If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again.

**To register an existing Amazon Directory Service directory**

1. Open the WorkSpaces console at [https://console.amazonaws.cn/workspaces/v2/home](https://console.amazonaws.cn/workspaces/v2/home).

1. In the navigation pane, choose **Directories**.

1. Choose **Create directory**.

1. On the **Create directory** page, for **WorkSpaces type** choose **Personal**. For **WorkSpace device management**, choose **Amazon Directory Service**.

1. Select the directory you want to register in the **Directories in Amazon Directory Service** table

1. Select two subnets of your VPC that are not from the same Availability Zone. These subnets will be used to launch your WorkSpaces. For more information, see [Availability Zones for WorkSpaces Personal](azs-workspaces.md).
**Note**  
If you do not know which subnets to choose, select **No Preference**.

1. For **Enable Self Service Permissions**, choose **Yes** to enable your users to rebuild their WorkSpaces, change volume size, compute type and running mode. Enabling may impact how much you pay for Amazon WorkSpaces. Choose **No** otherwise.

1. Choose **Register**. Initially the value of **Registered** is `REGISTERING`. After registration is complete, the value is `Yes`.

After you've registered the Amazon Directory Service directory, you can create a personal WorkSpace. For more information, see [Create a WorkSpace in WorkSpaces Personal](create-workspaces-personal.md).

When you are finished using the directory with WorkSpaces, you can deregister it. Note that you must deregister a directory before you can delete it. If you want to deregister and delete a directory, you must first find and remove all the applications and services that are registered to the directory. For more information, see [Delete Your Directory](https://docs.amazonaws.cn/directoryservice/latest/admin-guide/ms_ad_delete.html) in the *Amazon Directory Service Administration Guide*. 

**To deregister a directory**

1. Open the WorkSpaces console at [https://console.amazonaws.cn/workspaces/v2/home](https://console.amazonaws.cn/workspaces/v2/home).

1. In the navigation pane, choose **Directories**.

1. Select the directory.

1. Choose **Actions**, **Deregister**.

1. When prompted for confirmation, choose **Confirm**. After deregistration is complete, the directory becomes unregistered and is removed from the list.