I have a site that works by a number of webservices talking to each other, hosted on the same site. This works perfectly well in IIS. The console part of the application passes a Bing Maps key and displays Bing Maps perfectly using Geolocate. In the web.config for the app I have this line:
<add key="BM_Key" value="NOTREALVF7QTW-LZfG0p7-RhSPeGvlfx3fdtgR-Gk_SB-wfF8kCj2J7nI57wjIna"/>
in a different application hosted on the same IIS
<endpoint address="http://dev.virtualearth.net/webservices/v1/geocodeservice/GeocodeService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeocodeService" contract="GeocodeService.IGeocodeService" name="BasicHttpBinding_IGeocodeService" />
<endpoint address="http://dev.virtualearth.net/webservices/v1/geocodeservice/GeocodeService.svc/binaryHttp" binding="customBinding" bindingConfiguration="CustomBinding_IGeocodeService" contract="GeocodeService.IGeocodeService" name="CustomBinding_IGeocodeService" />
When I convert this to Azure App Service, I have the webservices talking to each other and to the backend Azure hosted SQL. However, the Bing Maps fails with the error "Invalid Credentials. Sign up for a developer account at.."
Bing Maps works fine in the IIS environment and the key we have is valid, so what do I need to do to get it working in the Azure App space? It feels like the BM_Key is not being passed to the Bing Maps service or it is being blocked somehow.
Please advise if you know anything worth trying. I have already tried creating an Azure Bing Key, but this does not work if I substitute the keys. I have also added the BM_Key in the Azure App Service Application Settings, but this does not work.
Many thanks all Pete