Title: When can ResourceCounter.Quota Property be null?
Tags: azure-cognitive-search
Question: I am using search service statistics, and I am wondering in which scenarios I can  get null from indexes quota property?

when serviceStatistics.Counters.IndexCounter.Quota returns null?

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.search.models.resourcecounter.quota?view=azure-dotnet#Microsoft_Azure_Search_Models_ResourceCounter_Quota



Here is another answer: From Search Service REST API ```Get Resource Statistics``` page, the quota will be null if if the service has unlimitied document counts.



See this link for more details as well: https://docs.microsoft.com/en-us/azure/search/search-limits-quotas-capacity#document-limits.

Comment for this answer: As per the limits document (https://docs.microsoft.com/en-us/azure/search/search-limits-quotas-capacity#index-limits), there are always a finite number of indexes that you can create.
Comment for this answer: what about indexes quota?

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2020:00:05/19/20', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<azure-cognitive-search>', 'Title': 'When can ResourceCounter.Quota Property be null?', 'ViewCount': 26, 'id': 61884500, 'user_AboutMe': None, 'user_AccountId': 18622568.0, 'user_DisplayName': 'Or Singer', 'user_Reputation': 11.0, 'user_Views': 1.0, 'user_id': 13572375.0}}