Skip to content

Add AKS tool for getting nodepools#394

Merged
feiskyer merged 1 commit intomicrosoft:mainfrom
feiskyer:aks-nodepool-gets
Sep 12, 2025
Merged

Add AKS tool for getting nodepools#394
feiskyer merged 1 commit intomicrosoft:mainfrom
feiskyer:aks-nodepool-gets

Conversation

@feiskyer
Copy link
Copy Markdown
Contributor

@feiskyer feiskyer commented Sep 11, 2025

What does this PR do?

Add AKS tool for getting nodepools

GitHub issue number?

[Link to the GitHub issue this PR addresses]

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Updated servers/Azure.Mcp.Server/CHANGELOG.md and/or servers/Fabric.Mcp.Server/CHANGELOG.md for product changes (features, bug fixes, UI/UX, updated dependencies)
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Updated command list in /docs/azmcp-commands.md and/or /docs/fabric-commands.md
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
  • Extra steps for Azure MCP Server tool changes:
    • Updated test prompts in /docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

Copy link
Copy Markdown
Contributor

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

This PR adds a new AKS tool for getting detailed information about a specific node pool in an Azure Kubernetes Service cluster. It provides comprehensive functionality to retrieve node pool configuration and status details.

  • Adds NodepoolGetCommand with validation and error handling for retrieving individual node pool details
  • Implements GetNodePool method in AksService with caching support and proper Azure SDK integration
  • Includes comprehensive unit and live tests covering successful retrieval, validation, and error scenarios

Reviewed Changes

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

Show a summary per file
File Description
NodepoolGetCommandTests.cs (UnitTests) Unit tests for the nodepool get command including parameter validation and error handling
NodepoolGetCommandTests.cs (LiveTests) Live integration tests against real Azure resources
IAksService.cs Interface extension adding GetNodePool method signature
AksService.cs Implementation of GetNodePool with caching and Azure SDK calls
NodepoolGetOptions.cs Options class defining required parameters for the get command
AksOptionDefinitions.cs Added nodepool name option definition
NodepoolGetCommand.cs Main command implementation with validation and execution logic
AksJsonContext.cs JSON serialization context update for the new result type
AksSetup.cs Registration of the new command in the command hierarchy
README.md Documentation update with example usage
CHANGELOG.md Release notes entry
e2eTestPrompts.md End-to-end test prompts for the new functionality
azmcp-commands.md Command documentation update

Comment thread tools/Azure.Mcp.Tools.Aks/src/Services/AksService.cs
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server Sep 11, 2025
@feiskyer feiskyer merged commit 279d6aa into microsoft:main Sep 12, 2025
26 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Sep 12, 2025
@feiskyer feiskyer deleted the aks-nodepool-gets branch September 12, 2025 00:57
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Sep 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants