%3CLINGO-SUB%20id%3D%22lingo-sub-1450361%22%20slang%3D%22en-US%22%3ETroubleshooting%20Azure%20Redis%20Connectivity%20Issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1450361%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EScenario%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYou%20want%20to%20test%20the%20connectivity%20of%20REDIS%20endpoint%20from%20your%20machine%20using%20the%20non-SSL%20port%206379%20or%20SSL%20port%206380%20as%20per%20requirement.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EActions%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThere%20are%20different%20options%20available%20to%20test%20the%20connectivity%20of%20your%20Azure%20Redis%20cache%20endpoint%20from%20your%20machine.%20Let%E2%80%99s%20check%20on%20few%20of%20them.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E1.%20Test%20the%20connectivity%20using%20REDIS%20CLI%20and%20STUNNEL%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EYou%20can%20test%20the%20connectivity%20for%20REDIS%20for%20your%20machine%20on%20non-SSL%20port%206379%20and%20SSL%20port%206380%20using%20REDIS%20CLI%20tool.%20To%20test%20the%20connectivity%20to%20non-SSL%20port%2C%20kindly%20use%20the%20below%20syntax%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3Eredis-cli.exe%20-h%20%3CYOUR%20cache%3D%22%22%20endpoint%3D%22%22%3E%20-p%206379%20-a%20%3CACCESS%20key%3D%22%22%3E%3C%2FACCESS%3E%3C%2FYOUR%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_12-1591690012221.png%22%20style%3D%22width%3A%20709px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197483iE211AD08B350679D%2Fimage-dimensions%2F709x77%3Fv%3D1.0%22%20width%3D%22709%22%20height%3D%2277%22%20title%3D%22Amrinder_Singh_12-1591690012221.png%22%20alt%3D%22Amrinder_Singh_12-1591690012221.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ETo%20test%20the%20connectivity%20on%20SSL%20port%206380%2C%20you%20need%20to%20make%20use%20of%20%3CA%20href%3D%22https%3A%2F%2Fwww.stunnel.org%2Fdownloads.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESTUNNEL%3C%2FA%3E%20and%20make%20an%20entry%20in%20the%20configuration%20file%20as%20depicted%20below.%20Please%20reload%20the%20configurations%20after%20making%20the%20entry.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_13-1591690012231.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197482i92E166F8F9674E21%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Amrinder_Singh_13-1591690012231.png%22%20alt%3D%22Amrinder_Singh_13-1591690012231.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIn%20case%20the%20entry%20is%20missing%20or%20the%20configuration%20isn%E2%80%99t%20loaded%20correctly%2C%20you%20may%20receive%20errors%20like%20%E2%80%9C%3CSTRONG%3ENo%20connection%20could%20be%20made%20because%20the%20target%20machine%20actively%20refused%20it%3C%2FSTRONG%3E%E2%80%9D%2C%20%E2%80%9C%3CSTRONG%3EConnection%20Reset%20by%20Peer%3C%2FSTRONG%3E%E2%80%9D%20or%20%E2%80%9C%3CSTRONG%3EUnknown%20Error%3C%2FSTRONG%3E%E2%80%9D%20etc.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EOnce%20configuration%20has%20been%20loaded%20successfully%2C%20try%20connecting%20to%20REDIS%20using%20the%20below%20syntax%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3Eredis-cli.exe%20-p%206380%20-a%20%3CACCESS%20key%3D%22%22%3E%3C%2FACCESS%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_14-1591690012234.png%22%20style%3D%22width%3A%20655px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197484i7C1A4F2B1216605C%2Fimage-dimensions%2F655x84%3Fv%3D1.0%22%20width%3D%22655%22%20height%3D%2284%22%20title%3D%22Amrinder_Singh_14-1591690012234.png%22%20alt%3D%22Amrinder_Singh_14-1591690012234.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIn%20both%20the%20above%20tests%2C%20we%20made%20of%20simple%20PING%20command%20and%20received%20a%20PONG%20back.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E2.%20Test%20the%20connectivity%20using%20PSPING%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EYou%20can%20test%20whether%20you%20are%20getting%20response%20from%20the%20REDIS%20end%20point%20on%20the%20desired%20port%20or%20not%20by%20making%20use%20of%20PSPING.%20The%20tool%20can%20be%20downloaded%20from%20the%20below%20link%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsysinternals%2Fdownloads%2Fpsping%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsysinternals%2Fdownloads%2Fpsping%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EPlease%20try%20the%20below%20syntax%20to%20test%20the%20connectivity%20and%20check%20on%20the%20number%20of%20packets%20being%20sent%20and%20received%20as%20part%20of%20testing.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3Epsping%20-q%20%3CYOUR%20cache%3D%22%22%20endpoint%3D%22%22%3E%3A%3CPORT%20number%3D%22%22%3E%3C%2FPORT%3E%3C%2FYOUR%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_15-1591690012256.png%22%20style%3D%22width%3A%20622px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197485iC0997384D70C7E5A%2Fimage-dimensions%2F622x286%3Fv%3D1.0%22%20width%3D%22622%22%20height%3D%22286%22%20title%3D%22Amrinder_Singh_15-1591690012256.png%22%20alt%3D%22Amrinder_Singh_15-1591690012256.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIf%20the%20number%20of%20sent%20packets%20are%20not%20equal%20to%20the%20received%20packets%2C%20it%20points%20to%20drop%20in%20connectivity.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E3.%20Test%20the%20connectivity%20using%20Port%20Query%20tool%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EYou%20can%20also%20make%20use%20of%20the%20Port%20Query%20tool%20in%20order%20to%20test%20the%20connectivity%20and%20the%20tool%20can%20be%20downloaded%20from%20the%20below%20link%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-in%2Fdownload%2Fdetails.aspx%3Fid%3D24009%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fen-in%2Fdownload%2Fdetails.aspx%3Fid%3D24009%3C%2FA%3E.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EYou%20need%20to%20mention%20the%20REDIS%20endpoint%20in%20the%20destination%20section%20and%20provide%20the%20port%20for%20which%20the%20connectivity%20needs%20to%20be%20tested.%20If%20the%20port%20is%20open%2C%20you%20will%20be%20getting%20the%20status%20as%20%E2%80%98%3CSTRONG%3ELISTENING%3C%2FSTRONG%3E%E2%80%99%20as%20shown%20below%20and%20if%20the%20port%20is%20blocked%2C%20the%20status%20will%20be%20shown%20as%20%E2%80%98%3CSTRONG%3EFILTERED%3C%2FSTRONG%3E%E2%80%99.%20The%20below%202%20screenshots%20depicts%20how%20the%20status%20will%20get%20reflecting%20depending%20upon%20the%20port%20status.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_16-1591690012288.png%22%20style%3D%22width%3A%20442px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197486iB35C7C3CE2E1C710%2Fimage-dimensions%2F442x381%3Fv%3D1.0%22%20width%3D%22442%22%20height%3D%22381%22%20title%3D%22Amrinder_Singh_16-1591690012288.png%22%20alt%3D%22Amrinder_Singh_16-1591690012288.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_17-1591690012323.png%22%20style%3D%22width%3A%20438px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197487iF4304C96CD32676D%2Fimage-dimensions%2F438x419%3Fv%3D1.0%22%20width%3D%22438%22%20height%3D%22419%22%20title%3D%22Amrinder_Singh_17-1591690012323.png%22%20alt%3D%22Amrinder_Singh_17-1591690012323.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIf%20you%20are%20not%20getting%20successful%20response%20from%20any%20of%20the%20above%20methods%2C%20please%20try%20checking%20on%20the%20below%20parameters%20to%20isolate%20the%20issue%20further.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E4.%20Checking%20the%20Firewall%20Rule%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ECheck%20if%20there%20is%20any%20firewall%20rule%20configured%20over%20the%20REDIS.%20This%20can%20be%20checked%20from%20the%20Azure%20Portal%20under%20the%20%3CSTRONG%3ESettings%3C%2FSTRONG%3E%20blade.%20Below%20is%20the%20screenshot%20for%20the%20same%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_18-1591690012336.png%22%20style%3D%22width%3A%20655px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197489iE74E8272C1D229A9%2Fimage-dimensions%2F655x175%3Fv%3D1.0%22%20width%3D%22655%22%20height%3D%22175%22%20title%3D%22Amrinder_Singh_18-1591690012336.png%22%20alt%3D%22Amrinder_Singh_18-1591690012336.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIf%20there%20is%2Fare%20any%20rule%20configured%2C%20the%20connection%20to%20REDIS%20will%20only%20be%20allowed%20from%20the%20mentioned%20IP%20or%20the%20IP%20ranges.%20In%20case%20you%20try%20to%20connect%20from%20an%20IP%20outside%20the%20firewall%20rule%20mentioned%2C%20you%20will%20get%20an%20error.%20Below%20is%20an%20example%20of%20a%20connectivity%20test%20using%20REDIS%20CLI%20from%20an%20IP%20outside%20the%20firewall%20rule.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_19-1591690012340.png%22%20style%3D%22width%3A%20650px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197488iD34AB6AEB4629E33%2Fimage-dimensions%2F650x64%3Fv%3D1.0%22%20width%3D%22650%22%20height%3D%2264%22%20title%3D%22Amrinder_Singh_19-1591690012340.png%22%20alt%3D%22Amrinder_Singh_19-1591690012340.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E5.%20Checking%20the%20VNET%20configurations%20and%20NSG%20rules%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIn%20case%20you%20are%20using%20a%20Premium%20cache%20which%20has%20a%20VNET%20configuration%20assigned%20to%20it%2C%20the%20most%20common%20test%20can%20be%20done%20from%20the%20REDIS%20console.%20Incase%20there%20are%20any%20missing%20configurations%2C%20you%20will%20get%20and%20error%20like%20below%20%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_20-1591690012349.png%22%20style%3D%22width%3A%20643px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197490i82059A0F7E055DEB%2Fimage-dimensions%2F643x110%3Fv%3D1.0%22%20width%3D%22643%22%20height%3D%22110%22%20title%3D%22Amrinder_Singh_20-1591690012349.png%22%20alt%3D%22Amrinder_Singh_20-1591690012349.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIn%20this%20case%2C%20you%20can%20try%20validating%20the%20below%20pointers%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20client%20application%2Fsource%20and%20the%20REDIS%20are%20under%20same%20regions.%20The%20below%20example%20shows%20to%20check%20the%20location%2Fregion%20configuration%20of%20a%20VM%20and%20a%20Azure%20REDIS%20instance%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_21-1591690012367.png%22%20style%3D%22width%3A%20673px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197492i1DD845E89C6F6A9A%2Fimage-dimensions%2F673x303%3Fv%3D1.0%22%20width%3D%22673%22%20height%3D%22303%22%20title%3D%22Amrinder_Singh_21-1591690012367.png%22%20alt%3D%22Amrinder_Singh_21-1591690012367.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20client%20application%2Fsource%20and%20the%20REDIS%20are%20under%20same%20VNET.%20The%20below%20example%20shows%20to%20check%20the%20Virtual%20Network%20configuration%20of%20a%20VM%20and%20a%20Azure%20REDIS%20instance.%20You%20can%20check%20if%20a%20VNET%20is%20assigned%20to%20your%20cache%20or%20not%20from%20the%20%E2%80%9C%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EVirtual%20Network%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%E2%80%9D%20section%20under%20the%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3ESettings%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%20blade%20from%20the%20Azure%20Portal%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_22-1591690012402.png%22%20style%3D%22width%3A%20663px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197493i90868DBC0C1B4A64%2Fimage-dimensions%2F663x375%3Fv%3D1.0%22%20width%3D%22663%22%20height%3D%22375%22%20title%3D%22Amrinder_Singh_22-1591690012402.png%22%20alt%3D%22Amrinder_Singh_22-1591690012402.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIn%20case%20the%20client%20application%2Fsource%20are%20under%20different%20VNET%E2%80%99s%2C%20both%20the%20VNET%E2%80%99s%20should%20have%20VNET%20peering%20enabled%20within%20the%20same%20Azure%20region.%26nbsp%3BGlobal%20peering%20is%20not%20supported%20yet.%3C%2FLI%3E%0A%3CLI%3EAll%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-cache-for-redis%2Fcache-how-to-premium-vnet%23inbound-port-requirements%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EInbound%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-cache-for-redis%2Fcache-how-to-premium-vnet%23outbound-port-requirements%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EOutbound%3C%2FA%3E%20rules%20are%20in%20place%20as%20per%20the%20requirement.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Amrinder_Singh_23-1591690012405.png%22%20style%3D%22width%3A%20600px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197491i90342DA701E695FD%2Fimage-dimensions%2F600x30%3Fv%3D1.0%22%20width%3D%22600%22%20height%3D%2230%22%20title%3D%22Amrinder_Singh_23-1591690012405.png%22%20alt%3D%22Amrinder_Singh_23-1591690012405.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EFrom%20isolation%20standpoint%2C%20the%20above%20mentioned%20one%20is%20a%20sample%20rule%20that%20can%20added%20%26nbsp%3Bbe%20to%20both%20inbound%20%26amp%3B%20outbound%20configurations%20in%20order%20to%20allow%20all%20the%20ports%2Fprotocols%2Fsources%20and%20destination%20and%20test%20the%20connectivity.%20Please%20note%20that%20the%20rule%20precedence%20or%20%3CSTRONG%3E%E2%80%9CPriority%E2%80%9D%3C%2FSTRONG%3E%20should%20be%20higher%20for%20rule%20to%20get%20implemented.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E6.%20Check%20REDIS%20endpoint%20being%20whitelisted%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ELast%20but%20not%20the%20least%2C%20in%20case%20you%20are%20using%20a%20firewall%20or%20proxy%20in%20your%20network%2C%20please%20ensure%20that%20the%20REDIS%20endpoint%20is%20whitelisted%20with%20the%20port%20number%20i.e.%20*.redis.cache.windows.net%20should%20be%20whitelisted%20for%20the%20port%206379%20and%20port%206380%20as%20per%20requirement.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1450361%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Redis%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Scenario:

