Skip to content

Commit 48dfd95

Browse files
committed
remove acre
1 parent 2479561 commit 48dfd95

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

articles/redis/java-get-started.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,25 @@ Clone the repo [Java quickstart](https://github.com/Azure-Samples/azure-cache-re
3939

4040
## Set up the working environment
4141

42-
[!INCLUDE [redis-setup-working-environment](includes/redis-setup-working-environment.md)]
42+
The following steps show you how to set up the working environment for the Java app.
43+
44+
```bash
45+
export REDIS_CACHE_HOSTNAME=<your-host-name>.redis.cache.windows.net
46+
export REDIS_CACHE_PORT=10000
47+
```
48+
49+
Replace the placeholders with the following values:
50+
51+
- `<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`.
52+
53+
:::image type="content" source="media/redis-cache-access-keys/redis-cache-hostname-ports.png" alt-text="Screenshot showing Azure Cache for Redis properties.":::
54+
55+
- `<your-client-id>`: The application (client) ID of your Azure AD application registration.
56+
- `<your-client-secret>`: The client secret of your Azure AD application registration.
57+
- `<your-tenant-id>`: Your Azure Active Directory tenant ID.
58+
59+
> [!NOTE]
60+
> 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.
4361
4462
## Create a new Java app
4563

0 commit comments

Comments
 (0)