An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
To access Azure Redis Cache with view, update, and delete operations via the Console or Redis CLI while using managed identity, ensure that you have properly configured the managed identity and granted the necessary permissions. Here are some steps to troubleshoot the "Access Forbidden" error:
- Managed Identity Configuration: Make sure that the managed identity is correctly assigned to your Azure Cache for Redis instance. You can do this through the Azure portal or using Azure CLI commands.
- Role Assignment: Verify that the managed identity has the appropriate role assigned. For accessing the Redis cache, the managed identity should have at least the Data Owner, Data Contributor, or Data Reader role assigned through Azure Role-Based Access Control (RBAC).
- Access Key Authentication: Since you mentioned that access key-based authentication is disabled, ensure that your application or service is configured to authenticate using the managed identity only.
- Using Redis CLI: When using the Redis CLI, ensure that you are using the correct command to authenticate via managed identity. The CLI should be set up to use the managed identity token for authentication.
- Check Firewall and Network Settings: Ensure that there are no network restrictions or firewall rules that might be blocking access to the Redis instance.
If you have checked all these configurations and are still facing issues, consider reviewing the Azure documentation on managed identities and role assignments for Azure Cache for Redis for further guidance.
References: