Linked Server
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
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
The geo-replicated primary hostname for this linked server.
Link copied to clipboard
The ID of the linked Redis cache. Changing this forces a new Redis to be created.
Link copied to clipboard
The location of the linked Redis cache. Changing this forces a new Redis to be created.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
Link copied to clipboard
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
The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)