I am looking at porting an existing application to Azure. It will have an MVC application in one web role and some WCF services in another web role. When you live, the site will live at http://www.myapp.com , and the services will be at http://api.myapp.com when the MVC application is configured to provide services at http://api.myapp.com .
The problem is that pushing the application to the "step-by-step" configuration on Azure. I understand that every click on the scene will cause the services to live at a new URL (something random, for example http://4aa5ae2071324585ba5a902f4242a98c.cloudapp.net/ ). In this case, what is the best way for my MVC application to open the services URL?
One option is to set a dns entry, for example http://stage.api.myapp.com , and update the DNS CNAME record to point to a new url to create Azure every time I click on a scene, but ... yuck.
Another option would be to go to the stage, get the new URLs for the services, the RDC for each instance of the MVC role, and manually update the configurations. Also yuck.
Is there an easy way to do this? I know that I can automate some of the above steps with something like PowerShell, but I really hope that there is something in the Azure infrastructure that makes this easy. It looks like this will be such a standard scenario.
source share