You want to test the connectivity of REDIS endpoint from your machine using the non-SSL port 6379 or SSL port 6380 as per requirement.

 

Actions:

There are different options available to test the connectivity of your Azure Redis cache endpoint from your machine. Let’s check on few of them.

 

1. Test the connectivity using REDIS CLI and STUNNEL

You can test the connectivity for REDIS for your machine on non-SSL port 6379 and SSL port 6380 using REDIS CLI tool. To test the connectivity to non-SSL port, kindly use the below syntax:

 

redis-cli.exe -h <YOUR CACHE ENDPOINT> -p 6379 -a <ACCESS KEY>

Amrinder_Singh_12-1591690012221.png

To test the connectivity on SSL port 6380, you need to make use of STUNNEL and make an entry in the configuration file as depicted below. Please reload the configurations after making the entry.

Amrinder_Singh_13-1591690012231.png

In case the entry is missing or the configuration isn’t loaded correctly, you may receive errors like “No connection could be made because the target machine actively refused it”, “Connection Reset by Peer” or “Unknown Error” etc.

 

Once configuration has been loaded successfully, try connecting to REDIS using the below syntax:

redis-cli.exe -p 6380 -a <ACCESS KEY>

Amrinder_Singh_14-1591690012234.png

In both the above tests, we made of simple PING command and received a PONG back.

 

2. Test the connectivity using PSPING

You can test whether you are getting response from the REDIS end point on the desired port or not by making use of PSPING. The tool can be downloaded from the below link:
https://docs.microsoft.com/en-us/sysinternals/downloads/psping

 

Please try the below syntax to test the connectivity and check on the number of packets being sent and received as part of testing.

psping -q <YOUR CACHE ENDPOINT>:<Port Number>

      Amrinder_Singh_15-1591690012256.png

If the number of sent packets are not equal to the received packets, it points to drop in connectivity.

 

3. Test the connectivity using Port Query tool

You can also make use of the Port Query tool in order to test the connectivity and the tool can be downloaded from the below link:
https://www.microsoft.com/en-in/download/details.aspx?id=24009.

 

You need to mention the REDIS endpoint in the destination section and provide the port for which the connectivity needs to be tested. If the port is open, you will be getting the status as ‘LISTENING’ as shown below and if the port is blocked, the status will be shown as ‘FILTERED’. The below 2 screenshots depicts how the status will get reflecting depending upon the port status.

Amrinder_Singh_16-1591690012288.png

       Amrinder_Singh_17-1591690012323.png

If you are not getting successful response from any of the above methods, please try checking on the below parameters to isolate the issue further.

 

4. Checking the Firewall Rule

Check if there is any firewall rule configured over the REDIS. This can be checked from the Azure Portal under the Settings blade. Below is the screenshot for the same:

Amrinder_Singh_18-1591690012336.png

If there is/are any rule configured, the connection to REDIS will only be allowed from the mentioned IP or the IP ranges. In case you try to connect from an IP outside the firewall rule mentioned, you will get an error. Below is an example of a connectivity test using REDIS CLI from an IP outside the firewall rule.

      Amrinder_Singh_19-1591690012340.png

 

5. Checking the VNET configurations and NSG rules

In case you are using a Premium cache which has a VNET configuration assigned to it, the most common test can be done from the REDIS console. Incase there are any missing configurations, you will get and error like below :

Amrinder_Singh_20-1591690012349.png

In this case, you can try validating the below pointers:

  • The client application/source and the REDIS are under same regions. The below example shows to check the location/region configuration of a VM and a Azure REDIS instance

        Amrinder_Singh_21-1591690012367.png

  • The client application/source and the REDIS are under same VNET. The below example shows to check the Virtual Network configuration of a VM and a Azure REDIS instance. You can check if a VNET is assigned to your cache or not from the “Virtual Network” section under the Settings blade from the Azure Portal     .

         Amrinder_Singh_22-1591690012402.png

 

  • In case the client application/source are under different VNET’s, both the VNET’s should have VNET peering enabled within the same Azure region. Global peering is not supported yet.
  • All the Inbound and Outbound rules are in place as per the requirement.

         Amrinder_Singh_23-1591690012405.png

From isolation standpoint, the above mentioned one is a sample rule that can added  be to both inbound & outbound configurations in order to allow all the ports/protocols/sources and destination and test the connectivity. Please note that the rule precedence or “Priority” should be higher for rule to get implemented.

 

6. Check REDIS endpoint being whitelisted

Last but not the least, in case you are using a firewall or proxy in your network, please ensure that the REDIS endpoint is whitelisted with the port number i.e. *.redis.cache.windows.net should be whitelisted for the port 6379 and port 6380 as per requirement.

 

Hope this helps!