Skip to content

Move Azure specific services into the Azure core project#1722

Open
hallipr wants to merge 1 commit intomicrosoft:mainfrom
hallipr:users/pahallis/core-migration
Open

Move Azure specific services into the Azure core project#1722
hallipr wants to merge 1 commit intomicrosoft:mainfrom
hallipr:users/pahallis/core-migration

Conversation

@hallipr
Copy link
Member

@hallipr hallipr commented Feb 13, 2026

What does this PR do?

Moves the Resource group, Subscription and Tenant services from the Micrcosoft.Mcp.Core project into the Azure.Mcp.Core project

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
    • Validate README.md changes using script at eng/scripts/Process-PackageReadMe.ps1. See Package README
    • Updated command list in /servers/Azure.Mcp.Server/docs/azmcp-commands.md and/or /docs/fabric-commands.md
    • Run .\eng\scripts\Update-AzCommandsMetadata.ps1 to update tool metadata in azmcp-commands.md (required for CI)
    • 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
    • For tools with new names, including new tools or renamed tools, update consolidated-tools.json
    • For new tools associated with Azure services or publicly available tools/APIs/products, add URL to documentation in the PR description
  • Extra steps for Azure MCP Server tool changes:
    • Updated test prompts in /servers/Azure.Mcp.Server/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
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 moves Azure-specific services (ResourceGroup, Subscription, and Tenant services) from the Microsoft.Mcp.Core project to the Azure.Mcp.Core project, along with their base classes (BaseAzureService and BaseAzureResourceService). This improves the architectural separation by keeping Azure-specific functionality in the Azure-specific core library.

Changes:

  • Moved TenantService, SubscriptionService, and ResourceGroupService from Microsoft.Mcp.Core to Azure.Mcp.Core
  • Moved BaseAzureService and BaseAzureResourceService base classes to Azure.Mcp.Core
  • Updated service registration in both Azure.Mcp.Server and Fabric.Mcp.Server Program.cs files
  • Moved UserAgentPolicy initialization from ServiceStartCommand to server-specific initialization

Reviewed changes

Copilot reviewed 5 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
servers/Fabric.Mcp.Server/src/Program.cs Removed Azure-specific service registrations (ResourceGroupService, SubscriptionService, AddAzureTenantService)
servers/Azure.Mcp.Server/src/Program.cs Added direct registrations for ResourceGroupService and SubscriptionService; moved UserAgentPolicy initialization to InitializeServicesAsync
core/Microsoft.Mcp.Core/src/Services/Azure/Authentication/IAzureTokenCredentialProvider.cs Removed unused import
core/Microsoft.Mcp.Core/src/Areas/Server/Options/TransportTypes.cs Changed class visibility from internal to public
core/Microsoft.Mcp.Core/src/Areas/Server/Commands/ServiceStartCommand.cs Removed UserAgentPolicy initialization (moved to server-specific code)
core/Azure.Mcp.Core/src/Services/Azure/Tenant/TenantServiceCollectionExtensions.cs New extension method for registering TenantService with dependencies
core/Azure.Mcp.Core/src/Services/Azure/Tenant/TenantService.cs New implementation of tenant management service
core/Azure.Mcp.Core/src/Services/Azure/Tenant/ITenantService.cs New interface defining tenant service operations
core/Azure.Mcp.Core/src/Services/Azure/Subscription/SubscriptionService.cs New implementation of subscription management service
core/Azure.Mcp.Core/src/Services/Azure/Subscription/ISubscriptionService.cs New interface defining subscription service operations
core/Azure.Mcp.Core/src/Services/Azure/ResourceGroup/ResourceGroupService.cs New implementation of resource group management service
core/Azure.Mcp.Core/src/Services/Azure/ResourceGroup/IResourceGroupService.cs New interface defining resource group service operations
core/Azure.Mcp.Core/src/Services/Azure/BaseAzureService.cs New base class for Azure services with user agent management and common utilities
core/Azure.Mcp.Core/src/Services/Azure/BaseAzureResourceService.cs New base class for Azure resource management services with Resource Graph query support

{
ServiceStartOptions? options = serviceProvider.GetService<IOptions<ServiceStartOptions>>()?.Value;

if(options != null)
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

Missing space after if keyword. The code should be if (options != null) instead of if(options != null) for consistency with C# coding conventions.

Suggested change
if(options != null)
if (options != null)

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

1 participant