Microsoft.NotificationHubs namespaces template reference

Template format

To create a Microsoft.NotificationHubs/namespaces resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.NotificationHubs/namespaces",
  "apiVersion": "2017-04-01",
  "location": "string",
  "tags": {},
  "sku": {
    "name": "string",
    "tier": "string",
    "size": "string",
    "family": "string",
    "capacity": "integer"
  "properties": {
    "name": "string",
    "region": "string",
    "serviceBusEndpoint": "string",
    "subscriptionId": "string",
    "scaleUnit": "string",
    "enabled": "boolean",
    "critical": "boolean",
    "dataCenter": "string",
    "namespaceType": "string"
  "resources": []

Property values

The following tables describe the values you need to set in the schema.

Microsoft.NotificationHubs/namespaces object

Name Type Required Value
name string Yes The namespace name.
type enum Yes Microsoft.NotificationHubs/namespaces
apiVersion enum Yes 2017-04-01
location string No Resource location
tags object No Resource tags
sku object No The sku of the created namespace - Sku object
properties object Yes Properties of the Namespace. - NamespaceProperties object
resources array No notificationHubs AuthorizationRules

Sku object

Name Type Required Value
name enum Yes Name of the notification hub sku. - Free, Basic, Standard
tier string No The tier of particular sku
size string No The Sku size
family string No The Sku Family
capacity integer No The capacity of the resource

NamespaceProperties object

Name Type Required Value
name string No The name of the namespace.
region string No Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe
serviceBusEndpoint string No Endpoint you can use to perform NotificationHub operations.
subscriptionId string No The Id of the Azure subscription associated with the namespace.
scaleUnit string No ScaleUnit where the namespace gets created
enabled boolean No Whether or not the namespace is currently enabled.
critical boolean No Whether or not the namespace is set as Critical.
dataCenter string No Data center for the namespace
namespaceType enum No The namespace type. - Messaging or NotificationHub

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Provision a Mobile App with a SQL Database

Deploy to Azure
This template provisions a Mobile App, SQL Database, and Notification Hub. It configures a connection string in the mobile app for the database and notification hub.
Create Azure Notification Hub

Deploy to Azure
Creates an Azure Notification Hub, Template originally authored by John Downs.