Search code examples
azureazure-logic-apps

How to find out LogicApp Http Trigger URL while deploying to new resource group


I have a situation :

  1. Developing and Deploying the HttpTrigger based logicApp using visual Studio
  2. Deploying to resource group changes the URL
  3. Need to find out the URL to use as a webhook in service bus event

The webhook looks as follows

enter image description here

If I redeploy without deleting the logicapp it retains the previous URL enter image description here

But when I delete the logic app and deploy it generates the new URL

Please guide me how to find the URL of the http trigger so that I can bind it to my service bus webhook. Or is there any way to retain the previous url even if I delete and deploy the logicapp .

I am doing the delete/deploy/reploy operations in my dev/sit/qas environment , as I am new to logic App so am not sure what step I am missing and if some understanding issue i have.


Solution

  • Or is there any way to retain the previous url even if I delete and deploy the logicapp .

    No, it's impossibble.

    When you delete the logic app then deploy or deploy to new resource group, it will create a new logic app. So it will generate a new url.

    After you create the endpoint, you can trigger the logic app by sending an HTTPS POST request to the endpoint's full URL. Logic apps have built-in support for direct-access endpoints. Please refer to this article.