Associating a VM Class with a vSphere Namespace
You must associate a VM class with a namespace to make it available for DevOps engineers to deploy VMs in a self-service manner.
You can associate one or more VM classes with a single namespace or you can add one VM class to several namespaces. You can use the predefined VM classes that vSphere with Tanzu provides or you can create custom ones. See Create a VM Class in vSphere with Tanzu.
Since VM Service is the feature responsible for handling VM classes, you must make that service aware of the VM classes available to the engineers using a specific namespace. You can achieve this when you create a new namespace or edit an existing one. See Managing Namespaces on a Supervisor Cluster.
When you create the VM Service specification set the list of VM classes that must be used to create VMs on the specific namespace. You achieve this by calling the setVmClasses(java.util.Set<java.lang.String> vmClasses) method of the VirtualMachineClasses object or using the vm_classes property of the vm_service_spec structure.
You can also associate one or more content libraries with a namespace that has the VM Service enabled. See Associating a Content Library with a Namespace.