如果不能使用设计器,如何在 Azure 门户中获取完整的 URL HTTP 触发逻辑应用程序?

How can you obtain the full URL of a HTTP triggered Logic App in the Azure Portal, if you can't use the designer?

如果不能使用设计器,如何在 Azure 门户中获取完整的 URL HTTP 触发逻辑应用程序?

通常,如果我使用 HTTP 触发器创建一个逻辑应用程序,在我第一次保存它之后,"Designer" 具有完整的 URL,包括 sig,甚至"Copy Url" 的选项,例如

https://prod.northeurope.logic.azure.com:443/workflows/.../paths/invoke?...&sig=xxxxxxx 

但是如果我在 "Code view" 中创建一个带有多个触发器的逻辑应用程序,例如一个用于 GET,一个用于 POST,我无法切换到 "Designer"。

那么我怎样才能得到完整的URL?

... 不使用例如PowerShell 和 Az cmdlet,例如

Get-AzLogicAppTriggerCallbackUrl 
  -ResourceGroupName $(LogicAppResourceGroupName) 
  -Name $(LogicAppName-ProcessData) 
  -TriggerName "manual"

实际上逻辑应用程序 http 触发端点 URL 是一个 sas URL,格式如下:

https://<request-endpoint-URI>sp=<permissions>sv=<SAS-version>sig=<signature>

而且你没有开发工具,有效的方法是 REST API:listcallbackurl and the Az command:Get-AzLogicAppTriggerCallbackUrl.

其余api描述提供了一个简单的方法来测试API和Try it按钮,只需登录而不需要额外的auth token生成。

此外,Azure 门户还提供 Azure Cloud Shell 使用 PowerShell 和 Bash 命令来管理 Azure 资源。