Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Description

Adds a clickable Azure portal link to the Resource Group line in the aspire deploy pipeline summary, so users can navigate directly to their resource group after deployment.

The summary value uses markdown link syntax: VNetTest5 ([link](https://portal.azure.com/#@{tenantId}/resource/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/overview))

Changes:

  • AzureEnvironmentResource.AddToPipelineSummary — Constructs portal URL from provisioning context (subscription ID, resource group name, tenant ID). Only generates the link when both subscription and resource group are known.
  • ConsoleActivityLogger.FormatPipelineSummaryKvp — Now converts markdown in summary values to Spectre clickable links (color mode), strips to plain URLs (non-interactive), or renders text (url) (no-color mode). Class made partial for [GeneratedRegex].
  • ConsoleActivityLoggerTests — Tests for all three rendering paths.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
    • No
  • Does the change require an update in our Aspire docs?
    • Yes
    • No

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 10, 2026 20:37
When printing the Resource Group in the pipeline summary of `aspire deploy`,
include a clickable link to the Azure portal resource group page.

The link uses the format:
https://portal.azure.com/#@{tenantId}/resource/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/overview

Changes:
- AzureEnvironmentResource.AddToPipelineSummary: construct markdown link for resource group
- ConsoleActivityLogger.FormatPipelineSummaryKvp: convert markdown to Spectre markup for clickable links
- Add ConsoleActivityLoggerTests for the new markdown rendering behavior

Co-authored-by: eerhardt <8291187+eerhardt@users.noreply.github.com>
Co-authored-by: eerhardt <8291187+eerhardt@users.noreply.github.com>
Copilot AI changed the title [WIP] Add link to Azure portal for Resource Group summary Add Azure portal link for Resource Group in deploy pipeline summary Feb 10, 2026
Copilot AI requested a review from eerhardt February 10, 2026 20:39
@github-actions
Copy link
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14434

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14434"


// Build resource group value with a portal link when possible
var resourceGroupValue = resourceGroupName;
if (resourceGroupName != "unknown" && subscriptionId != "unknown")
Copy link
Member

Choose a reason for hiding this comment

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

what is unknown

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.

3 participants