Bing Map API from Azure Logic App

Aaron Williams 1 Reputation point
2022-03-07T15:58:45.67+00:00

Hi,

our company has been using an Azure Logic App since 2018 to geocode addresses with the Bing Maps API. We use a For Loop to loop through a list of addresses in our database with no Latitude or Longitude and we then use the step "get location by address" to get back the Lat and Long from Bing.

However, for the last few months we have got this response instead:

{
"authenticationResultCode": "DeniedCredentials",
"brandLogoUri": "http://dev.virtualearth.net/Branding/logo_powered_by.png",
"copyright": "Copyright © 2022 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.",
"errorDetails": [
"The request was forbidden. Your credentials may be denied or suspended."
],
"resourceSets": [],
"statusCode": 403,
"statusDescription": "Forbidden",
"traceId": "aaf324cf978742d683d2798bb7a4485a|CH0001B065|0.0.0.1"
}

Does anyone know what the issue might be? Did our connection expire? If so, how do we renew it? Should we switch to a new API?

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
835 questions
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 20,921 Reputation points Microsoft Employee Moderator
    2022-03-08T18:20:20.447+00:00

    It sounds like Bing Maps credentials you are using in your request are no longer valid. This can happen due to one of many reasons:

    • The Bing Maps key has been disabled in the account by whoever owns the Bing Maps account you are using.
    • The Bing Maps account was deleted or shut down (possibly who ever setup the initial implementation).
    • The credentials were created using a free account and exceeded the limits significantly and the account has been disabled after being unable to contact the account owner, or the account owner decided not to license Bing Maps.
    • If you are not aware of any Bing Maps account, it is also possible that credentials (Bing Maps key) is being used in your app that belongs to someone else, and they have since shut down their account or disabled the key.

    I would recommend the following steps to try and resolve your issue:

    1. Look into your logic app and locate the API key (Bing Maps key): https://learn.microsoft.com/en-us/connectors/bingmaps/#default-connection
    2. Try and see who in your company created the Bing Maps account that is being used by your logic app. If unable to locate the account, reach out to the Bing Maps licensing team at maplic@microsoft.com and they can take the key your app is using and cross reference it with the account and the Windows live account it's tied to.
    3. Once you have located the account, have the person who has access to it go to https://www.bingmapsportal.com/ and log in. Then go to "My accounts" -> "My keys", locate the key being used in your app and check to see if it is disabled. If so, press the "Update" and re-enable it. Also check the "key type", if it is a free key, it will be limited to 125,000 requests a year. If you need more than that, you will need a license and should contact maplic@microsoft.com
    4. If all else fails you can create a new account and key at https://www.bingmapsportal.com/

    Documentation on creating and maintain Bing Maps accounts can be found here: https://learn.microsoft.com/en-us/bingmaps/getting-started/bing-maps-dev-center-help/

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.