none
How to get Bing Maps keys from Azure?

    Question

  • We deploy Bing Maps using ARM templates, and could not find a way to retrieve maps keys for later use. At first I planned to use ARM functions like `reference` to obtain keys from newly created resource, but this did not work.

    I saw that portal uses `https://main.marketplaceapps.ext.azure.com/api/manage/GetSecretKeys` to get those keys, but I was not able to generate proper token manually to use that endpoint myself.

    Is there a way to retrieve Bing Maps keys from Azure resource somehow?

    Thanks.

    Friday, April 19, 2019 1:05 PM

Answers

  • Hi knstntn,

    The best way to get a bing maps key is to use the portal at https://www.bingmapsportal.com/. Note that there is an option to buy one through the Azure Marketplace but you don't get the 125K free transactions that way so I recommend using option 1 and essentially the same email that you do with MSDN Forums to create an account.

    Sincerely,

    IoTGirl

    Friday, April 19, 2019 11:58 PM
    Owner

All replies

  • Hi knstntn,

    The best way to get a bing maps key is to use the portal at https://www.bingmapsportal.com/. Note that there is an option to buy one through the Azure Marketplace but you don't get the 125K free transactions that way so I recommend using option 1 and essentially the same email that you do with MSDN Forums to create an account.

    Sincerely,

    IoTGirl

    Friday, April 19, 2019 11:58 PM
    Owner
  • Thank you for the idea. I checked that portal, unfortunately this is not something we could use. At the moment, we have an ARM template for our app, which installs all resources for us, and we wanted to have Bing Maps installed as a part of the same experience. Ideally, I would like to be able to retrieve Bing Maps tokens using Azure Managed Identities (similar to Azure Maps).

    Basically, I want to programmatically retrieve keys for Bing Maps deployed automatically using ARM template, and I do not have a way to look into portal to copy those autogenerated keys and paste in code.

    But I was not able to find anything like that in docs for Bing Maps, so I assume it is not possible. Any advice would help. 

    Thanks.

    Tuesday, April 23, 2019 8:54 AM
  • Actually, "[listSecrets(variables('bingMapsName'), variables('bingMapsVersion')).QueryKey]" worked for me - using this I was able to get query key from newly created Bing Maps resource.

    Thanks.

    Tuesday, April 23, 2019 9:31 AM
  • Hi Knstntn,

    This method is not recommended.  You will not receive the 125k free transactions and your account will be charged for usage.  Please get a key as recommended above.

    Sincerely,

    IoTGirl

    Tuesday, April 23, 2019 5:50 PM
    Owner
  • I guess I don't understand why Azure is not preferred. In our organization's case, our lead developer can't log in to the bingmapsportal with his normal Office credentials and even if he did, the credentials would not belong to the organization but to him. 
    Thursday, April 25, 2019 9:17 PM
  • Hi Brian,

    This limitation is against "Domain Controlled" accounts and allows for keys to be shared in non-azure scenarios and leverages the security of MSA. The team is considering removing the limitation but at this point, domain accounts are still blocked. 

    If you are building a solution that is fully Azure integrated potentially Azure Maps (https://docs.microsoft.com/en-us/azure/azure-maps/about-azure-maps) would meet your need rather than Bing Maps?  They do not have an MSDN forum but you can reach them at https://feedback.azure.com/forums/909172-azure-maps

    Sincerely,

    IoTGirl

    Friday, April 26, 2019 4:47 PM
    Owner