feat: add "Ask @azure" context menu action for AKS clusters (#2183)#2184
Open
Tatsinnit wants to merge 1 commit into
Open
feat: add "Ask @azure" context menu action for AKS clusters (#2183)#2184Tatsinnit wants to merge 1 commit into
Tatsinnit wants to merge 1 commit into
Conversation
- Add aks.askAzureCopilot command that opens GitHub Copilot Chat with cluster name and ARM resource ID pre-populated for @Azure participant - Show menu item when github.copilot-chat.activated is true - Fix cluster tree item ID to use ARM resource ID for consistency Signed-off-by: Tatsat Mishra <tamishra@microsoft.com>
Tatsinnit
commented
May 30, 2026
| } else { | ||
| this.subscriptionTreeNode = parent.subscriptionTreeNode; | ||
| } | ||
| this.id = `${this.clusterResource.name} ${clusterResource.resourceGroup}`; |
Member
Author
There was a problem hiding this comment.
❤️ 💡Gentle fyi and hunch: This needs reference check here, @tejhan could be the best one as we want to avoid and reciprocal effect. Thanks
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new "Ask @Azure" context menu entry on AKS cluster nodes in the Cloud Explorer that opens GitHub Copilot Chat pre-populated with a query targeting the @azure participant and including the cluster name and ARM resource ID. Also switches the AKS cluster tree item id from name + resourceGroup to the ARM resource ID for consistency.
Changes:
- New
aks.askAzureCopilotcommand implementation, registration, and context-menu contribution (gated bygithub.copilot-chat.activated). - Localization entry for "Ask @Azure".
AksClusterTreeItem.idnow usesclusterResource.id(ARM resource ID).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/commands/aksAskAzureCopilot/aksAskAzureCopilot.ts | New command that resolves the cluster tree node and opens Copilot Chat with a prefilled @azure query. |
| src/extension.ts | Imports and registers the new aks.askAzureCopilot command via telemetry helper. |
| src/tree/aksClusterTreeItem.ts | Changes tree item id to use the ARM resource ID instead of name + resourceGroup. |
| package.json | Declares the new command, hides it from the command palette, and adds it to the cluster view context menu when Copilot Chat is activated. |
| package.nls.json | Adds the "Ask @Azure" localization string. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add "Ask @Azure" context menu action for AKS clusters
Fixes #2183
Summary
Adds a new "Ask @Azure" context menu item to AKS clusters in the Cloud Explorer tree view. When clicked, it opens GitHub Copilot Chat with a pre-populated query containing the cluster name and ARM resource ID, targeting the
@azurechat participant.Changes
aks.askAzureCopilot— resolves the selected cluster node and opens Copilot Chat viaworkbench.action.chat.opengithub.copilot-chat.activatedis trueclusterResource.id) instead ofname + resourceGroupfor consistencyFiles Changed
Testing
@azure I'd like to talk about my <cluster-name> Azure Kubernetes Service cluster (resource ID: <arm-id>).