sudo domainjoin-cli join domain-name domain-username
Replace domain name and domain username with your environment domain name and domain username.
Once we run the above command it will prompt for password specify the password for the above user.
sudo domainjoinf-cli query
Above query command can help us identify the domain is properly joined or not.
sudo domainjoinf-cli leave
Above leave command will help us in leaving the vMA from domain.
For More information refer www.vmware.com/support/pubs