A Avi Load Balancer Virtual Service (VS) provisioned through VMware Cloud Director (VCD) has its WAF profile status in an INACTIVE state. When an administrator attempts to activate the WAF profile from VCD, the operation fails with the following error:
"WAF profile with this name and tenant reference already exists."
As a result, WAF protection cannot be enabled on the affected VS through normal VCD operations.
Error message in Avi Load Balancer UI > Operation > Event > All Event
When WAF is activated on a Virtual Service from VCD, VCD automatically creates a new WAF Policy on the Avi Controller based on the VS name. It does not check for or reference any existing WAF Policy that may already be attached to the VS on the Avi Controller.
In this case, a WAF Policy was already present on the Avi Controller and was attached to the VS. On the second attempt to activate WAF from VCD, since a policy with the same name already existed under the same tenant, the Avi Controller rejected the duplicate creation request. This caused a Config_Create failure in the Avi Load Balancer event log and left the WAF profile in an INACTIVE state in VCD.
This behavior is expected. VCD always creates a new WAF Policy object upon activation and does not perform deduplication or reference resolution against existing objects on the Avi Controller.
The issue was resolved by fully cleaning up the existing conflicting objects on the VMware Avi Load Balancer and VCD, then recreating them from scratch:
After completing these steps, VCD successfully created a new WAF Policy without any naming conflict, and the WAF status transitioned to ACTIVE.
Note: This procedure involves deleting the Virtual Service and will cause a brief service interruption. It is recommended to perform these steps during a planned maintenance window. Ensure all VS configuration details (VIP, pool members, SSL profiles, policies) are documented and exported as backup before deletion.