Skip to content

Commit 704d78d

Browse files
koderjokerKanchan Joshi
andauthored
Clean up powershell docs (#25425)
* Change pattern for access policy * Remove strings --------- Co-authored-by: Kanchan Joshi <[email protected]>
1 parent 72aad95 commit 704d78d

File tree

4 files changed

+21
-23
lines changed

4 files changed

+21
-23
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Get-AzRedisCacheKey -ResourceGroupName "MyResourceGroup" -Name "MyCacheKey"
2929
```
3030

3131
```output
32-
PrimaryKey : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
33-
SecondaryKey : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
32+
PrimaryKey : ******
33+
SecondaryKey : ******
3434
```
3535

3636
This command gets the access keys named MyCacheKey.

src/RedisCache/RedisCache/help/Import-AzRedisCache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The **Import-AzRedisCache** cmdlet imports data from blobs into Azure Redis Cach
2626

2727
### Example 1: Import data
2828
```powershell
29-
Import-AzRedisCache -ResourceGroupName "ResourceGroup13" -Name "RedisCache06" -Files @("https://mystorageaccount.blob.core.windows.net/container22/blobname?sv=2015-04-05&sr=b&sig=caIwutG2uDa0NZ8mjdNJdgOY8%2F8mhwRuGNdICU%2B0pI4%3D&st=2016-05-27T00%3A00%3A00Z&se=2016-05-28T00%3A00%3A00Z&sp=rwd") -Force
29+
Import-AzRedisCache -ResourceGroupName "ResourceGroup13" -Name "RedisCache06" -Files @("https://mystorageaccount.blob.core.windows.net/container22/blobname") -Force
3030
```
3131

3232
This command imports data from the blob that is specified by the SAS URL into Azure Redis Cache.

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ New-AzRedisCache -ResourceGroupName "MyGroup" -Name "MyCache" -Location "North C
3333
```
3434

3535
```output
36-
PrimaryKey : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
37-
SecondaryKey : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
36+
PrimaryKey : ******
37+
SecondaryKey : ******
3838
ResourceGroupName : MyGroup
3939
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/mygroup/providers/Microsoft.Cache/Redis/mycache
4040
Location : North Central US
@@ -61,8 +61,8 @@ New-AzRedisCache -ResourceGroupName "MyGroup" -Name "MyCache" -Location "North C
6161
```
6262

6363
```output
64-
PrimaryKey : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
65-
SecondaryKey : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
64+
PrimaryKey : ******
65+
SecondaryKey : ******
6666
ResourceGroupName : MyGroup
6767
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/mygroup/providers/Microsoft.Cache/Redis/MyCache
6868
Location : North Central US
@@ -90,8 +90,8 @@ New-AzRedisCache -ResourceGroupName "MyGroup" -Name "MyCache" -Location "Central
9090
```
9191

9292
```output
93-
PrimaryKey : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
94-
SecondaryKey : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
93+
PrimaryKey : ******
94+
SecondaryKey : ******
9595
ResourceGroupName : MyGroup
9696
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/mygroup/providers/Microsoft.Cache/Redis/MyCache
9797
Location : Central US
@@ -126,8 +126,8 @@ New-AzRedisCache -ResourceGroupName "MyGroup" -Name "MyCache" -Location "Central
126126
```
127127

128128
```output
129-
PrimaryKey : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
130-
SecondaryKey : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
129+
PrimaryKey : ******
130+
SecondaryKey : ******
131131
ResourceGroupName : MyGroup
132132
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/mygroup/providers/Microsoft.Cache/Redis/MyCache
133133
Location : Central US
@@ -171,12 +171,12 @@ For RDB backup enable
171171

172172

173173
```powershell
174-
New-AzRedisCache -ResourceGroupName "MyGroup" -Name "MyCache" -Location "Central US" -Size P1 -Sku "Premium" -RedisConfiguration @{"rdb-backup-enabled" = "true"; "rdb-storage-connection-string" = "DefaultEndpointsProtocol=https;AccountName=mystorageaccount;AccountKey=pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=;EndpointSuffix=mySuffix"; "rdb-backup-frequency" = "30"}
174+
New-AzRedisCache -ResourceGroupName "MyGroup" -Name "MyCache" -Location "Central US" -Size P1 -Sku "Premium" -RedisConfiguration @{"rdb-backup-enabled" = "true"; "rdb-storage-connection-string" = "DefaultEndpointsProtocol=https;AccountName=mystorageaccount;AccountKey=******;EndpointSuffix=mySuffix"; "rdb-backup-frequency" = "30"}
175175
```
176176

177177
```output
178-
PrimaryKey : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
179-
SecondaryKey : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
178+
PrimaryKey : ******
179+
SecondaryKey : ******
180180
ResourceGroupName : MyGroup
181181
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/mygroup/providers/Microsoft.Cache/Redis/MyCache
182182
Location : Central US
@@ -204,12 +204,12 @@ For AOF back up enabled.
204204
- aof-storage-connection-string-1 (You can optionally configure another storage account. If a second storage account is configured, the writes to the replica cache are written to this second storage account.)
205205

206206
```powershell
207-
New-AzRedisCache -ResourceGroupName "MyGroup" -Name "MyCache" -Location "Central US" -Size P1 -Sku "Premium" -RedisConfiguration @{"aof-backup-enabled" = "true"; "aof-storage-connection-string-0" = "DefaultEndpointsProtocol=https;AccountName=mystorageaccount;AccountKey=pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=;EndpointSuffix=mySuffix"}
207+
New-AzRedisCache -ResourceGroupName "MyGroup" -Name "MyCache" -Location "Central US" -Size P1 -Sku "Premium" -RedisConfiguration @{"aof-backup-enabled" = "true"; "aof-storage-connection-string-0" = "DefaultEndpointsProtocol=https;AccountName=mystorageaccount;AccountKey=******;EndpointSuffix=mySuffix"}
208208
```
209209

210210
```output
211-
PrimaryKey : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
212-
SecondaryKey : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
211+
PrimaryKey : ******
212+
SecondaryKey : ******
213213
ResourceGroupName : MyGroup
214214
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/mygroup/providers/Microsoft.Cache/Redis/MyCache
215215
Location : Central US

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ New-AzRedisCacheKey -ResourceGroupName "ResourceGroup03" -Name "myCache" -KeyTyp
2929
```
3030

3131
```output
32-
PrimaryKey : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
33-
34-
SecondaryKey : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
32+
PrimaryKey : ******
33+
SecondaryKey : ******
3534
```
3635

3736
This command regenerates the primary key of a Redis Cache.
@@ -42,9 +41,8 @@ New-AzRedisCacheKey -ResourceGroupName "ResourceGroup03" -Name "myCache" -KeyTyp
4241
```
4342

4443
```output
45-
PrimaryKey : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
46-
47-
SecondaryKey : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
44+
PrimaryKey : ******
45+
SecondaryKey : ******
4846
```
4947

5048
This command regenerates the secondary key of a Redis Cache.

0 commit comments

Comments
 (0)