diff --git a/src/RedisCache/RedisCache/ChangeLog.md b/src/RedisCache/RedisCache/ChangeLog.md index 76a5af22d00b..8012333b09aa 100644 --- a/src/RedisCache/RedisCache/ChangeLog.md +++ b/src/RedisCache/RedisCache/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Updated `Get-AzRedisCacheLink` and `New-AzRedisCacheLink` to print `PrimaryHostName`, `GeoReplicatedPrimaryHostName`, `ServerRole`, and `LinkedRedisCacheLocation`. ## Version 1.7.0 * Added optional parameter `PreferredDataArchiveAuthMethod` in `Export-AzRedisCache` diff --git a/src/RedisCache/RedisCache/RedisCache.format.ps1xml b/src/RedisCache/RedisCache/RedisCache.format.ps1xml index 2c0ad4488f03..ca322e09fbb8 100644 --- a/src/RedisCache/RedisCache/RedisCache.format.ps1xml +++ b/src/RedisCache/RedisCache/RedisCache.format.ps1xml @@ -310,6 +310,22 @@ ProvisioningState + + + LinkedRedisCacheLocation + + + + ServerRole + + + + PrimaryHostName + + + + GeoReplicatedPrimaryHostName + diff --git a/src/RedisCache/RedisCache/help/Get-AzRedisCacheLink.md b/src/RedisCache/RedisCache/help/Get-AzRedisCacheLink.md index 05477505900c..d995309e9ef6 100644 --- a/src/RedisCache/RedisCache/help/Get-AzRedisCacheLink.md +++ b/src/RedisCache/RedisCache/help/Get-AzRedisCacheLink.md @@ -46,9 +46,13 @@ Get-AzRedisCacheLink -Name "mycache1" ``` ```output - PrimaryServerName : mycache1 - SecondaryServerName : mycache2 - ProvisioningState : Succeeded + PrimaryServerName : mycache1 + SecondaryServerName : mycache2 + ProvisioningState : Succeeded + LinkedRedisCacheLocation : East US + ServerRole : Secondary + PrimaryHostName : mycache1.redis.cache.windows.net + GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net ``` This command gets all geo-replication links for Redis Cache named mycache1. @@ -59,9 +63,13 @@ Get-AzRedisCacheLink -PrimaryServerName "mycache1" ``` ```output - PrimaryServerName : mycache1 - SecondaryServerName : mycache2 - ProvisioningState : Succeeded + PrimaryServerName : mycache1 + SecondaryServerName : mycache2 + ProvisioningState : Succeeded + LinkedRedisCacheLocation : East US + ServerRole : Secondary + PrimaryHostName : mycache1.redis.cache.windows.net + GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net ``` This command gets geo-replication links where Redis Cache named mycache1 is primary. @@ -72,9 +80,13 @@ Get-AzRedisCacheLink -SecondaryServerName "mycache2" ``` ```output - PrimaryServerName : mycache1 - SecondaryServerName : mycache2 - ProvisioningState : Succeeded + PrimaryServerName : mycache1 + SecondaryServerName : mycache2 + ProvisioningState : Succeeded + LinkedRedisCacheLocation : East US + ServerRole : Secondary + PrimaryHostName : mycache1.redis.cache.windows.net + GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net ``` This command gets geo-replication links where Redis Cache named mycache2 is secondary. @@ -85,9 +97,13 @@ Get-AzRedisCacheLink -PrimaryServerName "mycache1" -SecondaryServerName "mycache ``` ```output - PrimaryServerName : mycache1 - SecondaryServerName : mycache2 - ProvisioningState : Succeeded + PrimaryServerName : mycache1 + SecondaryServerName : mycache2 + ProvisioningState : Succeeded + LinkedRedisCacheLocation : East US + ServerRole : Secondary + PrimaryHostName : mycache1.redis.cache.windows.net + GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net ``` This command gets a single geo-replication links where Redis Cache named mycache1 is primary and Redis Cache named mycache2 is secondary. diff --git a/src/RedisCache/RedisCache/help/New-AzRedisCacheLink.md b/src/RedisCache/RedisCache/help/New-AzRedisCacheLink.md index 0bbff5c16115..15d47931c194 100644 --- a/src/RedisCache/RedisCache/help/New-AzRedisCacheLink.md +++ b/src/RedisCache/RedisCache/help/New-AzRedisCacheLink.md @@ -28,9 +28,13 @@ New-AzRedisCacheLink -PrimaryServerName "mycache1" -SecondaryServerName "mycache ``` ```output - PrimaryServerName : mycache1 - SecondaryServerName : mycache2 - ProvisioningState : Creating + PrimaryServerName : mycache1 + SecondaryServerName : mycache2 + ProvisioningState : Creating + LinkedRedisCacheLocation : East US + ServerRole : Secondary + PrimaryHostName : mycache1.redis.cache.windows.net + GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net ``` This command creates geo-replication link between Redis Cache mycache1 and mycache2.