[英]Deploying Azure Logic App and Service Bus Template
I'm tryinng to deploy a logic app connected to a service bus template, but I want when I deploy it, still have the connection "alive".我正在尝试部署一个连接到服务总线模板的逻辑应用程序,但我希望在部署它时,连接仍然“有效”。 How do I do it?我该怎么做? Because what I've done an error shows up into the portal, with status Error .因为我所做的错误显示在门户中,状态为Error 。
This is part of my template code:这是我的模板代码的一部分:
"variables": {
"defaultSASKeyName": "RootManageSharedAccessKey",
"authRuleResourceId": "[resourceId('Microsoft.ServiceBus/namespaces/authorizationRules', parameters('namespaces_TestTemplateServiceBus_name'), variables('defaultSASKeyName'))]",
"sbVersion": "2017-04-01"
},
"outputs": {
"NamespaceConnectionString": {
"type": "string",
"value": "[listkeys(variables('authRuleResourceId'), variables('sbVersion')).primaryConnectionString]"
},
"SharedAccessPolicyPrimaryKey": {
"type": "string",
"value": "[listkeys(variables('authRuleResourceId'), variables('sbVersion')).primaryKey]"
}
}
I don't know what I'm doing wrong.我不知道我做错了什么。 Anyone help?有人帮忙吗?
I think you are missing the Connection String parameter from the API connection (to your Service Bus).我认为您缺少 API 连接(到您的服务总线)中的连接字符串参数。 When you create the Logic App it will also create the API connection.创建逻辑应用程序时,它还会创建 API 连接。 That API connection is shown in the screenshot.该 API 连接显示在屏幕截图中。 You should add the Connection String of the RootManageSharedAccessKey to the Api Connection (click the orange banner "Parameter value missing.")您应该将 RootManageSharedAccessKey 的连接字符串添加到 Api 连接(单击橙色横幅“缺少参数值”。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.