When you enable automatic deployment, the host joins your account's resource pool. ECS instances launched without a specific host assignment are then placed automatically on an available host from that pool. This improves deployment flexibility.
Allow Automatic Deployment is selected by default when you create a Dedicated Host. Enable it manually only if the option was previously turned off.
Prerequisites
Before you begin, ensure that you have:
A Dedicated Host in your Alibaba Cloud account
Access to the ECS console
Enable automatic deployment on a host
Log on to the ECS console.
In the left-side navigation pane, choose Instances & Images >
> Dedicated Hosts.In the top navigation bar, select the region and resource group where your host resides.

Select the target host. In the upper-left corner of the Host tab, choose
> Modify DDH Info.
In the Modify DDH Info dialog box, turn on Automatic Deployment.

Click OK.
Deploy ECS instances on the host
After enabling automatic deployment, you can place instances on the host using either of the following methods.
Automatic deployment: Do not specify a host when creating the instance. The system selects an available host from the resource pool. When creating an ECS instance, set the Dedicated Host parameter to Random Dedicated Host (Automatic Deployment) / AutoPlacement in the Advanced Settings (Optional) section. For details, see Create an instance on the Custom Launch tab.

Manual deployment: Specify a dedicated host when creating the instance. For details, see Create ECS instances.
What's next
To enable automatic deployment via API, call ModifyDedicatedHostAttribute.