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