Skip to content

Make Logic App a clickable link for custom extension tasks#7

Merged
mariussm merged 2 commits into
mainfrom
copilot/fix-logic-app-link
Mar 17, 2026
Merged

Make Logic App a clickable link for custom extension tasks#7
mariussm merged 2 commits into
mainfrom
copilot/fix-logic-app-link

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

Custom extension tasks displayed the Logic App name as plain text in both Markdown and Mermaid outputs. This adds proper links using the Azure Portal deep-link format.

Changes

  • ConvertTo-WorkflowMarkdown.ps1: Logic App name is now a Markdown hyperlink when all required fields are available; falls back to plain text when any of SubscriptionId, ResourceGroupName, or LogicAppName is missing.

  • ConvertTo-WorkflowMermaid.ps1: Adds a Mermaid click directive to the custom extension task node, making it clickable in rendered diagrams (opens in new tab). Click is only added when the full URL can be constructed.

Both use [Uri]::EscapeDataString() on each URL segment.

Link format:

https://portal.azure.com/#resource/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Logic/workflows/<logicAppName>

Mermaid output example:

click task_wf_123_1 href "https://portal.azure.com/#resource/subscriptions/12345678-.../resourceGroups/my-rg/providers/Microsoft.Logic/workflows/my-logic-app" _blank

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.powershellgallery.com
    • Triggering command: /usr/bin/pwsh pwsh -Command Install-Module PSScriptAnalyzer -Scope CurrentUser -Force -Confirm:$false 2&gt;&amp;1 | Out-Null $results = Invoke-ScriptAnalyzer -Path &#39;./LCWMermaidGenerator&#39; -Recurse -ExcludeRule @(&#39;PSAvoidTrailingWhitespace&#39;, &#39;PSUseToExportFieldsInManifest&#39;, &#39;PSAvoidUsingWr (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>When showing a custom extension task, the logic app should be a link</issue_title>
<issue_description>When showing a custom extension task, the logic app should be a link.

Links are on the format:

https://portal.azure.com/#resource/subscriptions/<subscriptionid>/resourceGroups/<resource_group_name>/providers/Microsoft.Logic/workflows/<logicapp_name>
```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: mariussm <426202+mariussm@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix logic app display as link in custom extension task Make Logic App a clickable link for custom extension tasks Mar 17, 2026
Copilot AI requested a review from mariussm March 17, 2026 10:04
@mariussm mariussm marked this pull request as ready for review March 17, 2026 10:12
Copilot AI review requested due to automatic review settings March 17, 2026 10:12
@mariussm mariussm merged commit 6f875bd into main Mar 17, 2026
4 checks passed
@mariussm mariussm deleted the copilot/fix-logic-app-link branch March 17, 2026 10:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Azure Portal deep links for custom Logic App extension tasks so generated reports are more navigable (both in the Markdown task list and in the Mermaid diagram nodes).

Changes:

  • Generate an Azure Portal URL for Logic Apps when SubscriptionId/ResourceGroupName/LogicAppName are available.
  • Add Mermaid click directives to make custom extension nodes clickable (open in a new tab).
  • Render the Logic App name as a Markdown link in the task details section.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
LCWMermaidGenerator/Private/ConvertTo-WorkflowMermaid.ps1 Builds an Azure Portal URL for custom extension tasks and emits a Mermaid click directive for the task node.
LCWMermaidGenerator/Private/ConvertTo-WorkflowMarkdown.ps1 Turns the Logic App name into a clickable Azure Portal link when enough metadata is present.

You can also share your feedback on Copilot code review. Take the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When showing a custom extension task, the logic app should be a link

3 participants