Set vSAN Cluster License
This script can be used to:
- Add a license to vCenter if it hasn't already been added
- Assign that license to a specified cluster
The script includes a function which can be invoked using the following syntax:
Set-VsanClusterLicense -License "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" -Cluster "ClusterName"
Things to add... For licenses that are per CPU, maybe determine if enough licenses are available.