Skip to content

Add Foundry Resource Get/List Tool#762

Merged
g2vinay merged 2 commits intomicrosoft:mainfrom
g2vinay:add-foundry-tool
Oct 10, 2025
Merged

Add Foundry Resource Get/List Tool#762
g2vinay merged 2 commits intomicrosoft:mainfrom
g2vinay:add-foundry-tool

Conversation

@g2vinay
Copy link
Copy Markdown
Contributor

@g2vinay g2vinay commented Oct 10, 2025

Add Azure AI Foundry Resource Get Command

Adds a new unified command azmcp_foundry_resource_get to retrieve Azure AI Foundry (Cognitive Services) resource details including deployed models.

Features

  • List all resources: azmcp foundry resource get --subscription <sub>
  • Filter by resource group: azmcp foundry resource get --subscription <sub> --resource-group <rg>
  • Get specific resource: azmcp foundry resource get --subscription <sub> --resource-group <rg> --resource-name <name>

Response includes:

  • Resource metadata (name, location, endpoint, SKU)
  • Deployed model information (name, version, SKU, capacity, provisioning state)

@g2vinay g2vinay marked this pull request as ready for review October 10, 2025 16:45
@g2vinay g2vinay requested review from a team and xiangyan99 as code owners October 10, 2025 16:45
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 unified command azmcp_foundry_resource_get to retrieve Azure AI Foundry (Cognitive Services) resource details including deployed models. The command supports three modes: listing all resources in a subscription, filtering by resource group, or getting details for a specific resource.

Key Changes

  • New unified azmcp foundry resource get command with flexible parameter options
  • Service layer implementation for listing and retrieving AI resources with deployment details
  • Comprehensive test coverage including unit tests and live integration tests

Reviewed Changes

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

Show a summary per file
File Description
Commands/ResourceGetCommand.cs Main command implementation with three operation modes
Services/FoundryService.cs Service layer methods for listing/getting AI resources and building resource information
Services/IFoundryService.cs Interface additions for new AI resource operations
Models/AiResourceInformation.cs Data models for resource and deployment information
Options/Models/ResourceGetOptions.cs Command-specific options extending subscription options
Commands/FoundryJsonContext.cs JSON serialization context updates
FoundrySetup.cs Service registration and command group setup
tests/ResourceGetCommandTests.cs Comprehensive unit tests covering all scenarios
tests/FoundryCommandTests.cs Live integration tests for real Azure resources
docs/ Documentation and changelog updates

@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server Oct 10, 2025
Comment thread servers/Azure.Mcp.Server/CHANGELOG.md
@g2vinay g2vinay merged commit bdd46dc into microsoft:main Oct 10, 2025
24 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Oct 10, 2025
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Dec 8, 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.

5 participants