简体   繁体   English

如何使用 Azure CLI 在逻辑应用程序工作流中连接服务总线队列?

[英]How to connect Service bus queue in a logic app workflow using Azure CLI?

I have a scenario where in i want to create a CLI Command so that i can create a Logic app with "When_a_message_is_received_in_a_queue_(auto-complete)" but not sure how to pass the connection string to connect to the Queue which i created earlier.我有一个场景,我想创建一个 CLI 命令,以便我可以使用"When_a_message_is_received_in_a_queue_(auto-complete)"创建一个逻辑应用程序,但不确定如何传递连接字符串以连接到我之前创建的队列。 Below is the command which am using currently.以下是当前正在使用的命令。 Testdefinition Json has the old resource group which i created from Azure Console but not working with the new resource group and this json doesn't have connectionstring anywhere which i used earlier in the console.测试定义 Json 具有我从 Azure 控制台创建的旧资源组,但不使用新资源组,并且此 json 没有我之前在控制台中使用的任何地方的连接字符串。 Any help is appreciated任何帮助表示赞赏

# Creat logic app and workflow
az logic workflow create --resource-group "demoss-rg1" --location "westeurope" --name "demo-la" --definition "C:\testDefinition.json"

Like @Lokanath das mentioned you don't pass the connection string but you need to create it and then add the connection string to it.就像@Lokanath das 提到的那样,您没有传递连接字符串,但您需要创建它,然后将连接字符串添加到它。

is it possible to create a logic app connector via Azure CLI.是否可以通过 Azure CLI 创建逻辑应用程序连接器。 Any link available?有可用的链接吗?

One of the workarounds that you can try is to use the template.json and parameter.json files for creating a logic app as per your requirement using the below command.您可以尝试的解决方法之一是使用 template.json 和 parameter.json 文件根据您的要求使用以下命令创建逻辑应用程序。

az deployment group create --name ExampleDeployment --resource-group ExampleGroup --template-file storage.json --parameters parameters.json

RESULTS:结果:

在此处输入图像描述

REFERENCES:参考:

  1. Create parameter file 创建参数文件
  2. Workflow Definition Language schema reference 工作流定义语言架构参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 队列名称未绑定到 azure 服务总线(Azure 逻辑应用程序) - Queue Name is not binding to azure service bus (Azure Logic Apps) 如何使用 Java SDK 从我的远程 Azure 应用程序配置中检索服务总线队列的队列名称? - How can I retrieve the queue name for a service bus queue from my remote Azure App Configuration using the Java SDK? 无法为 Azure 服务总线队列设置 maxMessageBatchSize - Not able to set maxMessageBatchSize for Azure Service Bus Queue Azure 服务总线队列自动删除,如 RabbitMQ - Azure Service Bus queue autodelete like in RabbitMQ 无法使用托管身份将消息从 Azure API 发布到 Azure 服务总线队列 - Unable to post message to Azure Service Bus Queue from Azure API using Managed Identity 无法使用 Azure 发布管道通过 Azure CLI 命令更新逻辑应用程序 JSON 文件 - Logic App JSON file could not be update through Azure CLI Command using Azure Release Pipeline Azure Function 和 Powershell - 服务总线队列 Output 与 ScheduledEnqueueTimeUtc 绑定 - Azure Function with Powershell - Service Bus Queue Output Binding With ScheduledEnqueueTimeUtc 如何通过 Azure 服务总线会话避免饥饿 - How to avoid starvation with Azure Service Bus Sessions Azure 服务总线功能 - Azure Service Bus Feature Azure Function app - Python SDK - 如何阅读服务总线消息正文 - Azure Function app - Python SDK - How to read Service Bus Message body
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM