I am using HTTPS redirect site extension for Azure which has an applicationhost.xdt like this:
Note that there is now a much simpler way of redirecting http traffic to https: under Custom domains, just set HTTPS Only to On. Then you don't need any site extension or xdt file.
See this post for more info.