Redis Cache is one of the PaaS/SaaS offerings in Azure, which gives you a well-known product that can be easily configured and provisioned. Thanks to that option, you can quickly deploy a Redis Cache instance and focus on using it in your application. As it very often acts as the first-level storage (or in other words, the first-level cache) of an application, you may want to secure it and improve its performance by colocating it inside a single VNet. By default, when a managed Azure Redis Cache instance is deployed, there is no way to isolate it from the public internet. In this section, I will show you how a network integration can be achieved with just a few clicks.
To perform this exercise, we will need a Redis Cache instance. There are a few options to do so, but we will consider two of them—either using the Azure CLI or the Azure portal. The important thing here is the fact that VNet integration can only be added when deploying the cache. To...