From 37f1f14f74b2d69fab0f0cd25b42abd3a0849d76 Mon Sep 17 00:00:00 2001 From: Maoliang Huang Date: Wed, 21 Oct 2020 13:29:02 -0700 Subject: [PATCH] Add new examples to NotificationHubs - Add new examples to the following modules: NotificationHubs --- .../NotificationHubs/help/Get-AzNotificationHub.md | 11 ++++++++++- .../NotificationHubs/help/Set-AzNotificationHub.md | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/NotificationHubs/NotificationHubs/help/Get-AzNotificationHub.md b/src/NotificationHubs/NotificationHubs/help/Get-AzNotificationHub.md index fc6fc4417bac..ae4e41b85924 100644 --- a/src/NotificationHubs/NotificationHubs/help/Get-AzNotificationHub.md +++ b/src/NotificationHubs/NotificationHubs/help/Get-AzNotificationHub.md @@ -30,12 +30,21 @@ Other cmdlets, such as Get-AzNotificationHubAuthorizationRules, Get-AzNotificati ## EXAMPLES ### Example 1: Get information for all notification hubs in a specific namespace -``` +```powershell PS C:\>Get-AzNotificationHub -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup" ``` This command gets information for all the notification hubs in the namespace named ContosoNamespace that have been assigned to the resource group ContosoNotificationsGroup. +### Example 2 + +Gets information about your notification hubs. (autogenerated) + + +```powershell +Get-AzNotificationHub -Namespace 'ContosoNamespace' -NotificationHub 'ContosoInternalHub' -ResourceGroup 'ContosoNotificationsGroup' +``` + ## PARAMETERS ### -DefaultProfile diff --git a/src/NotificationHubs/NotificationHubs/help/Set-AzNotificationHub.md b/src/NotificationHubs/NotificationHubs/help/Set-AzNotificationHub.md index b8963b5171a8..95cf3332fbe9 100644 --- a/src/NotificationHubs/NotificationHubs/help/Set-AzNotificationHub.md +++ b/src/NotificationHubs/NotificationHubs/help/Set-AzNotificationHub.md @@ -43,7 +43,7 @@ When used in conjunction with the **Set-AzNotificationHub** cmdlet, the precedin ## EXAMPLES ### Example 1: Modify the property values for a notification hub -``` +```powershell PS C:\>Set-AzNotificationHub -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup" -InputFile "C:\Configuration\Hubs.json" ``` @@ -51,6 +51,15 @@ This command modifies the property values for a notification hub found in the Co The property values, as well as the name of the hub to be modified, are not specified in the command. Instead, that information is contained in the input file C:\Configuration\Hubs.json. +### Example 2 + +Sets property values for a notification hub. (autogenerated) + + +```powershell +Set-AzNotificationHub -Namespace 'ContosoNamespace' -NotificationHubObj -ResourceGroup 'ContosoNotificationsGroup' +``` + ## PARAMETERS ### -DefaultProfile