Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Redis] Update Get-AzRedisCacheLink and New-AzRedisCacheLink to print additional properties #20704

Merged
merged 5 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/RedisCache/RedisCache/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
16 changes: 16 additions & 0 deletions src/RedisCache/RedisCache/RedisCache.format.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,22 @@
<Label>ProvisioningState</Label>
<PropertyName>ProvisioningState</PropertyName>
</ListItem>
<ListItem>
<Label>LinkedRedisCacheLocation</Label>
<PropertyName>LinkedRedisCacheLocation</PropertyName>
</ListItem>
<ListItem>
<Label>ServerRole</Label>
<PropertyName>ServerRole</PropertyName>
</ListItem>
<ListItem>
<Label>PrimaryHostName</Label>
<PropertyName>PrimaryHostName</PropertyName>
</ListItem>
<ListItem>
<Label>GeoReplicatedPrimaryHostName</Label>
<PropertyName>GeoReplicatedPrimaryHostName</PropertyName>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
Expand Down
40 changes: 28 additions & 12 deletions src/RedisCache/RedisCache/help/Get-AzRedisCacheLink.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down
10 changes: 7 additions & 3 deletions src/RedisCache/RedisCache/help/New-AzRedisCacheLink.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down