Get-AzRedisCacheLink
Redis Cache에 대한 지역 복제본(replica)tion 링크를 가져옵니다.
Syntax
Get-AzRedisCacheLink
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRedisCacheLink
-PrimaryServerName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRedisCacheLink
-PrimaryServerName <String>
-SecondaryServerName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRedisCacheLink
-SecondaryServerName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
지리적 복제본(replica) 연결 세부 정보를 가져오는 네 가지 방법이 있습니다. 매개 변수 이름 또는 PrimaryServerName 및/또는 SecondaryServerName을 제공합니다. 이름이 지정되면 캐시가 있는 모든 링크가 반환됩니다. PrimaryServerName만 지정되면 캐시가 기본인 모든 링크가 반환됩니다. SecondaryServerName만 지정되면 캐시가 보조인 모든 링크가 반환됩니다. PrimaryServerName 및 SecondaryServerName이 둘 다 제공되면 올바른 역할이 있는 특정 링크가 반환됩니다.
예제
예제 1: 매개 변수 집합 AllLinksForCache 사용
Get-AzRedisCacheLink -Name "mycache1"
PrimaryServerName : mycache1
SecondaryServerName : mycache2
ProvisioningState : Succeeded
LinkedRedisCacheLocation : East US
ServerRole : Secondary
PrimaryHostName : mycache1.redis.cache.windows.net
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
이 명령은 mycache1이라는 Redis Cache에 대한 모든 지역 복제본(replica)tion 링크를 가져옵니다.
예제 2: 매개 변수 집합 AllLinksForPrimaryCache 사용
Get-AzRedisCacheLink -PrimaryServerName "mycache1"
PrimaryServerName : mycache1
SecondaryServerName : mycache2
ProvisioningState : Succeeded
LinkedRedisCacheLocation : East US
ServerRole : Secondary
PrimaryHostName : mycache1.redis.cache.windows.net
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
이 명령은 mycache1이라는 Redis Cache가 기본인 지역 복제본(replica) 연결을 가져옵니다.
예제 3: 매개 변수 집합 AllLinksForSecondaryCache 사용
Get-AzRedisCacheLink -SecondaryServerName "mycache2"
PrimaryServerName : mycache1
SecondaryServerName : mycache2
ProvisioningState : Succeeded
LinkedRedisCacheLocation : East US
ServerRole : Secondary
PrimaryHostName : mycache1.redis.cache.windows.net
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
이 명령은 mycache2라는 Redis Cache가 보조인 지역 복제본(replica)tion 링크를 가져옵니다.
예제 4: 매개 변수 집합 SingleLink 사용
Get-AzRedisCacheLink -PrimaryServerName "mycache1" -SecondaryServerName "mycache2"
PrimaryServerName : mycache1
SecondaryServerName : mycache2
ProvisioningState : Succeeded
LinkedRedisCacheLocation : East US
ServerRole : Secondary
PrimaryHostName : mycache1.redis.cache.windows.net
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
이 명령은 mycache1이라는 Redis Cache가 기본이고 mycache2라는 Redis Cache가 보조인 단일 지역 복제본(replica)tion 링크를 가져옵니다.
매개 변수
-DefaultProfile
Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
redis Cache의 이름입니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PrimaryServerName
링크의 기본 redis 캐시 이름입니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SecondaryServerName
링크에 있는 보조 redis Cache의 이름입니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
입력
출력
관련 링크
Azure PowerShell
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기