How to overcome this warning "The duration between the start and expiry must be less than 24 hours." in Azure Maps Creating SAS token

Saravanan Ponnusamy 20 Reputation points
2023-08-08T06:06:54.6566667+00:00

Previously we used to create SAS token with the expiry date of few weeks/months. Now a days we facing this warning "The duration between the start and expiry must be less than 24 hours." why this restriction came? How to overcome this?

User's image

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

1 answer

Sort by: Most helpful
  1. rbrundritt 20,921 Reputation points Microsoft Employee Moderator
    2023-08-09T06:50:02.1233333+00:00

    As far as I known the tokens for Azure Active directory for Azure Maps always expired after 24 hours. I recall even testing this out years ago when support for Azure Active Directory was added to Azure Maps. I suspect this issue has been an issue in your app for a while but the error was getting hidden. Note that the map likely still loaded fine as it most likely was pulling the map tiles from the browser cache.

    1 person found this answer helpful.

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.