title: Azure Web API - how to communicate between services
body: <p>I'm currently developing a SOA based architecture in Azure, using disparate Web API services (they'd probably qualify as Microservices, but I'm hesitant to use the term).</p>
  
  <p>I have a service which is triggered by the Azure Scheduler. It does some "stuff" and then needs to call another Web API (via HttpClient) service to trigger something else. To do this, I need to know the URI of the 2nd service. When running locally, this is fine, as it is something like</p>
  
  <p>POST <a href="http://localhost:1234/2ndService/api/action" rel="nofollow">http://localhost:1234/2ndService/api/action</a></p>
  
  <p>However, when I deploy to Azure (using Internal Only as the access level), it gets an obfuscated URI, such as <a href="http://microsoft-apiapp8cf3d453-39d8-4b3b-ad00-e9d8008a9b58" rel="nofollow">http://microsoft-apiapp8cf3d453-39d8-4b3b-ad00-e9d8008a9b58</a>, which I obviously can't guess at deploy time.</p>
  
  <p>Any ideas on how to solve this problem? Or have I made a fundamental error here?</p>