Connecting to Azure Cache for Redis
Quick guide on how to connect to Azure Cache for Redis using the redis-cli command line tool:
Within Azure Cache for Redis Azure portal service - search for the required service (for example adoption-web-session-storage-prod).
select private endpoint > enable public network access
Firewall > find my ip address and add it.
Disable VPN and open local terminal session.
Get details from the azure portal such as properties and access keys, etc.
Test connection from your local terminal session:
telnet <service>.redis.cache.windows.net 6380
For example:
telnet adoption-web-session-storage-prod.redis.cache.windows.net 6380
Run the following command from your local terminal session to access the Redis CLI:
redis-cli --tls -u 'rediss://%%access key@<service>.redis.cache.windows.net:6380'
For example:
redis-cli --tls -u 'rediss://%%access key@adoption-web-session-storage-prod.redis.cache.windows.net:6380'
When finished disable the public network access.
This page was last reviewed on 18 June 2025.
It needs to be reviewed again on 18 June 2026
by the page owner platops-build-notices
.
This page was set to be reviewed before 18 June 2026
by the page owner platops-build-notices.
This might mean the content is out of date.