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 me

Hi! I’m Toon Vanhoutte, a hands-on Azure architect – based in Belgium – with a big passion for teaching and helping people out. I’m happy to assist you during your Azure journey with high-quality advisory and I would love to teach you Azure’s possibilities via my tailored training courses.

Subscribe to the blog