Azure Redis connectivity using Managed Identity

Lakshmi 0 Reputation points
2024-06-14T14:01:46.2433333+00:00

Hi,

I've created User managed identity and added as Azure Redis user and I'm trying to connect redis using username as managed identity and password as token.

Could you pls help on how can I fetch access token for managed identity to connect Redis.

Appreciate your quick help on the fix.

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
227 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 17,631 Reputation points Microsoft Employee
    2024-06-14T20:30:26.02+00:00

    @Lakshmi

    Thank you for reaching out.

    Are you using default credentials? If yes, please check this link https://video2.skills-academy.com/en-us/dotnet/api/overview/azure/identity-readme?view=azure-dotnet#environment-variables

    In this article, you learn how to use your service principal or managed identity to connect to your cache, and how to grant your connection predefined permissions based on the Microsoft Entra artifact being used for the connection.https://video2.skills-academy.com/en-us/azure/azure-cache-for-redis/cache-azure-active-directory-for-authentication.

    Regards,

    Oury

    0 comments No comments