Create an Azure notification hub in the Azure portal

Azure Notification Hubs provide an easy-to-use and scaled-out push engine that allows you to send notifications to any platform (iOS, Android, Windows, Kindle, Baidu, etc.) from any backend (cloud or on-premises). For more information about the service, see What is Azure Notification Hubs?.

In this quickstart, you create a notification hub in the Azure portal. The first section gives you steps to create a Notification Hubs namespace and a hub in that namespace. The second section gives you steps to create a notification hub in an existing Notification Hubs namespace.

Create a namespace and a notification hub

In this section, you create a namespace and a hub in the namespace.

  1. Sign in to the Azure portal.

  2. Select All services on the left menu, and select Notification Hubs in the Mobile section. Select star (*) next to the service name to add it to the FAVORITES section on the left menu. After Notification Hubs is added to FAVORITES, select it on the left menu.

    Azure portal - select Notification Hubs

  3. On the Notification Hubs page, select Add on the toolbar.

    Notification Hubs - Add toolbar button

  4. On the Notification Hub page, do the following steps:

    1. Specify a name for the notification hub.

    2. Specify a name for the namespace. A namespace contains one or more hubs.

    3. Select a location in which you want to create the notification hub.

    4. Select an existing resource group or enter a name for the new resource group.

    5. Select Create.

      Azure portal - set notification hub properties

  5. Select Notifications (Bell icon), and select Go to resource. You can also refresh the list in the Notification Hubs page, and select your notification hub.

    Azure portal - notifications -> Go to resource

  6. Select Access Policies from the list. Note the two connection strings that are available to you. You need them to handle push notifications later.

    Important

    Do NOT use the DefaultFullSharedAccessSignature in your application. This is meant to be used in your back-end only.

    Azure portal - notification hub connection strings

Create a notification hub in an existing namespace

In this section, you create a notification hub in an existing namespace.

  1. Sign in to the Azure portal.

  2. Select All services on the left menu, search for Notification Hub, select star (*) next to Notification Hub Namespaces to add it to the FAVORITES section on the left menu. Select Notification Hub Namespaces.

    Azure portal - select Notification Hub Namespaces

  3. On the Notification Hub Namespaces page, select your namespace from the list.

    Select your namespace from the list

  4. On the Notification Hub Namespace page, select Add Hub on the toolbar.

    Notification Hub Namespaces - Add Hub button

  5. On the New Notification Hub page, enter a name for the notification hub, and select OK.

    New Notification Hub page -> enter a name for your hub

  6. Select Notifications (Bell icon) at the top to see the status of the deployment of the new hub. Select X in the right-corner to close the notification window.

    Deployment notification

  7. Refresh the Notification Hub Namespaces web page to see your new hub in the list.

    Azure portal - notifications -> Go to resource

  8. Select your notification hub to see the home page for your notification hub.

    Azure portal - notifications -> Go to resource

Next steps

In this quickstart, you created a notification hub. To learn how to configure the hub with platform notification system (PNS) settings, see Configure a notification hub with PNS settings.