Skip to content

Latest commit

 

History

History
148 lines (103 loc) · 2.78 KB

azure-cache-for-redis-a204b79.md

File metadata and controls

148 lines (103 loc) · 2.78 KB

Azure Cache for Redis

Consume Azure Cache for Redis and Redis Enterprise with SAP Private Link service.

The following Cloud Foundry service-specific configuration parameters are supported during a service instance creation:


resourceId (required)

Identifies the resource on Azure the private link should be created for.

subResource (required)

Identifies the subresource on Azure the private link should be created for.

requestMessage (optional)

Specifies a message which is shown for the approval request on Azure for the specified resource.

Sample Code:

Azure Cache for Redis

{
     "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cache/Redis/myredis",
     "subResource": "redisCache",
     "requestMessage": "Please approve connection"
 }

Sample Code:

Azure Cache for Redis Enterprise

{
     "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cache/RedisEnterprise/myredisenterprise",
     "subResource": "redisEnterprise",
     "requestMessage": "Please approve connection"
 }

The following binding credentials are provided:


hostname

DNS entry to connect to the Azure resource. This DNS entry resolves to the internal IP address associated with this private link.

Sample Code:

Azure Cache for Redis

{
     ...
     "privatelink": [
         {
             ...
             "credentials": {
                 "hostname": "myredis.redis.cache.windows.net"
             }
         }
     ]
 }

Sample Code:

Azure Cache for Redis Enterprise

{
     ...
     "privatelink": [
         {
             ...
             "credentials": {
                 "hostname": "myredisenterprise.westeurope.redisenterprise.cache.azure.net"
             }
         }
     ]
 }

There is no custom configuration needed for your application to consume the Azure Cache for Redis or RedisEnterprise via Private Link.

You can follow any tutorial using the Azure SDK for the language of your choice.