Link to an Azure Logic App Run

Dag CalafellDynamics 3653 years ago52 Views

Sometimes my Azure Logic Apps are sending emails internally, both for the happy path and for exceptions.  Toon had a great post, Navigate directly to the Logic Apps run details | Your Azure Coach, explaining how to create a direct link to the Azure Logic App run.  The idea is that you could easily check out the details and correct any issues.  I’d like to add to his post the exact formula you can use to include those links either in a log, or within the email.  It is easier than creating the whole resource ID, because every Logic App includes that detail in a built-in function.

The code you can use to create a link directly to the Azure Logic App run:

concat(‘https://portal.azure.com/#blade/Microsoft_Azure_EMA/LogicAppsMonitorBlade/runid/’,encodeUriComponent(workflow()[‘run’][‘id’]))

 

For the record, the workflow() method returns the following:

{
  “id”: “/subscriptions/741e11f3-9abd-4c61-ac7f-5492fe02a488/resourceGroups/dag-logicapp-01-rg/providers/Microsoft.Logic/workflows/dag-logicapp-01”,
  “name”: “dag-logicapp-01”,
  “type”: “Microsoft.Logic/workflows”,
  “location”: “eastus2”,
  “tags”: {},
  “run”: {
    “id”: “/subscriptions/AAAAAAf3-9abd-4c61-ac7f-5492fe02a488/resourceGroups/dag-logicapp-01-rg/providers/Microsoft.Logic/workflows/dag-logicapp-01/runs/AAAAAA83363050383448162643210CU24”,
    “name”: “AAAAAA83363050383448162643210CU24”,
    “type”: “Microsoft.Logic/workflows/runs”
  }
}

 

Enjoy!

 

The post Link to an Azure Logic App Run appeared first on Dag Calafell, III.

Original Post https://calafell.me/link-to-an-azure-logic-app-run/

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
May 2025
MTWTFSS
    1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
« Apr   Jun »
Follow
Sign In/Sign Up Sidebar Search
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...