question

Vicki-7859 avatar image
0 Votes"
Vicki-7859 asked GeethaThatipatri-MSFT commented

How to connect cache with Redis to a private endpoint that doesn't end up resolving to a public IP address?

We have set up Azure cache for Redis with a private endpoint but noticed that it resolves to a public IP address. Is there a way for the private endpoint to remain private? I read a Stackoverflow post from 2020 that suggests private endpoints are not available with Redis cache. Is that correct? If so, what are the instructions in the below doc meant to accomplish? :)

https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-private-link#how-do-i-verify-if-my-private-endpoint-is-configured-correctly

Thanks in advance for any information that can be provided.

azure-cache-redis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GeethaThatipatri-MSFT avatar image
0 Votes"
GeethaThatipatri-MSFT answered GeethaThatipatri-MSFT commented

Hi, @Vicki-7859 Thanks for posting your question in the Microsoft Q&A forum.

As we understand the ask here is you have set up Azure cache for Redis with a private endpoint but noticed that it resolves to a public IP address,
I tried to reproduce the same and I did not find any issues. have you done the firewall vnet with the private DNS zone for Redis if not can you do it?
please share your screenshot so we can better assist you as there shouldn’t be an issue here. Private Endpoints are available with Azure Cache for Redis and have been GA for over a year.

Private endpoints should not resolve to a public IP address unless public network access is explicitly enabled. To be clear, it will still have an IP address, but not a public one. You can see this in the picture at this link.

Regards
Geetha


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @Vicki-7859 have not heard back from you. Did you have the chance to check the above reply, Please let us know if you are still facing the same issue?

Regards
Geetha

0 Votes 0 ·
Vicki-7859 avatar image
0 Votes"
Vicki-7859 answered GeethaThatipatri-MSFT commented

Hi Geetha,

Thanks for the initial response and for the follow-up. We are working on firewall vnet with private DNS solution you mentioned. We have limited staff/time so this might not be completed for a few days. I will respond after we finish trying this out.

Thanks again for you help,
Vicki

· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sure Vicki-7859 thanks for your response we will wait to hear back from you.

Regards
Geetha

0 Votes 0 ·

I have a colleague who has decided that we do not try the firewall vnet with the private DNS zone for Redis route yet.

But he created an A record and he pointed it to an ip address. We are able to ping and the port query result looks good. But we still have a connectivity issue. I am attaching a screenshot of the error message we are receiving. Do you have any ideas about what we should do and/or do you think that the firewall vnet with a private DNS zone is the way to go?

Thank you!

191324-redis-error-message-4-8-22.jpg


0 Votes 0 ·

Thanks, @Vicki-7859 Can you please provide the steps you have performed so I can reproduce the issue and assist you better.

Regards
Geetha

0 Votes 0 ·

Thanks for the response. My colleague is using a .net console app to connect to Redis. I am attaching a file of the code he is using.

191367-code-used-to-connect-redis.txt


0 Votes 0 ·

Sure @Vicki-7859 I will look into it. Can you also please share the setup steps you followed from the portal as you mentioned above.

Regards
Geetha

0 Votes 0 ·
Vicki-7859 avatar image Vicki-7859 GeethaThatipatri-MSFT ·

Thank you. We used the instructions in this document:

https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-private-link

0 Votes 0 ·
Show more comments
Vicki-7859 avatar image
0 Votes"
Vicki-7859 answered GeethaThatipatri-MSFT commented

Thank you. We used the instructions in this document:

https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-private-link

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @Vicki-7859 have not heard back from you Did you have the chance to check the above my reply.

Regards
Geetha

0 Votes 0 ·
Vicki-7859 avatar image Vicki-7859 GeethaThatipatri-MSFT ·

@GeethaThatipatri-MSFT , thanks for the response. I overlooked the response you submitted a few days ago. Sorry about that. Thank you for the offer of opening a support ticket. Our chief architects believe that they have figured out the issue and are testing the solution now on our end. I don't think that a support ticket will be necessary. Thank you again for all of your help and for the offer of opening the support ticket.

0 Votes 0 ·

Sure @Vicki-7859 Thanks for the update, In case you found a solution, would you please share it here with the community? Otherwise, let us know and we will continue to engage with you on the issue.

Regards
Geetha

0 Votes 0 ·

Hi, @Vicki-7859 do you have any updates, In case you found a solution, would you please share it here with the community?

Regards
Geetha

0 Votes 0 ·