Skip to content

Commit 99df761

Browse files
authored
Add new examples to Relay (#12640)
- Add new examples to the following modules: Relay
1 parent 20cf8ea commit 99df761

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

src/Relay/Relay/help/Get-AzRelayAuthorizationRule.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ The **Get-AzRelayAuthorizationRule** cmdlet gets the description of the specifie
3535

3636
## EXAMPLES
3737

38-
### Example 1 - Namespace
39-
```
38+
### Example 1: Namespace
39+
```powershell
4040
PS C:\> Get-AzRelayNamespaceAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -Name AuthoRule1
4141
4242
Rights : {Listen, Send}
@@ -48,8 +48,8 @@ Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Defa
4848

4949
Returns the specified authorization rule description for a specified namespace.
5050

51-
### Example 2 - WcfRelay
52-
```
51+
### Example 2: WcfRelay
52+
```powershell
5353
PS C:\>Get-AzWcfRelayAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -WcfRelay TestWCFRelay1 -Name AuthoRule1
5454
5555
Rights : {Listen, Send}
@@ -61,8 +61,8 @@ Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Defa
6161

6262
Returns the specified authorization rule description for a given WcfRelay.
6363

64-
### Example 3 - HybridConnection
65-
```
64+
### Example 3: HybridConnection
65+
```powershell
6666
PS C:\> Get-AzRelayHybridConnectionAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -HybridConnections TestHybridConnection -Name AuthoRule1
6767
6868
Rights : {Listen, Send}

src/Relay/Relay/help/Get-AzRelayKey.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ The **Get-AzRelayKey** cmdlet returns the primary and secondary connection strin
3535

3636
## EXAMPLES
3737

38-
### Example 1 - Namespace
39-
```
38+
### Example 1: Namespace
39+
```powershell
4040
PS C:\> Get-AzRelayKey -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -Name AuthoRule1
4141
4242
PrimaryConnectionString : Endpoint=sb://testnamespace-relay1.servicebus.windows.net/;SharedAccessKeyName=AuthoRule1;SharedAccessKey=############################################
@@ -46,8 +46,8 @@ SecondaryKey : ############################################
4646
KeyName : AuthoRule1
4747
```
4848

49-
### Example 2 - WcfRelay
50-
```
49+
### Example 2: WcfRelay
50+
```powershell
5151
PS C:\> Get-AzRelayKey -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -WcfRelay TestWCFRelay1 -Name AuthoRule1
5252
5353
PrimaryConnectionString : Endpoint=sb://testnamespace-relay1.servicebus.windows.net/;SharedAccessKeyName=AuthoRule1;SharedAccessKey=############################################;EntityPath=TestWCFRelay1
@@ -57,8 +57,8 @@ SecondaryKey : ############################################
5757
KeyName : AuthoRule1
5858
```
5959

60-
### Example 3 - HybridConnection
61-
```
60+
### Example 3: HybridConnection
61+
```powershell
6262
PS C:\> Get-AzRelayKey -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -HybridConnection TestHybridConnection -Name AuthoRule1
6363
6464
PrimaryConnectionString : Endpoint=sb://testnamespace-relay1.servicebus.windows.net/;SharedAccessKeyName=AuthoRule1;SharedAccessKey=############################################;EntityPath=TestHybridConnection

src/Relay/Relay/help/New-AzRelayAuthorizationRule.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ The **New-AzRelayAuthorizationRule** cmdlet creates a new authorization rule for
3737

3838
## EXAMPLES
3939

40-
### Example 1 - Namespace
41-
```
40+
### Example 1: Namespace
41+
```powershell
4242
PS C:\>New-AzRelayAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -Name AuthoRule1 -Rights "Listen"
4343
4444
Rights : {Listen}
@@ -49,8 +49,8 @@ Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Defa
4949

5050
Creates `AuthoRule1` with **Listen** rights for the namespace `TestNameSpace-Relay1`.
5151

52-
### Example 2 - WcfRelay
53-
```
52+
### Example 2: WcfRelay
53+
```powershell
5454
PS C:\>New-AzRelayAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -WcfRelay TestWCFRelay1 -Name AuthoRule1 -Rights "Listen"
5555
5656
Rights : {Listen}
@@ -61,8 +61,8 @@ Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Defa
6161

6262
Creates authorization rule `AuthoRule1` with **Listen** rights for the WcfRelay `TestWCFRelay1`.
6363

64-
### Example 3 - HybridConnection
65-
```
64+
### Example 3: HybridConnection
65+
```powershell
6666
PS C:\>New-AzRelayAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -HybridConnection TestHybridConnection -Name AuthoRule1 -Rights "Listen"
6767
6868
Rights : {Listen}

0 commit comments

Comments
 (0)