You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this quickstart, you incorporate Azure Cache for Redis into a Java app using the [Jedis](https://github.com/xetorthio/jedis) Redis client. Your cache is a secure, dedicated cache that is accessible from any application within Azure.
15
+
In this quickstart, you incorporate Azure Cache for Redis into a Java app by using the [Jedis](https://github.com/xetorthio/jedis) Redis client. Your cache is a secure, dedicated cache that is accessible from any application within Azure.
16
16
17
-
## Skip to the code on GitHub
17
+
## Skip to the code
18
18
19
-
Clone the repo [Java quickstart](https://github.com/Azure-Samples/azure-cache-redis-samples/tree/main/quickstart/java) on GitHub.
19
+
Clone the repo on GitHub: [Java quickstart](https://github.com/Azure-Samples/azure-cache-redis-samples/tree/main/quickstart/java)
In this quickstart, you incorporate Azure Cache for Redis into a Java app using the [Redisson](https://redisson.org/) Redis client and JCP standard JCache API. These services give you access to a secure, dedicated cache that is accessible from any application within Azure. This article provides two options for selecting the Azure identity to use for the Redis connection.
17
17
18
-
## Skip to the code on GitHub
18
+
## Skip to the code
19
19
20
-
This quickstart uses the Maven archetype feature to generate the scaffolding for the app. The quickstart directs you to modify the generated code to arrive at the working sample app. If you want to skip straight to the completed code, see the [Java quickstart](https://github.com/Azure-Samples/azure-cache-redis-samples/tree/main/quickstart/java-redisson-jcache) on GitHub.
20
+
This quickstart uses the Maven archetype feature to generate scaffolding for the app. The quickstart describes how to modify the generated code to end up with a working sample app. If you want to go straight to the completed code, clone the repository on GitHub: [Java quickstart](https://github.com/Azure-Samples/azure-cache-redis-samples/tree/main/quickstart/java-redisson-jcache)
21
21
22
22
## Prerequisites
23
23
24
24
- Azure subscription - [create one for free](https://azure.microsoft.com/free/)
25
25
-[Use Microsoft Entra ID for cache authentication](cache-azure-active-directory-for-authentication.md)
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/includes/cache-delete-resource-group.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@ ms.topic: include
12
12
13
13
If you want to continue to use the resources you created in this article, keep the resource group.
14
14
15
-
Otherwise, if you're finished with the resources, you can delete the Azure resource group that you created to avoid charges.
15
+
Otherwise, to avoid charges, if you're finished with the resources, you can delete the Azure resource group that you created.
16
16
17
-
> [!IMPORTANT]
18
-
> Deleting a resource group is irreversible. When you delete a resource group, all the resources in it are permanently deleted. Make sure that you do not accidentally delete the wrong resource group or resources. If you created the resources inside an existing resource group that contains resources you want to keep, you can delete each resource individually instead of deleting the resource group.
17
+
> [!WARNING]
18
+
> Deleting a resource group is irreversible. When you delete a resource group, all the resources in the resource group are permanently deleted. Make sure that you do not accidentally delete the wrong resource group or resources. If you created the resources inside an existing resource group that has resources you want to keep, you can delete each resource individually instead of deleting the resource group.
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/includes/cache-entra-access.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,21 +10,23 @@ ms.topic: include
10
10
11
11
### Enable Microsoft Entra ID authentication on your cache
12
12
13
-
If you have a cache already, you first want to check to see if Microsoft Entra Authentication has been enabled. If not, then enable it. We recommend using Microsoft Entra ID for your applications.
13
+
For an existing cache, first check to see if Microsoft Entra authentication is enabled. If it's not, complete the following steps to enable Microsoft Entra authentication. We recommend that you use Microsoft Entra ID for authentication in your applications.
14
14
15
15
1. In the Azure portal, select the Azure Cache for Redis instance where you'd like to use Microsoft Entra token-based authentication.
16
16
17
-
1.Select **Authentication** from the Resource menu.
17
+
1.On the service menu, under **Settings**, select **Authentication**.
18
18
19
-
1.Check in the working paneto see if **Enable Microsoft Entra Authentication** is checked. If so, you can move on.
19
+
1.On the **Authentication** pane, check to see whether the **Enable Microsoft Entra Authentication**checkbox is selected. If it is, you can move on to the next section.
20
20
21
-
1.Select **Enable Microsoft Entra Authentication**, and enter the name of a valid user. The user you enter is automatically assigned _Data Owner Access Policy_ by default when you select **Save**. You can also enter a managed identity or service principal to connect to your cache instance.
21
+
1.Otherwise, select the **Enable Microsoft Entra Authentication** checkbox. Then, enter the name of a valid user. Select **Save**. The user name that you enter is automatically assigned the Data Owner Access Policy.
22
22
23
-
:::image type="content" source="media/cache-entra-access/cache-enable-microsoft-entra.png" alt-text="Screenshot showing authentication selected in the resource menu and the enable Microsoft Entra authentication checked.":::
23
+
You also can enter a managed identity or a service principal to connect to your cache.
24
24
25
-
1. A popup dialog box displays asking if you want to update your configuration, and informing you that it takes several minutes. Select **Yes.**
25
+
:::image type="content" source="media/cache-entra-access/cache-enable-microsoft-entra.png" alt-text="Screenshot that shows Authentication selected in the service menu and the Enable Microsoft Entra Authentication checkbox selected.":::
26
+
27
+
1. In a dialog box, you're asked if you want to update your configuration, and you're informated that making the update takes several minutes to finish. Select **Yes.**
26
28
27
29
> [!IMPORTANT]
28
-
> Once the enable operation is complete, the nodes in your cache instance reboots to load the new configuration. We recommend performing this operation during your maintenance window or outside your peak business hours. The operation can take up to 30 minutes.
30
+
> When the enable operation is finished, the nodes in your cache reboot to load the new configuration. We recommend that you complete this operation during your standard maintenance window or outside your peak business hours. The process can take up to 30 minutes.
29
31
30
-
For information on using Microsoft Entra ID with Azure CLI, see the [references pages for identity](/cli/azure/redis/identity).
32
+
For information about using Microsoft Entra ID with the Azure CLI, see the [identity reference pages](/cli/azure/redis/identity).
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/includes/redis-access-policy.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,17 @@ ms.topic: include
10
10
11
11
## Add the Redis access policy
12
12
13
-
You need to assign a data access policy to the identity that accesses Azure Cache for Redis. For this example, you assign a data access policy to the same Microsoft Entra ID account you use to log into the Azure CLI or Visual Studio.
13
+
You need to assign a data access policy to the identity that accesses Azure Cache for Redis. For this example, you assign a data access policy to the same Microsoft Entra ID account you use to sign in to the Azure CLI or Visual Studio.
14
14
15
15
1. Select **Settings** Resource menu on the cache and select the **Data Access Configuration**.
16
16
17
-
1. On the **Data Access Configuration**page, select **Add > New Redis User** from the top navigation.
17
+
1. On the **Data Access Configuration**pane, select **Add** > **New Redis User**.
18
18
19
19
:::image type="content" source="media/redis-access-policy/assign-access-policy.png" alt-text="Screenshot showing the data access configuration screen.":::
20
20
21
21
1. On the **New Redis User** page, select the **Data Contributor** policy, and select **Next: Redis Users**.
22
22
23
-
1. Choose **+ Select Member** to open the flyout menu. Search for your user account and select it from the results.
23
+
1. Choose **Select Member** to open the flyout menu. Search for your user account and select it from the results.
24
24
25
25
:::image type="content" source="media/redis-access-policy/select-user.png" alt-text="Screenshot showing the Redis user tab in the working pane with select member highlighted with a red box.":::
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/includes/redis-cache-access-keys.md
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,24 @@ ms.date: 08/16/2024
8
8
ms.topic: include
9
9
---
10
10
11
-
### Retrieve host name, ports, and access keys from the Azure portal
11
+
### Get the host name, ports, and access key
12
12
13
-
To connect your Azure Cache for Redis server, the cache client needs the host name, ports, and a key for the cache. Some clients might refer to these items by slightly different names. You can get the host name, ports, and keys from the [Azure portal](https://portal.azure.com).
13
+
To connect to your Azure Cache for Redis server, the cache client needs the cache's host name, ports, and an access key. Some clients might refer to these items by using slightly different names. You can get the host name, ports, and keys in the [Azure portal](https://portal.azure.com).
14
14
15
-
- To get the access keys, select **Authentication** from the Resource menu. Then, select the **Access keys** tab.
15
+
- To get an access key for your cache:
16
+
17
+
1. In the Azure portal, go to your cache.
18
+
1. On the service menu, under **Settings**, select **Authentication**.
19
+
1. On the **Authentication** pane, select the **Access keys** tab.
20
+
1. To copy the value for an access key, select the **Copy** icon in the key field.
16
21
17
-

22
+

23
+
24
+
- To get the host name and ports for your cache:
18
25
19
-
- To get the host name and ports for your cache, select **Overview** from the Resource menu. The host name is of the form *\<DNS name>.redis.cache.windows.net*.
26
+
1. In the Azure portal, go to your cache.
27
+
1. On the service menu, select **Overview**.
28
+
1. Under **Essentials**, for **Host name**, select the **Copy** icon to copy the host name value. The host name value has the form `<DNS name>.redis.cache.windows.net`.
29
+
1. For **Ports**, select the **Copy** icon to copy the port values.
20
30
21
-

31
+

0 commit comments