How to setup redirect rules in Azure CDN

Recently, I was working on a project where we moved AWS CloudFront to Azure CDN. In the CloudFront configuration, Behaviours were configured to pull the content from two S3 buckets. Also, Two CNAME records were attached to single Distribution. For example, If the requested URL contains a specific path (/images/babies/) then it should pull content…