< Back

New-AzureRmRedisCacheLink

Tue Jan 29, 2019 10:04 pm

NAME New-AzureRmRedisCacheLink



SYNOPSIS

Create a geo replication link between two Redis Caches.





SYNTAX

New-AzureRmRedisCacheLink [-DefaultProfile <IAzureContextContainer>] -PrimaryServerName <String> -SecondaryServerName <String> [-Confirm]

[-WhatIf] [<CommonParameters>]





DESCRIPTION

Create a geo replication link between two Redis Caches.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PrimaryServerName <String>

Name of primary redis cache in link.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-SecondaryServerName <String>

Name of secondary redis cache in link.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

Microsoft.Azure.Commands.RedisCache.Models.PSRedisLinkedServer







NOTES









Example 1: Create a link between two caches



PS C:\\>New-AzureRmRedisCacheLink -PrimaryServerName "mycache1" -SecondaryServerName "mycache2"



PrimaryServerName : mycache1

SecondaryServerName : mycache2

ProvisioningState : Creating



This command creates geo-replication link between Redis Cache mycache1 and mycache2.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... scachelink

Get-AzureRmRedisCacheLink

Remove-AzureRmRedisCacheLink

Get-AzureRmRedisCache

New-AzureRmRedisCache

Remove-AzureRmRedisCache

Reset-AzureRmRedisCache