1. Packages
  2. Azure Classic
  3. API Docs
  4. redis
  5. LinkedServer

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.redis.LinkedServer

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages a Redis Linked Server (ie Geo Location)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example_primary = new azure.core.ResourceGroup("example-primary", {
        name: "example-resources-primary",
        location: "East US",
    });
    const example_primaryCache = new azure.redis.Cache("example-primary", {
        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",
        },
    });
    const example_secondary = new azure.core.ResourceGroup("example-secondary", {
        name: "example-resources-secondary",
        location: "West US",
    });
    const example_secondaryCache = new azure.redis.Cache("example-secondary", {
        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",
        },
    });
    const example_link = new azure.redis.LinkedServer("example-link", {
        targetRedisCacheName: example_primaryCache.name,
        resourceGroupName: example_primaryCache.resourceGroupName,
        linkedRedisCacheId: example_secondaryCache.id,
        linkedRedisCacheLocation: example_secondaryCache.location,
        serverRole: "Secondary",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_primary = azure.core.ResourceGroup("example-primary",
        name="example-resources-primary",
        location="East US")
    example_primary_cache = azure.redis.Cache("example-primary",
        name="example-cache1",
        location=example_primary.location,
        resource_group_name=example_primary.name,
        capacity=1,
        family="P",
        sku_name="Premium",
        enable_non_ssl_port=False,
        redis_configuration=azure.redis.CacheRedisConfigurationArgs(
            maxmemory_reserved=2,
            maxmemory_delta=2,
            maxmemory_policy="allkeys-lru",
        ))
    example_secondary = azure.core.ResourceGroup("example-secondary",
        name="example-resources-secondary",
        location="West US")
    example_secondary_cache = azure.redis.Cache("example-secondary",
        name="example-cache2",
        location=example_secondary.location,
        resource_group_name=example_secondary.name,
        capacity=1,
        family="P",
        sku_name="Premium",
        enable_non_ssl_port=False,
        redis_configuration=azure.redis.CacheRedisConfigurationArgs(
            maxmemory_reserved=2,
            maxmemory_delta=2,
            maxmemory_policy="allkeys-lru",
        ))
    example_link = azure.redis.LinkedServer("example-link",
        target_redis_cache_name=example_primary_cache.name,
        resource_group_name=example_primary_cache.resource_group_name,
        linked_redis_cache_id=example_secondary_cache.id,
        linked_redis_cache_location=example_secondary_cache.location,
        server_role="Secondary")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/redis"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := core.NewResourceGroup(ctx, "example-primary", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources-primary"),
    			Location: pulumi.String("East US"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = redis.NewCache(ctx, "example-primary", &redis.CacheArgs{
    			Name:              pulumi.String("example-cache1"),
    			Location:          example_primary.Location,
    			ResourceGroupName: example_primary.Name,
    			Capacity:          pulumi.Int(1),
    			Family:            pulumi.String("P"),
    			SkuName:           pulumi.String("Premium"),
    			EnableNonSslPort:  pulumi.Bool(false),
    			RedisConfiguration: &redis.CacheRedisConfigurationArgs{
    				MaxmemoryReserved: pulumi.Int(2),
    				MaxmemoryDelta:    pulumi.Int(2),
    				MaxmemoryPolicy:   pulumi.String("allkeys-lru"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = core.NewResourceGroup(ctx, "example-secondary", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources-secondary"),
    			Location: pulumi.String("West US"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = redis.NewCache(ctx, "example-secondary", &redis.CacheArgs{
    			Name:              pulumi.String("example-cache2"),
    			Location:          example_secondary.Location,
    			ResourceGroupName: example_secondary.Name,
    			Capacity:          pulumi.Int(1),
    			Family:            pulumi.String("P"),
    			SkuName:           pulumi.String("Premium"),
    			EnableNonSslPort:  pulumi.Bool(false),
    			RedisConfiguration: &redis.CacheRedisConfigurationArgs{
    				MaxmemoryReserved: pulumi.Int(2),
    				MaxmemoryDelta:    pulumi.Int(2),
    				MaxmemoryPolicy:   pulumi.String("allkeys-lru"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = redis.NewLinkedServer(ctx, "example-link", &redis.LinkedServerArgs{
    			TargetRedisCacheName:     example_primaryCache.Name,
    			ResourceGroupName:        example_primaryCache.ResourceGroupName,
    			LinkedRedisCacheId:       example_secondaryCache.ID(),
    			LinkedRedisCacheLocation: example_secondaryCache.Location,
    			ServerRole:               pulumi.String("Secondary"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example_primary = new Azure.Core.ResourceGroup("example-primary", new()
        {
            Name = "example-resources-primary",
            Location = "East US",
        });
    
        var example_primaryCache = new Azure.Redis.Cache("example-primary", new()
        {
            Name = "example-cache1",
            Location = example_primary.Location,
            ResourceGroupName = example_primary.Name,
            Capacity = 1,
            Family = "P",
            SkuName = "Premium",
            EnableNonSslPort = false,
            RedisConfiguration = new Azure.Redis.Inputs.CacheRedisConfigurationArgs
            {
                MaxmemoryReserved = 2,
                MaxmemoryDelta = 2,
                MaxmemoryPolicy = "allkeys-lru",
            },
        });
    
        var example_secondary = new Azure.Core.ResourceGroup("example-secondary", new()
        {
            Name = "example-resources-secondary",
            Location = "West US",
        });
    
        var example_secondaryCache = new Azure.Redis.Cache("example-secondary", new()
        {
            Name = "example-cache2",
            Location = example_secondary.Location,
            ResourceGroupName = example_secondary.Name,
            Capacity = 1,
            Family = "P",
            SkuName = "Premium",
            EnableNonSslPort = false,
            RedisConfiguration = new Azure.Redis.Inputs.CacheRedisConfigurationArgs
            {
                MaxmemoryReserved = 2,
                MaxmemoryDelta = 2,
                MaxmemoryPolicy = "allkeys-lru",
            },
        });
    
        var example_link = new Azure.Redis.LinkedServer("example-link", new()
        {
            TargetRedisCacheName = example_primaryCache.Name,
            ResourceGroupName = example_primaryCache.ResourceGroupName,
            LinkedRedisCacheId = example_secondaryCache.Id,
            LinkedRedisCacheLocation = example_secondaryCache.Location,
            ServerRole = "Secondary",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.redis.Cache;
    import com.pulumi.azure.redis.CacheArgs;
    import com.pulumi.azure.redis.inputs.CacheRedisConfigurationArgs;
    import com.pulumi.azure.redis.LinkedServer;
    import com.pulumi.azure.redis.LinkedServerArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example_primary = new ResourceGroup("example-primary", ResourceGroupArgs.builder()
                .name("example-resources-primary")
                .location("East US")
                .build());
    
            var example_primaryCache = new Cache("example-primaryCache", CacheArgs.builder()
                .name("example-cache1")
                .location(example_primary.location())
                .resourceGroupName(example_primary.name())
                .capacity(1)
                .family("P")
                .skuName("Premium")
                .enableNonSslPort(false)
                .redisConfiguration(CacheRedisConfigurationArgs.builder()
                    .maxmemoryReserved(2)
                    .maxmemoryDelta(2)
                    .maxmemoryPolicy("allkeys-lru")
                    .build())
                .build());
    
            var example_secondary = new ResourceGroup("example-secondary", ResourceGroupArgs.builder()
                .name("example-resources-secondary")
                .location("West US")
                .build());
    
            var example_secondaryCache = new Cache("example-secondaryCache", CacheArgs.builder()
                .name("example-cache2")
                .location(example_secondary.location())
                .resourceGroupName(example_secondary.name())
                .capacity(1)
                .family("P")
                .skuName("Premium")
                .enableNonSslPort(false)
                .redisConfiguration(CacheRedisConfigurationArgs.builder()
                    .maxmemoryReserved(2)
                    .maxmemoryDelta(2)
                    .maxmemoryPolicy("allkeys-lru")
                    .build())
                .build());
    
            var example_link = new LinkedServer("example-link", LinkedServerArgs.builder()
                .targetRedisCacheName(example_primaryCache.name())
                .resourceGroupName(example_primaryCache.resourceGroupName())
                .linkedRedisCacheId(example_secondaryCache.id())
                .linkedRedisCacheLocation(example_secondaryCache.location())
                .serverRole("Secondary")
                .build());
    
        }
    }
    
    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
    

    Create LinkedServer Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LinkedServer(name: string, args: LinkedServerArgs, opts?: CustomResourceOptions);
    @overload
    def LinkedServer(resource_name: str,
                     args: LinkedServerArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def LinkedServer(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     linked_redis_cache_id: Optional[str] = None,
                     linked_redis_cache_location: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     server_role: Optional[str] = None,
                     target_redis_cache_name: Optional[str] = None)
    func NewLinkedServer(ctx *Context, name string, args LinkedServerArgs, opts ...ResourceOption) (*LinkedServer, error)
    public LinkedServer(string name, LinkedServerArgs args, CustomResourceOptions? opts = null)
    public LinkedServer(String name, LinkedServerArgs args)
    public LinkedServer(String name, LinkedServerArgs args, CustomResourceOptions options)
    
    type: azure:redis:LinkedServer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LinkedServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LinkedServerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LinkedServerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LinkedServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LinkedServerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var linkedServerResource = new Azure.Redis.LinkedServer("linkedServerResource", new()
    {
        LinkedRedisCacheId = "string",
        LinkedRedisCacheLocation = "string",
        ResourceGroupName = "string",
        ServerRole = "string",
        TargetRedisCacheName = "string",
    });
    
    example, err := redis.NewLinkedServer(ctx, "linkedServerResource", &redis.LinkedServerArgs{
    	LinkedRedisCacheId:       pulumi.String("string"),
    	LinkedRedisCacheLocation: pulumi.String("string"),
    	ResourceGroupName:        pulumi.String("string"),
    	ServerRole:               pulumi.String("string"),
    	TargetRedisCacheName:     pulumi.String("string"),
    })
    
    var linkedServerResource = new LinkedServer("linkedServerResource", LinkedServerArgs.builder()
        .linkedRedisCacheId("string")
        .linkedRedisCacheLocation("string")
        .resourceGroupName("string")
        .serverRole("string")
        .targetRedisCacheName("string")
        .build());
    
    linked_server_resource = azure.redis.LinkedServer("linkedServerResource",
        linked_redis_cache_id="string",
        linked_redis_cache_location="string",
        resource_group_name="string",
        server_role="string",
        target_redis_cache_name="string")
    
    const linkedServerResource = new azure.redis.LinkedServer("linkedServerResource", {
        linkedRedisCacheId: "string",
        linkedRedisCacheLocation: "string",
        resourceGroupName: "string",
        serverRole: "string",
        targetRedisCacheName: "string",
    });
    
    type: azure:redis:LinkedServer
    properties:
        linkedRedisCacheId: string
        linkedRedisCacheLocation: string
        resourceGroupName: string
        serverRole: string
        targetRedisCacheName: string
    

    LinkedServer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LinkedServer resource accepts the following input properties:

    LinkedRedisCacheId string
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    LinkedRedisCacheLocation string
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    ResourceGroupName string
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    ServerRole string
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    TargetRedisCacheName string
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    LinkedRedisCacheId string
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    LinkedRedisCacheLocation string
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    ResourceGroupName string
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    ServerRole string
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    TargetRedisCacheName string
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    linkedRedisCacheId String
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    linkedRedisCacheLocation String
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    resourceGroupName String
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    serverRole String
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    targetRedisCacheName String
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    linkedRedisCacheId string
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    linkedRedisCacheLocation string
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    resourceGroupName string
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    serverRole string
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    targetRedisCacheName string
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    linked_redis_cache_id str
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    linked_redis_cache_location str
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    resource_group_name str
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    server_role str
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    target_redis_cache_name str
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    linkedRedisCacheId String
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    linkedRedisCacheLocation String
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    resourceGroupName String
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    serverRole String
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    targetRedisCacheName String
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LinkedServer resource produces the following output properties:

    GeoReplicatedPrimaryHostName string
    The geo-replicated primary hostname for this linked server.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the linked server.
    GeoReplicatedPrimaryHostName string
    The geo-replicated primary hostname for this linked server.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the linked server.
    geoReplicatedPrimaryHostName String
    The geo-replicated primary hostname for this linked server.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the linked server.
    geoReplicatedPrimaryHostName string
    The geo-replicated primary hostname for this linked server.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the linked server.
    geo_replicated_primary_host_name str
    The geo-replicated primary hostname for this linked server.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the linked server.
    geoReplicatedPrimaryHostName String
    The geo-replicated primary hostname for this linked server.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the linked server.

    Look up Existing LinkedServer Resource

    Get an existing LinkedServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LinkedServerState, opts?: CustomResourceOptions): LinkedServer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            geo_replicated_primary_host_name: Optional[str] = None,
            linked_redis_cache_id: Optional[str] = None,
            linked_redis_cache_location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            server_role: Optional[str] = None,
            target_redis_cache_name: Optional[str] = None) -> LinkedServer
    func GetLinkedServer(ctx *Context, name string, id IDInput, state *LinkedServerState, opts ...ResourceOption) (*LinkedServer, error)
    public static LinkedServer Get(string name, Input<string> id, LinkedServerState? state, CustomResourceOptions? opts = null)
    public static LinkedServer get(String name, Output<String> id, LinkedServerState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    GeoReplicatedPrimaryHostName string
    The geo-replicated primary hostname for this linked server.
    LinkedRedisCacheId string
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    LinkedRedisCacheLocation string
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    Name string
    The name of the linked server.
    ResourceGroupName string
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    ServerRole string
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    TargetRedisCacheName string
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    GeoReplicatedPrimaryHostName string
    The geo-replicated primary hostname for this linked server.
    LinkedRedisCacheId string
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    LinkedRedisCacheLocation string
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    Name string
    The name of the linked server.
    ResourceGroupName string
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    ServerRole string
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    TargetRedisCacheName string
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    geoReplicatedPrimaryHostName String
    The geo-replicated primary hostname for this linked server.
    linkedRedisCacheId String
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    linkedRedisCacheLocation String
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    name String
    The name of the linked server.
    resourceGroupName String
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    serverRole String
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    targetRedisCacheName String
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    geoReplicatedPrimaryHostName string
    The geo-replicated primary hostname for this linked server.
    linkedRedisCacheId string
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    linkedRedisCacheLocation string
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    name string
    The name of the linked server.
    resourceGroupName string
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    serverRole string
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    targetRedisCacheName string
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    geo_replicated_primary_host_name str
    The geo-replicated primary hostname for this linked server.
    linked_redis_cache_id str
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    linked_redis_cache_location str
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    name str
    The name of the linked server.
    resource_group_name str
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    server_role str
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    target_redis_cache_name str
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)
    geoReplicatedPrimaryHostName String
    The geo-replicated primary hostname for this linked server.
    linkedRedisCacheId String
    The ID of the linked Redis cache. Changing this forces a new Redis to be created.
    linkedRedisCacheLocation String
    The location of the linked Redis cache. Changing this forces a new Redis to be created.
    name String
    The name of the linked server.
    resourceGroupName String
    The name of the Resource Group where the Redis caches exists. Changing this forces a new Redis to be created.
    serverRole String
    The role of the linked Redis cache (eg "Secondary"). Changing this forces a new Redis to be created. Possible values are Primary and Secondary.
    targetRedisCacheName String
    The name of Redis cache to link with. Changing this forces a new Redis to be created. (eg The primary role)

    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
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi