Before you can create a cluster, the cluster nodes must be a part of an Active Directory domain.
Note: Connecting to Active Directory Domain Services by using the host management network might require routing to the Active Directory network. Ensure that this routing is in place before joining cluster nodes to the domain.
You can perform the domain join task by running the Add-Computer cmdlet on each host that will be a part of the Azure Stack HCI cluster.
Note: Optionally, you can add all newly created computer objects from the cluster deployment to a different Organizational Unit (OU) in Active Directory Domain Services. In this case, you can use the -OUPath parameter along with the Add-Computer cmdlet.
$credential = Get-Credential
Add-Computer -DomainName S2dlab.local -Credential $credential -Restart
Note: This command induces an automatic restart at the end of the domain join operation.