使用Azure的ARM模板来创建服务总线主题订阅与SQL过滤? [英] Use Azure ARM Template to create Service Bus Topic Subscription with Sql Filter?
问题描述
我已经能够找出创建/蔚蓝色的ARM模板如何建立一个管理的Azure服务总线命名空间,主题和订阅接收所有邮件。但是,微软文档极度缺乏仍然在ARM Tempates,我无法弄清楚如何定义一个名为sqlfilter模板内的订阅,您可以管理使用.NET SDK。
有谁知道如何在SQL过滤器的ARM模板中添加一个服务总线主题订阅?
下面是对ARM模板我创建的服务总线主题及认购不SQL过滤链接:
<一个href=\"https://github.com/crpietschmann/azure-quickstart-templates/blob/101-servicebus-topic-subscription/101-servicebus-topic-subscription/azuredeploy.json\" rel=\"nofollow\">https://github.com/crpietschmann/azure-quickstart-templates/blob/101-servicebus-topic-subscription/101-servicebus-topic-subscription/azuredeploy.json
此外,这里的ARM模板我指的是源:
{
$纲目:https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#
contentVersion:1.0.0.0,
参数:{
serviceBusNamespaceName:{
类型:串,
元数据:{
说明:名称服务总线命名空间的
}
},
serviceBusTopicName:{
类型:串,
元数据:{
说明:名称服务总线主题的
}
},
serviceBusTopicSubscriptionName:{
类型:串,
元数据:{
说明:名称服务总线主题认购
}
}
},
变量:{
sbVersion:2015年8月1日
},
资源:
{
apiVersion:[变量('sbVersion'),
名:[参数('serviceBusNamespaceName'),
类型:Microsoft.ServiceBus /命名空间
位置:[资源组()位置。]
属性:{
},
资源:
{
apiVersion:[变量('sbVersion'),
名:[参数('serviceBusTopicName'),
类型:主题,
依赖于取决于: [
[CONCAT('Microsoft.ServiceBus /命名空间/',参数('serviceBusNamespaceName'))]
]
属性:{
路径:[参数('serviceBusTopicName')]
},
资源:
{
apiVersion:[变量('sbVersion'),
名:[参数('serviceBusTopicSubscriptionName'),
类型:订阅,
依赖于取决于: [
[参数('serviceBusTopicName')]
]
属性:{
},
资源:
]
}
]
}
]
}
]
输出:{
}
}
目前,ARM模板不支持创建/管理的Azure服务总线主题订阅过滤器。
I've been able to figure out how to setup an Azure ARM Template that creates/manages an Azure Service Bus Namespace, Topic and Subscription to receive all messages. However, the Microsoft documentation is extremely lacking still on ARM Tempates, and I am unable to figure out how to define a SqlFilter for the Subscription within the template that you can manage using the .NET SDK.
Does anyone know how to add a Sql Filter to a Service Bus Topic Subscription within an ARM Template?
Here's a link to the ARM Template I have for creating the Service Bus Topic and Subscription without Sql filter:
Also, here's the source of the ARM Template I'm referring to:
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"serviceBusNamespaceName": {
"type": "string",
"metadata": {
"description": "Name of the Service Bus Namespace"
}
},
"serviceBusTopicName": {
"type": "string",
"metadata": {
"description": "Name of the Service Bus Topic"
}
},
"serviceBusTopicSubscriptionName": {
"type": "string",
"metadata": {
"description": "Name of the Service Bus Topic Subscription"
}
}
},
"variables": {
"sbVersion": "2015-08-01"
},
"resources": [
{
"apiVersion": "[variables('sbVersion')]",
"name": "[parameters('serviceBusNamespaceName')]",
"type": "Microsoft.ServiceBus/namespaces",
"location": "[resourceGroup().location]",
"properties": {
},
"resources": [
{
"apiVersion": "[variables('sbVersion')]",
"name": "[parameters('serviceBusTopicName')]",
"type": "Topics",
"dependsOn": [
"[concat('Microsoft.ServiceBus/namespaces/', parameters('serviceBusNamespaceName'))]"
],
"properties": {
"path": "[parameters('serviceBusTopicName')]"
},
"resources": [
{
"apiVersion": "[variables('sbVersion')]",
"name": "[parameters('serviceBusTopicSubscriptionName')]",
"type": "Subscriptions",
"dependsOn": [
"[parameters('serviceBusTopicName')]"
],
"properties": {
},
"resources": [
]
}
]
}
]
}
],
"outputs": {
}
}
Currently, ARM Templates do not support creating/managing Azure Service Bus Topic Subscription Filters.
这篇关于使用Azure的ARM模板来创建服务总线主题订阅与SQL过滤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!