Bicep resource definition
The namespaces/notificationHubs resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.NotificationHubs/namespaces/notificationHubs resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.NotificationHubs/namespaces/notificationHubs@2014-09-01' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
properties: {
admCredential: {
properties: {
authTokenUrl: 'string'
clientId: 'string'
clientSecret: 'string'
}
}
apnsCredential: {
properties: {
apnsCertificate: 'string'
certificateKey: 'string'
endpoint: 'string'
thumbprint: 'string'
}
}
authorizationRules: [
{
claimType: 'string'
claimValue: 'string'
createdTime: 'string'
keyName: 'string'
modifiedTime: 'string'
primaryKey: 'string'
revision: int
rights: [
'string'
]
secondaryKey: 'string'
}
]
baiduCredential: {
properties: {
baiduApiKey: 'string'
baiduEndPoint: 'string'
baiduSecretKey: 'string'
}
}
gcmCredential: {
properties: {
gcmEndpoint: 'string'
googleApiKey: 'string'
}
}
mpnsCredential: {
properties: {
certificateKey: 'string'
mpnsCertificate: 'string'
thumbprint: 'string'
}
}
name: 'string'
registrationTtl: 'string'
wnsCredential: {
properties: {
packageSid: 'string'
secretKey: 'string'
windowsLiveEndpoint: 'string'
}
}
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.NotificationHubs/namespaces/notificationHubs
Name |
Description |
Value |
location |
Gets or sets NotificationHub data center location. |
string (required) |
name |
The resource name |
string (required) |
parent |
In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.
For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: namespaces |
properties |
Gets or sets properties of the NotificationHub. |
NotificationHubProperties (required) |
tags |
Resource tags |
Dictionary of tag names and values. See Tags in templates |
AdmCredential
Name |
Description |
Value |
properties |
Gets or sets properties of NotificationHub AdmCredential. |
AdmCredentialProperties |
AdmCredentialProperties
Name |
Description |
Value |
authTokenUrl |
Gets or sets the URL of the authorization token. |
string |
clientId |
Gets or sets the client identifier. |
string |
clientSecret |
Gets or sets the credential secret access key. |
string |
ApnsCredential
ApnsCredentialProperties
Name |
Description |
Value |
apnsCertificate |
Gets or sets the APNS certificate. |
string |
certificateKey |
Gets or sets the certificate key. |
string |
endpoint |
Gets or sets the endpoint of this credential. |
string |
thumbprint |
Gets or sets the Apns certificate Thumbprint |
string |
BaiduCredential
BaiduCredentialProperties
Name |
Description |
Value |
baiduApiKey |
Get or Set Baidu Api Key. |
string |
baiduEndPoint |
Get or Set Baidu Endpoint. |
string |
baiduSecretKey |
Get or Set Baidu Secret Key |
string |
GcmCredential
Name |
Description |
Value |
properties |
Gets or sets properties of NotificationHub GcmCredential. |
GcmCredentialProperties |
GcmCredentialProperties
Name |
Description |
Value |
gcmEndpoint |
Gets or sets the GCM endpoint. |
string |
googleApiKey |
Gets or sets the Google API key. |
string |
MpnsCredential
MpnsCredentialProperties
Name |
Description |
Value |
certificateKey |
Gets or sets the certificate key for this credential. |
string |
mpnsCertificate |
Gets or sets the MPNS certificate. |
string |
thumbprint |
Gets or sets the Mpns certificate Thumbprint |
string |
NotificationHubProperties
Name |
Description |
Value |
admCredential |
The AdmCredential of the created NotificationHub |
AdmCredential |
apnsCredential |
The ApnsCredential of the created NotificationHub |
ApnsCredential |
authorizationRules |
The AuthorizationRules of the created NotificationHub |
SharedAccessAuthorizationRuleProperties[] |
baiduCredential |
The BaiduCredential of the created NotificationHub |
BaiduCredential |
gcmCredential |
The GcmCredential of the created NotificationHub |
GcmCredential |
mpnsCredential |
The MpnsCredential of the created NotificationHub |
MpnsCredential |
name |
The NotificationHub name. |
string |
registrationTtl |
The RegistrationTtl of the created NotificationHub |
string |
wnsCredential |
The WnsCredential of the created NotificationHub |
WnsCredential |
SharedAccessAuthorizationRuleProperties
Name |
Description |
Value |
claimType |
The type of the claim. |
string |
claimValue |
The value of the claim. |
string |
createdTime |
The time at which the authorization rule was created. |
string |
keyName |
The name of the key that was used. |
string |
modifiedTime |
The most recent time the rule was updated. |
string |
primaryKey |
The primary key that was used. |
string |
revision |
The revision number for the rule. |
int |
rights |
The rights associated with the rule. |
String array containing any of: 'Listen' 'Manage' 'Send' |
secondaryKey |
The secondary key that was used. |
string |
WnsCredential
Name |
Description |
Value |
properties |
Gets or sets properties of NotificationHub WnsCredential. |
WnsCredentialProperties |
WnsCredentialProperties
Name |
Description |
Value |
packageSid |
Gets or sets the package ID for this credential. |
string |
secretKey |
Gets or sets the secret key. |
string |
windowsLiveEndpoint |
Gets or sets the Windows Live endpoint. |
string |
Usage Examples
Azure Quickstart Samples
The following Azure Quickstart templates contain Bicep samples for deploying this resource type.
ARM template resource definition
The namespaces/notificationHubs resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.NotificationHubs/namespaces/notificationHubs resource, add the following JSON to your template.
{
"type": "Microsoft.NotificationHubs/namespaces/notificationHubs",
"apiVersion": "2014-09-01",
"name": "string",
"location": "string",
"properties": {
"admCredential": {
"properties": {
"authTokenUrl": "string",
"clientId": "string",
"clientSecret": "string"
}
},
"apnsCredential": {
"properties": {
"apnsCertificate": "string",
"certificateKey": "string",
"endpoint": "string",
"thumbprint": "string"
}
},
"authorizationRules": [
{
"claimType": "string",
"claimValue": "string",
"createdTime": "string",
"keyName": "string",
"modifiedTime": "string",
"primaryKey": "string",
"revision": "int",
"rights": [ "string" ],
"secondaryKey": "string"
}
],
"baiduCredential": {
"properties": {
"baiduApiKey": "string",
"baiduEndPoint": "string",
"baiduSecretKey": "string"
}
},
"gcmCredential": {
"properties": {
"gcmEndpoint": "string",
"googleApiKey": "string"
}
},
"mpnsCredential": {
"properties": {
"certificateKey": "string",
"mpnsCertificate": "string",
"thumbprint": "string"
}
},
"name": "string",
"registrationTtl": "string",
"wnsCredential": {
"properties": {
"packageSid": "string",
"secretKey": "string",
"windowsLiveEndpoint": "string"
}
}
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.NotificationHubs/namespaces/notificationHubs
Name |
Description |
Value |
apiVersion |
The api version |
'2014-09-01' |
location |
Gets or sets NotificationHub data center location. |
string (required) |
name |
The resource name |
string (required) |
properties |
Gets or sets properties of the NotificationHub. |
NotificationHubProperties (required) |
tags |
Resource tags |
Dictionary of tag names and values. See Tags in templates |
type |
The resource type |
'Microsoft.NotificationHubs/namespaces/notificationHubs' |
AdmCredential
Name |
Description |
Value |
properties |
Gets or sets properties of NotificationHub AdmCredential. |
AdmCredentialProperties |
AdmCredentialProperties
Name |
Description |
Value |
authTokenUrl |
Gets or sets the URL of the authorization token. |
string |
clientId |
Gets or sets the client identifier. |
string |
clientSecret |
Gets or sets the credential secret access key. |
string |
ApnsCredential
ApnsCredentialProperties
Name |
Description |
Value |
apnsCertificate |
Gets or sets the APNS certificate. |
string |
certificateKey |
Gets or sets the certificate key. |
string |
endpoint |
Gets or sets the endpoint of this credential. |
string |
thumbprint |
Gets or sets the Apns certificate Thumbprint |
string |
BaiduCredential
BaiduCredentialProperties
Name |
Description |
Value |
baiduApiKey |
Get or Set Baidu Api Key. |
string |
baiduEndPoint |
Get or Set Baidu Endpoint. |
string |
baiduSecretKey |
Get or Set Baidu Secret Key |
string |
GcmCredential
Name |
Description |
Value |
properties |
Gets or sets properties of NotificationHub GcmCredential. |
GcmCredentialProperties |
GcmCredentialProperties
Name |
Description |
Value |
gcmEndpoint |
Gets or sets the GCM endpoint. |
string |
googleApiKey |
Gets or sets the Google API key. |
string |
MpnsCredential
MpnsCredentialProperties
Name |
Description |
Value |
certificateKey |
Gets or sets the certificate key for this credential. |
string |
mpnsCertificate |
Gets or sets the MPNS certificate. |
string |
thumbprint |
Gets or sets the Mpns certificate Thumbprint |
string |
NotificationHubProperties
Name |
Description |
Value |
admCredential |
The AdmCredential of the created NotificationHub |
AdmCredential |
apnsCredential |
The ApnsCredential of the created NotificationHub |
ApnsCredential |
authorizationRules |
The AuthorizationRules of the created NotificationHub |
SharedAccessAuthorizationRuleProperties[] |
baiduCredential |
The BaiduCredential of the created NotificationHub |
BaiduCredential |
gcmCredential |
The GcmCredential of the created NotificationHub |
GcmCredential |
mpnsCredential |
The MpnsCredential of the created NotificationHub |
MpnsCredential |
name |
The NotificationHub name. |
string |
registrationTtl |
The RegistrationTtl of the created NotificationHub |
string |
wnsCredential |
The WnsCredential of the created NotificationHub |
WnsCredential |
SharedAccessAuthorizationRuleProperties
Name |
Description |
Value |
claimType |
The type of the claim. |
string |
claimValue |
The value of the claim. |
string |
createdTime |
The time at which the authorization rule was created. |
string |
keyName |
The name of the key that was used. |
string |
modifiedTime |
The most recent time the rule was updated. |
string |
primaryKey |
The primary key that was used. |
string |
revision |
The revision number for the rule. |
int |
rights |
The rights associated with the rule. |
String array containing any of: 'Listen' 'Manage' 'Send' |
secondaryKey |
The secondary key that was used. |
string |
WnsCredential
Name |
Description |
Value |
properties |
Gets or sets properties of NotificationHub WnsCredential. |
WnsCredentialProperties |
WnsCredentialProperties
Name |
Description |
Value |
packageSid |
Gets or sets the package ID for this credential. |
string |
secretKey |
Gets or sets the secret key. |
string |
windowsLiveEndpoint |
Gets or sets the Windows Live endpoint. |
string |
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
The namespaces/notificationHubs resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.NotificationHubs/namespaces/notificationHubs resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.NotificationHubs/namespaces/notificationHubs@2014-09-01"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
admCredential = {
properties = {
authTokenUrl = "string"
clientId = "string"
clientSecret = "string"
}
}
apnsCredential = {
properties = {
apnsCertificate = "string"
certificateKey = "string"
endpoint = "string"
thumbprint = "string"
}
}
authorizationRules = [
{
claimType = "string"
claimValue = "string"
createdTime = "string"
keyName = "string"
modifiedTime = "string"
primaryKey = "string"
revision = int
rights = [
"string"
]
secondaryKey = "string"
}
]
baiduCredential = {
properties = {
baiduApiKey = "string"
baiduEndPoint = "string"
baiduSecretKey = "string"
}
}
gcmCredential = {
properties = {
gcmEndpoint = "string"
googleApiKey = "string"
}
}
mpnsCredential = {
properties = {
certificateKey = "string"
mpnsCertificate = "string"
thumbprint = "string"
}
}
name = "string"
registrationTtl = "string"
wnsCredential = {
properties = {
packageSid = "string"
secretKey = "string"
windowsLiveEndpoint = "string"
}
}
}
}
}
Property Values
Microsoft.NotificationHubs/namespaces/notificationHubs
Name |
Description |
Value |
location |
Gets or sets NotificationHub data center location. |
string (required) |
name |
The resource name |
string (required) |
parent_id |
The ID of the resource that is the parent for this resource. |
ID for resource of type: namespaces |
properties |
Gets or sets properties of the NotificationHub. |
NotificationHubProperties (required) |
tags |
Resource tags |
Dictionary of tag names and values. |
type |
The resource type |
"Microsoft.NotificationHubs/namespaces/notificationHubs@2014-09-01" |
AdmCredential
Name |
Description |
Value |
properties |
Gets or sets properties of NotificationHub AdmCredential. |
AdmCredentialProperties |
AdmCredentialProperties
Name |
Description |
Value |
authTokenUrl |
Gets or sets the URL of the authorization token. |
string |
clientId |
Gets or sets the client identifier. |
string |
clientSecret |
Gets or sets the credential secret access key. |
string |
ApnsCredential
ApnsCredentialProperties
Name |
Description |
Value |
apnsCertificate |
Gets or sets the APNS certificate. |
string |
certificateKey |
Gets or sets the certificate key. |
string |
endpoint |
Gets or sets the endpoint of this credential. |
string |
thumbprint |
Gets or sets the Apns certificate Thumbprint |
string |
BaiduCredential
BaiduCredentialProperties
Name |
Description |
Value |
baiduApiKey |
Get or Set Baidu Api Key. |
string |
baiduEndPoint |
Get or Set Baidu Endpoint. |
string |
baiduSecretKey |
Get or Set Baidu Secret Key |
string |
GcmCredential
Name |
Description |
Value |
properties |
Gets or sets properties of NotificationHub GcmCredential. |
GcmCredentialProperties |
GcmCredentialProperties
Name |
Description |
Value |
gcmEndpoint |
Gets or sets the GCM endpoint. |
string |
googleApiKey |
Gets or sets the Google API key. |
string |
MpnsCredential
MpnsCredentialProperties
Name |
Description |
Value |
certificateKey |
Gets or sets the certificate key for this credential. |
string |
mpnsCertificate |
Gets or sets the MPNS certificate. |
string |
thumbprint |
Gets or sets the Mpns certificate Thumbprint |
string |
NotificationHubProperties
Name |
Description |
Value |
admCredential |
The AdmCredential of the created NotificationHub |
AdmCredential |
apnsCredential |
The ApnsCredential of the created NotificationHub |
ApnsCredential |
authorizationRules |
The AuthorizationRules of the created NotificationHub |
SharedAccessAuthorizationRuleProperties[] |
baiduCredential |
The BaiduCredential of the created NotificationHub |
BaiduCredential |
gcmCredential |
The GcmCredential of the created NotificationHub |
GcmCredential |
mpnsCredential |
The MpnsCredential of the created NotificationHub |
MpnsCredential |
name |
The NotificationHub name. |
string |
registrationTtl |
The RegistrationTtl of the created NotificationHub |
string |
wnsCredential |
The WnsCredential of the created NotificationHub |
WnsCredential |
SharedAccessAuthorizationRuleProperties
Name |
Description |
Value |
claimType |
The type of the claim. |
string |
claimValue |
The value of the claim. |
string |
createdTime |
The time at which the authorization rule was created. |
string |
keyName |
The name of the key that was used. |
string |
modifiedTime |
The most recent time the rule was updated. |
string |
primaryKey |
The primary key that was used. |
string |
revision |
The revision number for the rule. |
int |
rights |
The rights associated with the rule. |
String array containing any of: 'Listen' 'Manage' 'Send' |
secondaryKey |
The secondary key that was used. |
string |
WnsCredential
Name |
Description |
Value |
properties |
Gets or sets properties of NotificationHub WnsCredential. |
WnsCredentialProperties |
WnsCredentialProperties
Name |
Description |
Value |
packageSid |
Gets or sets the package ID for this credential. |
string |
secretKey |
Gets or sets the secret key. |
string |
windowsLiveEndpoint |
Gets or sets the Windows Live endpoint. |
string |