Skip to content

Commit b9d8e0f

Browse files
author
Delora Bradish
committed
simplified sentence structure
1 parent e0c82a2 commit b9d8e0f

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

articles/notification-hubs/create-notification-hub-azure-cli.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,27 @@ Notification Hubs requires version 2.0.67 or later of the Azure CLI. Run `az --v
3030

3131
## Prepare your environment
3232

33-
1. Sign in using the [az login](/cli/azure/reference-index#az-login) command if you're using a local install of the CLI.
33+
1. Sign in.
34+
35+
Sign in using the [az login](/cli/azure/reference-index#az-login) command if you're using a local install of the CLI.
3436

3537
```azurecli-interactive
3638
az login
3739
```
3840
3941
Follow the steps displayed in your terminal to complete the authentication process.
4042
41-
2. To run the Azure CLI commands for notification hubs, install the Azure CLI [extension for Notification Hubs](/cli/azure/ext/notification-hub/notification-hub).
43+
2. Install the Azure CLI extension.
44+
45+
To run the Azure CLI commands for notification hubs, install the Azure CLI [extension for Notification Hubs](/cli/azure/ext/notification-hub/notification-hub).
4246
4347
```azurecli-interactive
4448
az extension add --name notification-hub
4549
```
4650

47-
3. Azure notification hubs, like all Azure resources, must be deployed into a resource group. Resource groups allow you to organize and manage related Azure resources.
51+
3. Create a resource group.
52+
53+
Azure notification hubs, like all Azure resources, must be deployed into a resource group. Resource groups allow you to organize and manage related Azure resources.
4854

4955
For this quickstart, create a resource group named *spnhubrg* in the *eastus* location with the following [az group create](/cli/azure/group#az-group-create) command:
5056

@@ -55,50 +61,54 @@ Notification Hubs requires version 2.0.67 or later of the Azure CLI. Run `az --v
5561
## Create a namespace
5662

5763
1. Create a notification hub namespace.
58-
64+
5965
A namespace contains one or more hubs, and the name must be unique across all Azure subscriptions. To check the availability of the given service namespace, use the [az notification-hub namespace check-availability](/cli/azure/ext/notification-hub/notification-hub/namespace#ext-notification-hub-az-notification-hub-namespace-check-availability) command. Run the [az notification-hub namespace create](/cli/azure/ext/notification-hub/notification-hub/namespace#ext-notification-hub-az-notification-hub-namespace-create) command to create a namespace.
6066

6167
```azurecli-interactive
6268
#check availability
6369
az notification-hub namespace check-availability --name spnhubns
64-
70+
6571
#create the namespace
6672
az notification-hub namespace create --resource-group spnhubrg --name spnhubns --location eastus --sku Free
6773
```
6874

69-
2. List keys and connection strings for a namespace access policy
75+
2. List keys and connection strings for a namespace access policy.
7076

71-
An access policy is automatically created for a new namespace. There are two sets of keys and connection strings for each access policy. To list the keys and connection strings for the namespace, run the [az notification-hub namespace authorization-rule list-keys](/cli/azure/ext/notification-hub/notification-hub/authorization-rule#ext-notification-hub-az-notification-hub-authorization-rule-list-keys) command.
77+
An access policy named **RootManageSharedAccessKey** is automatically created for a new namespace. Every access policy has two sets of keys and connection strings. To list the keys and connection strings for the namespace, run the [az notification-hub namespace authorization-rule list-keys](/cli/azure/ext/notification-hub/notification-hub/authorization-rule#ext-notification-hub-az-notification-hub-authorization-rule-list-keys) command.
7278

7379
```azurecli-interactive
7480
az notification-hub namespace authorization-rule list-keys --resource-group spnhubrg --namespace-name spnhubns --name RootManageSharedAccessKey
7581
```
7682

77-
## Create a notification hub
83+
## Create notification hubs
84+
85+
1. Create your first notification hub.
7886

79-
1. A notification hub can now be created in the new namespace. Run the [az notification-hub create](/cli/azure/ext/notification-hub/notification-hub#ext-notification-hub-az-notification-hub-create) command to create a notification hub.
87+
A notification hub can now be created in the new namespace. Run the [az notification-hub create](/cli/azure/ext/notification-hub/notification-hub#ext-notification-hub-az-notification-hub-create) command to create a notification hub.
8088

8189
```azurecli-interactive
8290
az notification-hub create --resource-group spnhubrg --namespace-name spnhubns --name spfcmtutorial1nhub --location eastus --sku Free
8391
```
8492

93+
2. Create a second notification hub.
94+
8595
Multiple notification hubs can be created in a single namespace. To create a second notification hub in the same namespace, run the `az notification-hub create` command again using a different hub name.
8696

8797
```azurecli-interactive
8898
az notification-hub create --resource-group spnhubrg --namespace-name spnhubns --name mysecondnhub --location eastus --sku Free
8999
```
90100

91-
## Work with access policies
101+
## Work with access policies
92102

93-
1. Create a new authorization-rule for a notification hub
103+
1. Create a new authorization-rule for a notification hub.
94104

95105
An access policy is automatically created for each new notification hub. To create and customize your own access policy, use the [az notification-hub authorization-rule create](/cli/azure/ext/notification-hub/notification-hub/authorization-rule#ext-notification-hub-az-notification-hub-authorization-rule-create) command.
96106

97107
```azurecli-interactive
98108
az notification-hub authorization-rule create --resource-group spnhubrg --namespace-name spnhubns --notification-hub-name spfcmtutorial1nhub --name spnhub1key --rights Listen Send
99109
```
100110

101-
2. List access policies for a notification hub
111+
2. List access policies for a notification hub.
102112

103113
To query what access policies exist for a notification hub, use the [az notification-hub authorization-rule list](/cli/azure/ext/notification-hub/notification-hub/authorization-rule#ext-notification-hub-az-notification-hub-authorization-rule-list) command.
104114

0 commit comments

Comments
 (0)