Search code examples
azure-logic-apps

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


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

Usually if I create a logic app with the HTTP trigger, after the first time I save it, the "Designer" has the full URL, including the sig, and even an option to "Copy Url", e.g.

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

But if I create a logic app in the "Code view" with multiple triggers, e.g. one for GET, one for POST, I can't switch to the "Designer".

So how can I get the full URL?

... without using e.g. PowerShell and the Az cmdlets, e.g.

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

Solution

  • Actually Logic app http trigger endpoint URL is a sas URL with below format:

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

    And if you don't have dev tool, the efficient ways are the REST API:listcallbackurl and the Az command:Get-AzLogicAppTriggerCallbackUrl.

    The rest api description provides a simple way to test the API with Try it button, just log in without additional auth token generation.

    Also Azure Portal provides the Azure Cloud Shell to use the PowerShell and Bash command to manage Azure resources.