Skip to content

Commit

Permalink
Add new examples to NotificationHubs (#13295)
Browse files Browse the repository at this point in the history
- Add new examples to the following modules:
		NotificationHubs

Co-authored-by: Maoliang Huang <[email protected]>
  • Loading branch information
aladdindoc and kceiw authored Oct 26, 2020
1 parent 35f2795 commit 81e4752
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- Aladdin Generated Example -->
```powershell
Get-AzNotificationHub -Namespace 'ContosoNamespace' -NotificationHub 'ContosoInternalHub' -ResourceGroup 'ContosoNotificationsGroup'
```

## PARAMETERS

### -DefaultProfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,23 @@ 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"
```

This command modifies the property values for a notification hub found in the ContosoNamespace namespace and assigned it to the resource group ContosoNotificationsGroup.
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)

<!-- Aladdin Generated Example -->
```powershell
Set-AzNotificationHub -Namespace 'ContosoNamespace' -NotificationHubObj <NotificationHubAttributes> -ResourceGroup 'ContosoNotificationsGroup'
```

## PARAMETERS

### -DefaultProfile
Expand Down

0 comments on commit 81e4752

Please sign in to comment.