How to configure Azure DNS and Galaxy to work both on my root domain and www?

Hi

I deployed an app to mydomain.meteorapp.com:

DEPLOY_HOSTNAME=galaxy.meteor.com meteor deploy mydomain.meteorapp.com --settings settings.json

Then, in settings > Domains & encryption I added www.mydomain.com and enabled encryption.
On the Azure DNS page, I have NS, SOA, MX, TXT and CNAME records. The CNAME record has a name www and points to us-east-1.galaxy-ingress.meteor.com.

When I visit mydomain.meteorapp.com or www.mydomain.com the app works fine, but no response when visiting mydomain.com (or http[s]://mydomain.com). How can I make it work both under www.mydomain.com and mydomain.com?

It’s the same problem as in this question, but it doesn’t have an accepted answer.