Search code examples
azureazure-media-services

Azure media streaming locators expiry


Are expired streaming locators in azure still counted towards the 100 limit? https://learn.microsoft.com/en-us/azure/media-services/latest/limits-quotas-constraints#packaging--delivery-limits.

Meaning, do I need to be actively cleaning expired streaming locators so as to not reach this limit?


Solution

  • You can put some logic in to check the the expiry dates of the ILocator and then delete it.

    You can call ILocator.ExpirationDateTime.ToUniversalTime() to find the date/time that it will or did expire.

    When a locator is expired you need to delete if it you are at the 100 locator limit before you can add a new one. You can also call ILocator.Update(DateTime newExpiryTime)

    For more details, you can refer David's answer in this post.