From 5b56a14e89e4f27e7ffbbbc3853ebe02f38e664e Mon Sep 17 00:00:00 2001 From: Maoliang Huang Date: Tue, 11 Aug 2020 09:01:01 -0700 Subject: [PATCH] Add new examples to Relay - Add new examples to the following modules: Relay --- src/Relay/Relay/help/Get-AzRelayAuthorizationRule.md | 12 ++++++------ src/Relay/Relay/help/Get-AzRelayKey.md | 12 ++++++------ src/Relay/Relay/help/New-AzRelayAuthorizationRule.md | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Relay/Relay/help/Get-AzRelayAuthorizationRule.md b/src/Relay/Relay/help/Get-AzRelayAuthorizationRule.md index 797fcad07ac5..f938ca175226 100644 --- a/src/Relay/Relay/help/Get-AzRelayAuthorizationRule.md +++ b/src/Relay/Relay/help/Get-AzRelayAuthorizationRule.md @@ -35,8 +35,8 @@ The **Get-AzRelayAuthorizationRule** cmdlet gets the description of the specifie ## EXAMPLES -### Example 1 - Namespace -``` +### Example 1: Namespace +```powershell PS C:\> Get-AzRelayNamespaceAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -Name AuthoRule1 Rights : {Listen, Send} @@ -48,8 +48,8 @@ Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Defa Returns the specified authorization rule description for a specified namespace. -### Example 2 - WcfRelay -``` +### Example 2: WcfRelay +```powershell PS C:\>Get-AzWcfRelayAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -WcfRelay TestWCFRelay1 -Name AuthoRule1 Rights : {Listen, Send} @@ -61,8 +61,8 @@ Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Defa Returns the specified authorization rule description for a given WcfRelay. -### Example 3 - HybridConnection -``` +### Example 3: HybridConnection +```powershell PS C:\> Get-AzRelayHybridConnectionAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -HybridConnections TestHybridConnection -Name AuthoRule1 Rights : {Listen, Send} diff --git a/src/Relay/Relay/help/Get-AzRelayKey.md b/src/Relay/Relay/help/Get-AzRelayKey.md index a8a7a922af0b..3f377b0ec774 100644 --- a/src/Relay/Relay/help/Get-AzRelayKey.md +++ b/src/Relay/Relay/help/Get-AzRelayKey.md @@ -35,8 +35,8 @@ The **Get-AzRelayKey** cmdlet returns the primary and secondary connection strin ## EXAMPLES -### Example 1 - Namespace -``` +### Example 1: Namespace +```powershell PS C:\> Get-AzRelayKey -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -Name AuthoRule1 PrimaryConnectionString : Endpoint=sb://testnamespace-relay1.servicebus.windows.net/;SharedAccessKeyName=AuthoRule1;SharedAccessKey=############################################ @@ -46,8 +46,8 @@ SecondaryKey : ############################################ KeyName : AuthoRule1 ``` -### Example 2 - WcfRelay -``` +### Example 2: WcfRelay +```powershell PS C:\> Get-AzRelayKey -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -WcfRelay TestWCFRelay1 -Name AuthoRule1 PrimaryConnectionString : Endpoint=sb://testnamespace-relay1.servicebus.windows.net/;SharedAccessKeyName=AuthoRule1;SharedAccessKey=############################################;EntityPath=TestWCFRelay1 @@ -57,8 +57,8 @@ SecondaryKey : ############################################ KeyName : AuthoRule1 ``` -### Example 3 - HybridConnection -``` +### Example 3: HybridConnection +```powershell PS C:\> Get-AzRelayKey -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -HybridConnection TestHybridConnection -Name AuthoRule1 PrimaryConnectionString : Endpoint=sb://testnamespace-relay1.servicebus.windows.net/;SharedAccessKeyName=AuthoRule1;SharedAccessKey=############################################;EntityPath=TestHybridConnection diff --git a/src/Relay/Relay/help/New-AzRelayAuthorizationRule.md b/src/Relay/Relay/help/New-AzRelayAuthorizationRule.md index 9959c2736982..71711e6e12b5 100644 --- a/src/Relay/Relay/help/New-AzRelayAuthorizationRule.md +++ b/src/Relay/Relay/help/New-AzRelayAuthorizationRule.md @@ -37,8 +37,8 @@ The **New-AzRelayAuthorizationRule** cmdlet creates a new authorization rule for ## EXAMPLES -### Example 1 - Namespace -``` +### Example 1: Namespace +```powershell PS C:\>New-AzRelayAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -Name AuthoRule1 -Rights "Listen" Rights : {Listen} @@ -49,8 +49,8 @@ Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Defa Creates `AuthoRule1` with **Listen** rights for the namespace `TestNameSpace-Relay1`. -### Example 2 - WcfRelay -``` +### Example 2: WcfRelay +```powershell PS C:\>New-AzRelayAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -WcfRelay TestWCFRelay1 -Name AuthoRule1 -Rights "Listen" Rights : {Listen} @@ -61,8 +61,8 @@ Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Defa Creates authorization rule `AuthoRule1` with **Listen** rights for the WcfRelay `TestWCFRelay1`. -### Example 3 - HybridConnection -``` +### Example 3: HybridConnection +```powershell PS C:\>New-AzRelayAuthorizationRule -ResourceGroupName Default-ServiceBus-WestUS -Namespace TestNameSpace-Relay1 -HybridConnection TestHybridConnection -Name AuthoRule1 -Rights "Listen" Rights : {Listen}