Skip to content

Commit b8957d4

Browse files
Merge pull request #313814 from v-albemi/azr-47
Branding update to Azure Managed Redis (AMR)
2 parents fc8118a + a335af8 commit b8957d4

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

articles/redis/java-get-started.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ ms.custom:
1414
- devx-track-extended-java
1515
- ignite-2024
1616
- build-2025
17-
appliesto:
18-
- ✅ Azure Cache for Redis
19-
- ✅ Azure Managed Redis
2017
ms.devlang: java
21-
zone_pivot_groups: redis-type
18+
2219
---
2320

2421
# Quickstart: Use Azure Managed Redis in Java with Jedis Redis client
@@ -34,27 +31,31 @@ Clone the repo [Java quickstart](https://github.com/Azure-Samples/azure-cache-re
3431
- Azure subscription - [create one for free](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn)
3532
- [Apache Maven](https://maven.apache.org/download.cgi)
3633

37-
::: zone pivot="azure-managed-redis"
38-
3934
## Create an Azure Managed Redis instance
4035

4136
[!INCLUDE [managed-redis-create](includes/managed-redis-create.md)]
4237

43-
::: zone-end
38+
## Set up the working environment
4439

45-
::: zone pivot="azure-cache-redis"
40+
The following steps show you how to set up the working environment for the Java app.
4641

47-
## Create an Azure Cache for Redis instance
42+
```bash
43+
export REDIS_CACHE_HOSTNAME=<your-host-name>.redis.cache.windows.net
44+
export REDIS_CACHE_PORT=10000
45+
```
4846

49-
[!INCLUDE [redis-cache-create](~/reusable-content/ce-skilling/azure/includes/azure-cache-for-redis/includes/redis-cache-create.md)]
47+
Replace the placeholders with the following values:
5048

51-
[!INCLUDE [redis-cache-access-keys](includes/redis-cache-access-keys.md)]
49+
- `<your-host-name>`: The DNS host name. 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`.
5250

53-
::: zone-end
51+
:::image type="content" source="includes/media/redis-cache-access-keys/redis-cache-hostname-ports.png" alt-text="Screenshot showing Azure Cache for Redis properties.":::
5452

55-
## Set up the working environment
53+
- `<your-client-id>`: The application (client) ID of your Azure AD application registration.
54+
- `<your-client-secret>`: The client secret of your Azure AD application registration.
55+
- `<your-tenant-id>`: Your Azure Active Directory tenant ID.
5656

57-
[!INCLUDE [redis-setup-working-environment](includes/redis-setup-working-environment.md)]
57+
> [!NOTE]
58+
> The above example uses client secret authentication. You can also configure the `redis-authx-entraid` library to use other authentication methods such as managed identity or client certificate by modifying the `EntraIDTokenAuthConfigBuilder` configuration in your code.
5859
5960
## Create a new Java app
6061

@@ -204,3 +205,4 @@ In this quickstart, you learned how to use Azure Managed Redis from a Java appli
204205
- [Connection resilience](best-practices-connection.md)
205206
- [Using Azure Redis as session cache for WebSphere Liberty or Open Liberty](/azure/developer/java/ee/how-to-deploy-java-liberty-jcache)
206207
- [Use Azure Redis Cache in Spring](/azure/developer/java/spring-framework/configure-spring-boot-initializer-java-app-with-redis-cache)
208+

0 commit comments

Comments
 (0)