Skip to content

Commit 134b0bd

Browse files
authored
[Redis] Update Get-AzRedisCacheLink and New-AzRedisCacheLink to print additional properties (#20704)
* Update ps1xml file with linked server properties * Update output in help/Get-AzRedisCacheLink.md * Update output in New-AzRedisCacheLink.md * update changelog * update formatting in New-AzRedisCacheLink.md --------- Co-authored-by: Austin Tolani <austintolani@microsoft.com>
1 parent df75309 commit 134b0bd

File tree

4 files changed

+52
-15
lines changed

4 files changed

+52
-15
lines changed

src/RedisCache/RedisCache/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Updated `Get-AzRedisCacheLink` and `New-AzRedisCacheLink` to print `PrimaryHostName`, `GeoReplicatedPrimaryHostName`, `ServerRole`, and `LinkedRedisCacheLocation`.
2122

2223
## Version 1.7.0
2324
* Added optional parameter `PreferredDataArchiveAuthMethod` in `Export-AzRedisCache`

src/RedisCache/RedisCache/RedisCache.format.ps1xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,22 @@
310310
<Label>ProvisioningState</Label>
311311
<PropertyName>ProvisioningState</PropertyName>
312312
</ListItem>
313+
<ListItem>
314+
<Label>LinkedRedisCacheLocation</Label>
315+
<PropertyName>LinkedRedisCacheLocation</PropertyName>
316+
</ListItem>
317+
<ListItem>
318+
<Label>ServerRole</Label>
319+
<PropertyName>ServerRole</PropertyName>
320+
</ListItem>
321+
<ListItem>
322+
<Label>PrimaryHostName</Label>
323+
<PropertyName>PrimaryHostName</PropertyName>
324+
</ListItem>
325+
<ListItem>
326+
<Label>GeoReplicatedPrimaryHostName</Label>
327+
<PropertyName>GeoReplicatedPrimaryHostName</PropertyName>
328+
</ListItem>
313329
</ListItems>
314330
</ListEntry>
315331
</ListEntries>

src/RedisCache/RedisCache/help/Get-AzRedisCacheLink.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ Get-AzRedisCacheLink -Name "mycache1"
4646
```
4747

4848
```output
49-
PrimaryServerName : mycache1
50-
SecondaryServerName : mycache2
51-
ProvisioningState : Succeeded
49+
PrimaryServerName : mycache1
50+
SecondaryServerName : mycache2
51+
ProvisioningState : Succeeded
52+
LinkedRedisCacheLocation : East US
53+
ServerRole : Secondary
54+
PrimaryHostName : mycache1.redis.cache.windows.net
55+
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
5256
```
5357

5458
This command gets all geo-replication links for Redis Cache named mycache1.
@@ -59,9 +63,13 @@ Get-AzRedisCacheLink -PrimaryServerName "mycache1"
5963
```
6064

6165
```output
62-
PrimaryServerName : mycache1
63-
SecondaryServerName : mycache2
64-
ProvisioningState : Succeeded
66+
PrimaryServerName : mycache1
67+
SecondaryServerName : mycache2
68+
ProvisioningState : Succeeded
69+
LinkedRedisCacheLocation : East US
70+
ServerRole : Secondary
71+
PrimaryHostName : mycache1.redis.cache.windows.net
72+
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
6573
```
6674

6775
This command gets geo-replication links where Redis Cache named mycache1 is primary.
@@ -72,9 +80,13 @@ Get-AzRedisCacheLink -SecondaryServerName "mycache2"
7280
```
7381

7482
```output
75-
PrimaryServerName : mycache1
76-
SecondaryServerName : mycache2
77-
ProvisioningState : Succeeded
83+
PrimaryServerName : mycache1
84+
SecondaryServerName : mycache2
85+
ProvisioningState : Succeeded
86+
LinkedRedisCacheLocation : East US
87+
ServerRole : Secondary
88+
PrimaryHostName : mycache1.redis.cache.windows.net
89+
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
7890
```
7991

8092
This command gets geo-replication links where Redis Cache named mycache2 is secondary.
@@ -85,9 +97,13 @@ Get-AzRedisCacheLink -PrimaryServerName "mycache1" -SecondaryServerName "mycache
8597
```
8698

8799
```output
88-
PrimaryServerName : mycache1
89-
SecondaryServerName : mycache2
90-
ProvisioningState : Succeeded
100+
PrimaryServerName : mycache1
101+
SecondaryServerName : mycache2
102+
ProvisioningState : Succeeded
103+
LinkedRedisCacheLocation : East US
104+
ServerRole : Secondary
105+
PrimaryHostName : mycache1.redis.cache.windows.net
106+
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
91107
```
92108

93109
This command gets a single geo-replication links where Redis Cache named mycache1 is primary and Redis Cache named mycache2 is secondary.

src/RedisCache/RedisCache/help/New-AzRedisCacheLink.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ New-AzRedisCacheLink -PrimaryServerName "mycache1" -SecondaryServerName "mycache
2828
```
2929

3030
```output
31-
PrimaryServerName : mycache1
32-
SecondaryServerName : mycache2
33-
ProvisioningState : Creating
31+
PrimaryServerName : mycache1
32+
SecondaryServerName : mycache2
33+
ProvisioningState : Creating
34+
LinkedRedisCacheLocation : East US
35+
ServerRole : Secondary
36+
PrimaryHostName : mycache1.redis.cache.windows.net
37+
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
3438
```
3539

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

0 commit comments

Comments
 (0)