Azure Map Python Managed Identity

Jason Schneider 0 Reputation points Microsoft Employee
2025-02-06T06:17:32.79+00:00

I failed to get my Python function to successfully call Azure Maps to return nearby locations based on Geo. Set up the managed Identity for the function and gave it access to Map ..... and could not get it to work. If anyone has a step by step guide.

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

1 answer

Sort by: Most helpful
  1. Manas Mohanty 655 Reputation points Microsoft Vendor
    2025-02-06T12:40:52.6433333+00:00

    Hi Jason Schneider!

    Welcome to Azure Maps Q and A forum. Thank you for sharing your query here.

    Could you share the error you are getting.

    Process is like below.

    1. Create managed identity
    2. Apply user assigned managed identity to your azure app service from authentication.
    3. Go to IAM section of azure maps, add that managed identity as Azure Maps data reader or contributor or any other role based on your requirement.
    4. Run your python function (get token and pass details as header to your map URL)

    Reference

    Thank you.

    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.