Skip to content

Commit 1573b79

Browse files
authored
Fixed Az.NotificationHubs examples (Azure#16739)
1 parent 48f75b1 commit 1573b79

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

src/NotificationHubs/NotificationHubs/help/New-AzNotificationHubKey.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,19 @@ New-AzNotificationHubKey cmdlet regenerates the Primary Key/Secondary Key for th
2525
## EXAMPLES
2626

2727
### Example 1
28-
```
29-
PS C:\> {{ Add example code here }}
28+
```powershell
29+
New-AzNotificationHubKey -ResourceGroup "ContosoNotificationsGroup" -Namespace "ContosoNamespace" -NotificationHub "ContosoInternalHub" -AuthorizationRule "DefaultListenSharedAccessSignature" -PolicyKey "PrimaryKey"
3030
```
3131

32-
{{ Add example description here }}
32+
```Output
33+
PrimaryConnectionString : Endpoint=sb://contosonamespace.servicebus.windows.net/;SharedAccessKeyName=DefaultListenShare
34+
dAccessSignature;SharedAccessKey=VUhKcGJXRnllVU52Ym01bFkzUnBiMjVUZEhKcGJtYz0=
35+
SecondaryConnectionString : Endpoint=sb://contosonamespace.servicebus.windows.net/;SharedAccessKeyName=DefaultListenShare
36+
dAccessSignature;SharedAccessKey=VTJWamIyNWtZWEo1UTI5dWJtVmpkR2x2YmxOMGNtbHV=
37+
PrimaryKey : VUhKcGJXRnllVU52Ym01bFkzUnBiMjVUZEhKcGJtYz0=
38+
SecondaryKey : VTJWamIyNWtZWEo1UTI5dWJtVmpkR2x2YmxOMGNtbHV=
39+
KeyName : DefaultListenSharedAccessSignature
40+
```
3341

3442
## PARAMETERS
3543

src/NotificationHubs/NotificationHubs/help/New-AzNotificationHubsNamespaceKey.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,24 @@ New-AzNotificationHubsNamespaceKey [-ResourceGroup] <String> [-Namespace] <Strin
2020
```
2121

2222
## DESCRIPTION
23-
New-AzNotificationHubNamespaceKey cmdlet regenerates the Primary Key/Secondary Key for the Namespace Authorization Rule.
23+
New-AzNotificationHubsNamespaceKey cmdlet regenerates the Primary Key/Secondary Key for the Namespace Authorization Rule.
2424

2525
## EXAMPLES
2626

2727
### Example 1
28-
```
29-
PS C:\> {{ Add example code here }}
28+
```powershell
29+
New-AzNotificationHubsNamespaceKey -ResourceGroup "ContosoNotificationsGroup" -Namespace "ContosoNamespace" -AuthorizationRule "RootManageSharedAccessKey" -PolicyKey "PrimaryKey"
3030
```
3131

32-
{{ Add example description here }}
32+
```Output
33+
PrimaryConnectionString : Endpoint=sb://contosonamespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAc
34+
cessKey;SharedAccessKey=VUhKcGJXRnllVU52Ym01bFkzUnBiMjVUZEhKcGJtYz0=
35+
SecondaryConnectionString : Endpoint=sb://contosonamespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAc
36+
cessKey;SharedAccessKey=VTJWamIyNWtZWEo1UTI5dWJtVmpkR2x2YmxOMGNtbHV=
37+
PrimaryKey : VUhKcGJXRnllVU52Ym01bFkzUnBiMjVUZEhKcGJtYz0=
38+
SecondaryKey : VTJWamIyNWtZWEo1UTI5dWJtVmpkR2x2YmxOMGNtbHV=
39+
KeyName : RootManageSharedAccessKey
40+
```
3341

3442
## PARAMETERS
3543

0 commit comments

Comments
 (0)