How Do I Deploy Both AAD and WAF?
If you configure AAD and WAF for your website, website traffic goes to AAD first. AAD scrubs incoming traffic and forwards clean traffic to WAF. WAF blocks attacks and forwards only the normal traffic to the origin server. In this way, two layers of protection are implemented on your website.
- Cloud mode
Resolve the website domain name to AAD and change the AAD back-to-source IP address to WAF CNAME record. To prevent others from configuring your domain names on WAF in advance (this will cause interference on your domain name protection), add the subdomain name and TXT record on your DNS management platform.
- Dedicated mode
Point the website domain name to AAD and change the AAD back-to-source IP address to the EIP bound to the load balancer configured for your dedicated WAF instance.
- ELB mode
Resolve the website domain name to AAD and change the AAD back-to-source IP address to the EIP bound to the load balancer configured for the dedicated WAF instance.

For details, see Combine WAF and AAD: Better Protect Your Website Against Attacks
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.