Skip to content

Commit 81e4752

Browse files
aladdindockceiw
andauthored
Add new examples to NotificationHubs (#13295)
- Add new examples to the following modules: NotificationHubs Co-authored-by: Maoliang Huang <[email protected]>
1 parent 35f2795 commit 81e4752

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

src/NotificationHubs/NotificationHubs/help/Get-AzNotificationHub.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,21 @@ Other cmdlets, such as Get-AzNotificationHubAuthorizationRules, Get-AzNotificati
3030
## EXAMPLES
3131

3232
### Example 1: Get information for all notification hubs in a specific namespace
33-
```
33+
```powershell
3434
PS C:\>Get-AzNotificationHub -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup"
3535
```
3636

3737
This command gets information for all the notification hubs in the namespace named ContosoNamespace that have been assigned to the resource group ContosoNotificationsGroup.
3838

39+
### Example 2
40+
41+
Gets information about your notification hubs. (autogenerated)
42+
43+
<!-- Aladdin Generated Example -->
44+
```powershell
45+
Get-AzNotificationHub -Namespace 'ContosoNamespace' -NotificationHub 'ContosoInternalHub' -ResourceGroup 'ContosoNotificationsGroup'
46+
```
47+
3948
## PARAMETERS
4049

4150
### -DefaultProfile

src/NotificationHubs/NotificationHubs/help/Set-AzNotificationHub.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,23 @@ When used in conjunction with the **Set-AzNotificationHub** cmdlet, the precedin
4343
## EXAMPLES
4444

4545
### Example 1: Modify the property values for a notification hub
46-
```
46+
```powershell
4747
PS C:\>Set-AzNotificationHub -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup" -InputFile "C:\Configuration\Hubs.json"
4848
```
4949

5050
This command modifies the property values for a notification hub found in the ContosoNamespace namespace and assigned it to the resource group ContosoNotificationsGroup.
5151
The property values, as well as the name of the hub to be modified, are not specified in the command.
5252
Instead, that information is contained in the input file C:\Configuration\Hubs.json.
5353

54+
### Example 2
55+
56+
Sets property values for a notification hub. (autogenerated)
57+
58+
<!-- Aladdin Generated Example -->
59+
```powershell
60+
Set-AzNotificationHub -Namespace 'ContosoNamespace' -NotificationHubObj <NotificationHubAttributes> -ResourceGroup 'ContosoNotificationsGroup'
61+
```
62+
5463
## PARAMETERS
5564

5665
### -DefaultProfile

0 commit comments

Comments
 (0)