Hi Mathieu Longtin ,
Thanks for contacting to Microsoft QA.
Azure managed redis doesn’t expose maxmemory via INFO, and CONFIG is blocked. the service enforces the memory ceiling outside of redis (container/host quota), so there’s no redis-protocol call a client can use to read “maximum size.”
so you can’t get max from INFO. get capacity from the resource’s sku (portal/arm/cli), derive total by shards, and monitor usage with azure monitor.
way to know the max:
- treat the management plane as source of truth. the sku you provisioned defines capacity.
- get it from portal/arm/cli/sdk, then map sku → memory per shard from the sizing table and multiply by shard count (that’s your total data memory, before overhead/replicas).
- classic cache:
az redis show -g <rg> -n <name> --query "sku" - enterprise/managed variants:
az redisenterprise show -g <rg> -n <name> --query "sku"
- classic cache:
- if you need a percentage at runtime, compute it yourself:
used_memory / sku_capacity. azure managed redis doesn’t return the_percfields.
monitor in production:
- rely on azure monitor metrics (e.g., used memory / rss) or
INFO memory’sused_memoryto track growth. - alert around 75–80% of sku capacity to leave headroom for fragmentation, replication, and service overhead—evictions and latency usually show up before 100%.