LinkedServerArgs

data class LinkedServerArgs(val linkedRedisCacheId: Output<String>? = null, val linkedRedisCacheLocation: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serverRole: Output<String>? = null, val targetRedisCacheName: Output<String>? = null) : ConvertibleToJava<LinkedServerArgs>

Manages a Redis Linked Server (ie Geo Location)

Example Usage

resources:
example-primary:
type: azure:core:ResourceGroup
properties:
name: example-resources-primary
location: East US
example-primaryCache:
type: azure:redis:Cache
name: example-primary
properties:
name: example-cache1
location: ${["example-primary"].location}
resourceGroupName: ${["example-primary"].name}
capacity: 1
family: P
skuName: Premium
enableNonSslPort: false
redisConfiguration:
maxmemoryReserved: 2
maxmemoryDelta: 2
maxmemoryPolicy: allkeys-lru
example-secondary:
type: azure:core:ResourceGroup
properties:
name: example-resources-secondary
location: West US
example-secondaryCache:
type: azure:redis:Cache
name: example-secondary
properties:
name: example-cache2
location: ${["example-secondary"].location}
resourceGroupName: ${["example-secondary"].name}
capacity: 1
family: P
skuName: Premium
enableNonSslPort: false
redisConfiguration:
maxmemoryReserved: 2
maxmemoryDelta: 2
maxmemoryPolicy: allkeys-lru
example-link:
type: azure:redis:LinkedServer
properties:
targetRedisCacheName: ${["example-primaryCache"].name}
resourceGroupName: ${["example-primaryCache"].resourceGroupName}
linkedRedisCacheId: ${["example-secondaryCache"].id}
linkedRedisCacheLocation: ${["example-secondaryCache"].location}
serverRole: Secondary

Import

Redis can be imported using the resource id, e.g.

$ pulumi import azure:redis/linkedServer:LinkedServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Cache/redis/cache1/linkedServers/cache2

Constructors

Link copied to clipboard
constructor(linkedRedisCacheId: Output<String>? = null, linkedRedisCacheLocation: Output<String>? = null, resourceGroupName: Output<String>? = null, serverRole: Output<String>? = null, targetRedisCacheName: Output<String>? = null)

Properties

Link copied to clipboard
val linkedRedisCacheId: Output<String>? = null

The ID of the linked Redis cache. Changing this forces a new Redis to be created.

Link copied to clipboard
val linkedRedisCacheLocation: Output<String>? = null

The location of the linked Redis cache. Changing this forces a new Redis to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.

Link copied to clipboard
val serverRole: Output<String>? = null

The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.

Link copied to clipboard
val targetRedisCacheName: Output<String>? = null

The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)

Functions

Link copied to clipboard
open override fun toJava(): LinkedServerArgs