你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.NotificationHubs 命名空间 2014-09-01
Bicep 资源定义
可以使用目标操作部署命名空间资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.NotificationHubs/namespaces 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.NotificationHubs/namespaces@2014-09-01' = {
location: 'string'
name: 'string'
properties: {
createdAt: 'string'
critical: bool
enabled: bool
name: 'string'
namespaceType: 'string'
provisioningState: 'string'
region: 'string'
scaleUnit: 'string'
serviceBusEndpoint: 'string'
status: 'string'
subscriptionId: 'string'
}
tags: {
{customized property}: 'string'
}
}
属性值
Microsoft.NotificationHubs/namespaces
名字 | 描述 | 价值 |
---|---|---|
位置 | 获取或设置命名空间数据中心位置。 | string (必需) |
名字 | 资源名称 | string (必需) |
性能 | 获取或设置命名空间的属性。 | NamespaceProperties (必需) |
标签 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
NamespaceCreateOrUpdateParametersTags
名字 | 描述 | 价值 |
---|
NamespaceProperties
名字 | 描述 | 价值 |
---|---|---|
createdAt | 创建命名空间的时间。 | 字符串 |
危急 | 命名空间是否设置为“严重”。 | bool |
启用 | 命名空间当前是否已启用。 | bool |
名字 | 命名空间的名称。 | 字符串 |
namespaceType | 获取或设置命名空间类型。 | “Messaging” “NotificationHub” |
provisioningState | 获取或设置命名空间的预配状态。 | 字符串 |
地区 | 指定应在其中创建命名空间的目标区域。 可以是以下任何值:澳大利亚东部、澳大利亚东南部、美国中部、美国东部、美国东部 2、美国西部、美国中北部、美国中南部、东亚、东南亚、巴西南部、日本东部、日本西部、北欧、西欧 | 字符串 |
scaleUnit | 在其中创建命名空间的 ScaleUnit | 字符串 |
serviceBusEndpoint | 可用于执行 NotificationHub 操作的终结点。 | 字符串 |
地位 | 命名空间的状态。 可以是以下任何值:1 = Created/Active2 = Creating3 = Suspended4 = 删除 | 字符串 |
subscriptionId | 与命名空间关联的 Azure 订阅的 ID。 | 字符串 |
快速入门示例
以下快速入门示例部署此资源类型。
Bicep 文件 | 描述 |
---|---|
创建 Azure 通知中心 | 创建最初由 John Downs 创作的 Azure 通知中心模板。 |
ARM 模板资源定义
可以使用目标操作部署命名空间资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.NotificationHubs/namespaces 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.NotificationHubs/namespaces",
"apiVersion": "2014-09-01",
"name": "string",
"location": "string",
"properties": {
"createdAt": "string",
"critical": "bool",
"enabled": "bool",
"name": "string",
"namespaceType": "string",
"provisioningState": "string",
"region": "string",
"scaleUnit": "string",
"serviceBusEndpoint": "string",
"status": "string",
"subscriptionId": "string"
},
"tags": {
"{customized property}": "string"
}
}
属性值
Microsoft.NotificationHubs/namespaces
名字 | 描述 | 价值 |
---|---|---|
apiVersion | API 版本 | '2014-09-01' |
位置 | 获取或设置命名空间数据中心位置。 | string (必需) |
名字 | 资源名称 | string (必需) |
性能 | 获取或设置命名空间的属性。 | NamespaceProperties (必需) |
标签 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
类型 | 资源类型 | “Microsoft.NotificationHubs/namespaces” |
NamespaceCreateOrUpdateParametersTags
名字 | 描述 | 价值 |
---|
NamespaceProperties
名字 | 描述 | 价值 |
---|---|---|
createdAt | 创建命名空间的时间。 | 字符串 |
危急 | 命名空间是否设置为“严重”。 | bool |
启用 | 命名空间当前是否已启用。 | bool |
名字 | 命名空间的名称。 | 字符串 |
namespaceType | 获取或设置命名空间类型。 | “Messaging” “NotificationHub” |
provisioningState | 获取或设置命名空间的预配状态。 | 字符串 |
地区 | 指定应在其中创建命名空间的目标区域。 可以是以下任何值:澳大利亚东部、澳大利亚东南部、美国中部、美国东部、美国东部 2、美国西部、美国中北部、美国中南部、东亚、东南亚、巴西南部、日本东部、日本西部、北欧、西欧 | 字符串 |
scaleUnit | 在其中创建命名空间的 ScaleUnit | 字符串 |
serviceBusEndpoint | 可用于执行 NotificationHub 操作的终结点。 | 字符串 |
地位 | 命名空间的状态。 可以是以下任何值:1 = Created/Active2 = Creating3 = Suspended4 = 删除 | 字符串 |
subscriptionId | 与命名空间关联的 Azure 订阅的 ID。 | 字符串 |
快速入门模板
以下快速入门模板部署此资源类型。
模板 | 描述 |
---|---|
创建 Azure 通知中心 |
创建最初由 John Downs 创作的 Azure 通知中心模板。 |
使用 SQL 数据库 预配移动应用 |
此模板预配移动应用、SQL 数据库和通知中心。 它在移动应用中为数据库和通知中心配置连接字符串。 |
Terraform (AzAPI 提供程序)资源定义
可以使用目标操作部署命名空间资源类型:
- 资源组
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.NotificationHubs/namespaces 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.NotificationHubs/namespaces@2014-09-01"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
createdAt = "string"
critical = bool
enabled = bool
name = "string"
namespaceType = "string"
provisioningState = "string"
region = "string"
scaleUnit = "string"
serviceBusEndpoint = "string"
status = "string"
subscriptionId = "string"
}
})
}
属性值
Microsoft.NotificationHubs/namespaces
名字 | 描述 | 价值 |
---|---|---|
位置 | 获取或设置命名空间数据中心位置。 | string (必需) |
名字 | 资源名称 | string (必需) |
性能 | 获取或设置命名空间的属性。 | NamespaceProperties (必需) |
标签 | 资源标记 | 标记名称和值的字典。 |
类型 | 资源类型 | “Microsoft.NotificationHubs/namespaces@2014-09-01” |
NamespaceCreateOrUpdateParametersTags
名字 | 描述 | 价值 |
---|
NamespaceProperties
名字 | 描述 | 价值 |
---|---|---|
createdAt | 创建命名空间的时间。 | 字符串 |
危急 | 命名空间是否设置为“严重”。 | bool |
启用 | 命名空间当前是否已启用。 | bool |
名字 | 命名空间的名称。 | 字符串 |
namespaceType | 获取或设置命名空间类型。 | “Messaging” “NotificationHub” |
provisioningState | 获取或设置命名空间的预配状态。 | 字符串 |
地区 | 指定应在其中创建命名空间的目标区域。 可以是以下任何值:澳大利亚东部、澳大利亚东南部、美国中部、美国东部、美国东部 2、美国西部、美国中北部、美国中南部、东亚、东南亚、巴西南部、日本东部、日本西部、北欧、西欧 | 字符串 |
scaleUnit | 在其中创建命名空间的 ScaleUnit | 字符串 |
serviceBusEndpoint | 可用于执行 NotificationHub 操作的终结点。 | 字符串 |
地位 | 命名空间的状态。 可以是以下任何值:1 = Created/Active2 = Creating3 = Suspended4 = 删除 | 字符串 |
subscriptionId | 与命名空间关联的 Azure 订阅的 ID。 | 字符串 |