how to connect azure cache redis to azure databricks through service principal

Nageswara.Podapati 0 Reputation points
2025-02-04T09:34:56.25+00:00

I need to connect azure redis to databricks using service principal . but I am getting this error

Failed to connect to Redis: invalid username-password pair

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
270 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,327 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,219 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Nageswara.Podapati 0 Reputation points
    2025-02-04T10:45:13.52+00:00

    Hi Vijayalaxmi ,

    I am adding the screen shot below .


  2. Oury Ba-MSFT 20,186 Reputation points Microsoft Employee
    2025-02-04T20:37:07.6833333+00:00

    Nageswara.Podapati Thank you for reaching out and sorry to hear about the issue you are facing

    Troubleshooting

    Invalid Username Password Pair Error

    In this error scenario, the username provided and the access token used as password are not compatible. To mitigate this error, navigate to your Azure Cache for Redis resource in the Azure portal. Confirm that:

    • In Data Access Configuration, you've assigned the required role to your user/service principal identity.
    • Under Authentication -> Microsoft Entra Authentication category the Enable Microsoft Entra Authentication box is selected. If not, select it and select the Save button.

    Please do let us know the result.

    Regards,

    Oury

    0 comments No comments

Your answer

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