Get request URL after Logic Apps deployment

Just a short note to myself about Logic Apps deployment!  I took me a while to figure out how to get the URL of a Logic App after an ARM deployment, because I needed it as an app setting for my Web App.  Apparently, there’s a listCallbackURL function, that provides this functionality.  I used it to populate an output value of my ARM template:

"outputs": {
   "logicAppUrl": {
      "type": "string",
      "value": "[listCallbackURL(concat(resourceId('Microsoft.Logic/workflows/', variables('logicAppName')), '/triggers/request'), '2016-06-01').value]"
   }
}

After an ARM deployment from within Visual Studio, the following output was returned.  This output can be used, for example, to set the connection string of a web application that must call this Logic App.

CallBackUrlpng

Hopefully, this post can be valuable for your automated deployments!
Toon

ABOUT

MEET THE YOUR AZURE COACH TEAM

Your Azure Coach is specialized in organizing Azure trainings that are infused with real-life experience. All our coaches are active consultants, who are very passionate and who love to share their Azure expertise with you.