title: Azure - Using a subdomain per web role in the same cloud service
body: <p>I have created a Cloud service with 2 web roles (one is the "public" site, and the other is the "admin backend").</p>
  
  <p>I deployed the solution in azure, and the cloud service with the web roles were created. I can access both sites using: </p>
  
  <p>FrontEnd</p>
  
  <pre><code>http://my-app.cloudapp.net:80/
  </code></pre>
  
  <p>BackEnd</p>
  
  <pre><code>http://my-app.cloudapp.net:8080/
  </code></pre>
  
  <p>Here is the problem: I would like to access the backend as a subdomain of the main site. I tried to update the DNS (GoDaddy) playing with the CNAME, but I have not been able to find a solution since it <em>seems</em> that I cannot use port numbers. One solution could be to create 2 Cloud Services, each one with just one web role (of course, both using port 80); but due to business requirements it's not a good idea. Any ideas?</p>
  
  <p>FWIW, this is what I would like:</p>
  
  <p>FrontEnd</p>
  
  <pre><code>http://my-app.com
  </code></pre>
  
  <p>BackEnd</p>
  
  <pre><code>http://dashboard.my-app.com
  </code></pre>