Workload cluster creation in TKGm would fail with the below error with AVI integration setup
message: 'error reconciling the Cluster topology: failed to create VSphereCluster.infrastructure.cluster.x-k8s.io:
FieldValueRequired: spec.controlPlaneEndpoint.host: Required value'
When AVI_CONTROL_PLANE_HA_PROVIDER is set to true then spec.controlPlaneEndpoint.host need not be set.
You would run into this issue if the Management cluster is created with one AVI cloud and workload cluster is setup to use a different AVI cloud by specifying the parameter AVI_CLOUD_NAME
This can be identified by checking the ako pod logs which will produce the error message that it cannot find the network in the AVI
As per https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/2.5/tkg-deploy-mc/config-ref.html#nsx-advanced-load-balancer-1 AVI_CLOUD_NAME can be defined only for the Management cluster which means we cannot use a different cloud for workload cluster.