After writing Administrating licenses in vSphere client I missed to mention another way to assign licences to vSAN cluster. Whenever you build you a new cluster and if don't enable vSAN services, that cluster generally is not listed under licenses Assets, Unless you enable vSAN service on cluster. (Once evaluation period ends system will disconnect) If you want to assign a license before enabling cluster, add new license first. Go to Menu >> Administration >> Licensing >> Licenses >> Add New Licenses.
This opens a New Licenses box, Enter new license key (You can add multiple keys one per line) and press next. In the Edit license names provide some meaningful name may be what . Check the properties of license key, press next. On the Ready to complete press Finish.
Newly added license key will be reflecting in the list now.
If you haven't enable cluster yet, you can got to Assets >> clusters and assign the license. In my case VSAN is not yet enabled so I will go to Cluster >> Configure tab >> Expand Configuration >> Licensing >> ASSIGN LICENSE. This opens new pop up box, in the EXISTING LICENSES choose the VSAN license key, once it is validated successfully click OK.
You will see license is assigned, Similarly you can view same information again under Menu >> Administration >> Licensing >> Licenses >> Add New Licenses.
Useful Articles
Powercli Get vCenter assigned licenses report
Administrating licenses in vSphere client
Powercli Get vCenter licenses information
Solved: Esxi server cannot joined into active directory domain
Solved Esxi host disconnected evaluation license expired
Connect-VIServer Error: Invalid server certificate. Use Set-PowerCLIConfiguration