Cloudflare offers more than just CDN functionality. It also takes care of security and image optimization, the part of the security solution being offered for free. It is a great option for those who do not want to pay for numerous services and just manage a big chunk of the website within a single platform.
Azure CDN was designed to reduce load times, save bandwidth and speed responsiveness. They offer minimal security functionality as well but that's pretty much it.