Currently, our SaaS application is hosted on Azure Virtual Machine Scale Set, now we are planning to move to Azure Websites.
Customers using their custom domain (like customer1.com, customer2.com) to access the application and to identify customer, we assign our subdomains to them, like customer1.myappname.com, customer2.myappname.com and so on. Then customer uses below DNS records to open customer1.myappname.com by custom domain customer1.com.
CNAME www customer1.myappname.com
CNAME customer1.com customer1.myappname.com
Said implementation works well, but when we tried a trial attempt to migrate to azure websites, that’s becoming challenging due to domain ownership verification on azure websites. I already added wildcard *myappname.com in azure website custom domains and can access sites with customer1.myappname.com, customer2.myappname.com.
Please suggest appropriate DNS records for custom domains to access the azure website (which does not require domain ownership verification or some sort of automation).
We can use azure website REST API to add and to verify domain ownership but this won't scale I hope. Love to hear about your such implementation on azure websites.