Error joining ESXi host to Active Directory

I was trying to join ESXi host to Active Directory using PowerCli ( Get-vmhost <vmhost> | Get-VMHostAuthentication | Set-VMHostAuthentication -JoinDomain -Domain “” -User “<username>” -Password “<password>” ) and I was getting an error:

Active directory authentication store is not supported for VMHost <hostname>

Tried to join it via old C client – that failed also.

AD join finally worked via VMware Host Client running on the host. VMWare Host Client can be accessed via web browser – https://<hostname>/ui/#/login.