How to set RediSearch ON_TIMEOUT configuration in Azure Manage Redis - Encountering invalid arguments error.

Malcolm Robertson - DSV 0 Reputation points
2025-09-26T11:15:52.53+00:00

When trying to create a Azure Manage Redis instance, using the below PowerShell command, it gives the error. How can we set the ON_TIMEOUT to FAIL for this? It is available in official Redis documentation, and we require this for migrating our on-prem application to cloud.

https://redis.io/docs/latest/develop/ai/search-and-query/administration/configuration/

Az.RedisEnterpriseCache.internal\New-AzRedisEnterpriseCacheDatabase : Arguments for the module 'RediSearch' are invalid. The valid values are MINPREFIX, MAXEXPANSIONS, MAXPREFIXEXPANSIONS, MAXDOCTABLESIZE, MAXSEARCHRESULTS, PARTIAL_INDEXED_DOCS, FORK_GC_CLEAN_THRESHOLD.

New-AzRedisEnterpriseCache `
  -...
  -Module "{ name:RedisJSON }","{name:RedisBloom }","{name:RedisTimeSeries}","{name:RediSearch,args:`"MINPREFIX 1 ON_TIMEOUT FAIL`" }" `
  -...	
Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pradeep Kommaraju 940 Reputation points Microsoft Employee
    2025-12-16T21:15:55.6133333+00:00

    Hello Malcolm Robertson - DSV

    Azure Cache for Redis doesn’t let you configure RediSearch timeouts.
    These are hard-coded and managed by the service.

    How to fix or mitigate:

    • Optimize queries (smaller result sets, proper indexes).
    • Use LIMIT and pagination.
    • Split heavy queries into smaller ones.
    • Scale up the cache tier for more CPU/memory.
    • Handle timeouts at the app level (retries, circuit breakers).

    In short: You can’t change RediSearch timeouts in Azure Redis — optimize queries or scale the cache.
    If fine-grained timeout tuning is critical, consider Redis Enterprise or keep search-heavy workloads outside Redis.

    Do let me know if you have any further questions , Or Do accept the answer if this was helpful .

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.