Skip to content

CodeToCloud tool feature parity for Deploy and Quota area#1663

Merged
xfz11 merged 33 commits intomainfrom
wc/c2c-tool-parity'
Mar 11, 2026
Merged

CodeToCloud tool feature parity for Deploy and Quota area#1663
xfz11 merged 33 commits intomainfrom
wc/c2c-tool-parity'

Conversation

@wchigit
Copy link
Copy Markdown
Contributor

@wchigit wchigit commented Feb 6, 2026

What does this PR do?

This PR updates tools in Deploy and Quota areas to meet the latest feature improvements from CodeToCloud.
Main features include:

  • Support deployment using Azure CLI+Bicep/Terraform
  • Support deployment to existing resources
  • Add Azure-specific IaC rules regarding code quality, configuration success rate and security
  • Update CI/CD pipeline generation user flow

[Any additional context, screenshots, or information that helps reviewers]

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
    • 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
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 updates the Deploy and Quota tool areas to align with newer CodeToCloud behaviors, expanding support for Az CLI + Bicep/Terraform deployment workflows (including deploy-only to existing resources), richer IaC rules, and updated pipeline guidance prompts.

Changes:

  • Extend Quota tooling to cover more providers/regions/SKUs (notably SQL) and refine Compute/PostgreSQL quota handling.
  • Rework Deploy plan/pipeline generation templates and option surfaces to support deploy-only / provision-only / provision-and-deploy flows and multiple IaC types.
  • Add/refresh IaC rule templates for additional Azure services and update docs/tests accordingly.

Reviewed changes

Copilot reviewed 74 out of 75 changed files in this pull request and generated 17 comments.

Show a summary per file
File Description
tools/Azure.Mcp.Tools.Quota/tests/Azure.Mcp.Tools.Quota.LiveTests/QuotaCommandTests.cs Add SQL provider to quota live test coverage
tools/Azure.Mcp.Tools.Quota/src/Services/Util/Usage/PostgreSQLUsageChecker.cs Add cores pre-check and SKU labeling for PostgreSQL quotas
tools/Azure.Mcp.Tools.Quota/src/Services/Util/Usage/ComputeUsageChecker.cs Change compute quota output to SKU-filtered availability list
tools/Azure.Mcp.Tools.Quota/src/Services/Util/AzureUsageChecker.cs Add SQL provider mapping and checker factory wiring
tools/Azure.Mcp.Tools.Quota/src/Services/Util/AzureRegionChecker.cs Add region checkers for SQL/MySQL/Cosmos/Compute
tools/Azure.Mcp.Tools.Quota/src/Azure.Mcp.Tools.Quota.csproj Add ARM SDK deps for SQL/MySQL/CosmosDB
tools/Azure.Mcp.Tools.Deploy/tests/Azure.Mcp.Tools.Deploy.UnitTests/TemplateServiceTests.cs Update template placeholder assertions
tools/Azure.Mcp.Tools.Deploy/tests/Azure.Mcp.Tools.Deploy.UnitTests/DeploymentPlanTemplateUtilV2Tests.cs Update plan template expectations for new flow/options
tools/Azure.Mcp.Tools.Deploy/tests/Azure.Mcp.Tools.Deploy.UnitTests/Commands/Plan/GetCommandTests.cs Update CLI args (--iac-options) and plan output expectations
tools/Azure.Mcp.Tools.Deploy/tests/Azure.Mcp.Tools.Deploy.UnitTests/Commands/Pipeline/GuidanceGetCommandTests.cs Replace pipeline guidance tests to match new prompts/options
tools/Azure.Mcp.Tools.Deploy/tests/Azure.Mcp.Tools.Deploy.UnitTests/Commands/Infrastructure/RulesGetCommandTests.cs Expand rules tests for more resources + terraform/azcli
tools/Azure.Mcp.Tools.Deploy/tests/Azure.Mcp.Tools.Deploy.LiveTests/DeployCommandTests.cs Update live tests for renamed options and pipeline args
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/summary-steps.md Replace numbered placeholder with “Final. Summary” step
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/sample-app-mermaid.md Add sample mermaid diagram (Container Apps)
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/sample-aks-mermaid.md Add sample mermaid diagram (AKS)
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/provision-info.md Add “Recommended Azure Resources” section template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/existing-resource-info.md Add “Existing Azure Resources” section template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/deployment-plan-base.md Swap goal/resources sections to new placeholders
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/containerization-steps.md Add containerization step template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/containerapp-steps.md Remove old Container App step template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/azcli-steps.md Remove old Az CLI steps template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/azcli-provision-steps.md Add Az CLI provisioning steps template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/azcli-deployment-steps.md Add Az CLI deployment steps template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/azcli-deploy-only-steps.md Add Az CLI deploy-only steps template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/aks-provision-steps.md Add AKS provisioning steps template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/aks-deployment-steps.md Add AKS deployment steps template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Plan/aks-deploy-only-steps.md Add AKS deploy-only steps template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Pipeline/pipeline-to-azure.md Add unified pipeline guidance template
tools/Azure.Mcp.Tools.Deploy/src/Templates/Pipeline/azcli-pipeline.md Remove old Az CLI pipeline guidance template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/terraform-rules.md Add terraform rule additions (dedupe, subscription id)
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/storage-rules.md Add tool-specific rules placeholder
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/postgresql-rules.md Add PostgreSQL rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/mysql-rules.md Add MySQL rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/key-vault-rules.md Add Key Vault rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/functionapp-tf-rules.md Add Function App Terraform rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/functionapp-rules.md Refactor Function App rules to tool-specific placeholder
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/functionapp-bicep-rules.md Add Function App Bicep rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/database-common-rules.md Add shared DB rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/cosmosdb-rules.md Add Cosmos DB rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/containerapp-tf-rules.md Add Container App Terraform rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/containerapp-rules.md Refactor Container App rules to tool-specific placeholder
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/containerapp-bicep-rules.md Add Container App Bicep rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/bicep-rules.md Add base bicep rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/base-iac-rules.md Add quota-first + region selection guidance
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/azcli-script-rules.md Add Az CLI scripting rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/azcli-rules.md Refactor to include placeholders for injected rules
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/appservice-tf-rules.md Add App Service Terraform rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/appservice-rules.md Refactor App Service rules to tool-specific placeholder
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/appservice-bicep-rules.md Add App Service Bicep rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/aks-tf-rules.md Add AKS Terraform rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/aks-rules.md Add AKS rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/aks-kv-integration-rules.md Add AKS Key Vault integration guidance
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/aks-cli-rules.md Add AKS Azure CLI rules template
tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/aks-bicep-rules.md Add AKS Bicep rules template
tools/Azure.Mcp.Tools.Deploy/src/Services/Util/PipelineGenerationUtil.cs Switch pipeline guidance generation to new template prompts
tools/Azure.Mcp.Tools.Deploy/src/Services/Util/IaCRulesTemplateUtil.cs Refactor IaC rules generation to tool/resource-specific templates
tools/Azure.Mcp.Tools.Deploy/src/Services/Util/DeploymentPlanTemplateUtil.cs Expand plan generation to source/deploy options and new templates
tools/Azure.Mcp.Tools.Deploy/src/Options/Plan/GetOptions.cs Add source/deploy/IaC/RG fields; inherit SubscriptionOptions
tools/Azure.Mcp.Tools.Deploy/src/Options/Pipeline/GuidanceGetOptions.cs Replace old azd/github details with new pipeline platform/options
tools/Azure.Mcp.Tools.Deploy/src/Options/DeployOptionDefinitions.cs Add/rename CLI option definitions for plan/pipeline/rules
tools/Azure.Mcp.Tools.Deploy/src/Models/Templates/PipelineTemplateParameters.cs Replace pipeline template parameters for new prompt layout
tools/Azure.Mcp.Tools.Deploy/src/Models/Templates/IaCRulesTemplateParameters.cs Remove unused template fields for IaC rules
tools/Azure.Mcp.Tools.Deploy/src/Models/Templates/DeploymentPlanTemplateParameters.cs Add Goal/ResourceInfo/SampleMermaid/SourceType/DeployOption
tools/Azure.Mcp.Tools.Deploy/src/Models/Templates/CLIExecutionStepsTemplateParameters.cs Add parameter model for Az CLI step templates
tools/Azure.Mcp.Tools.Deploy/src/Models/PipelineParameters.cs Add DeployOption/PipelinePlatform constants
tools/Azure.Mcp.Tools.Deploy/src/Models/IaCRulesParameters.cs Add SourceType + expand supported resource type constants
tools/Azure.Mcp.Tools.Deploy/src/Models/Consts.cs Add telemetry tags for deploy option/source type
tools/Azure.Mcp.Tools.Deploy/src/Commands/Plan/GetCommand.cs Wire new plan options + telemetry tags
tools/Azure.Mcp.Tools.Deploy/src/Commands/Pipeline/GuidanceGetCommand.cs Wire new pipeline options
tools/Azure.Mcp.Tools.Deploy/src/Commands/Infrastructure/RulesGetCommand.cs Normalize resource type parsing to lower-case
tools/Azure.Mcp.Tools.Deploy/src/Azure.Mcp.Tools.Deploy.csproj Minor formatting cleanup
servers/Azure.Mcp.Server/docs/e2eTestPrompts.md Update e2e prompts for deploy tools
servers/Azure.Mcp.Server/docs/azmcp-commands.md Update CLI docs for renamed pipeline/plan options

Comment thread tools/Azure.Mcp.Tools.Deploy/src/Services/Util/PipelineGenerationUtil.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Deploy/src/Services/Util/IaCRulesTemplateUtil.cs Outdated
Comment thread servers/Azure.Mcp.Server/docs/azmcp-commands.md
Comment thread tools/Azure.Mcp.Tools.Deploy/src/Templates/IaCRules/key-vault-rules.md Outdated
Comment thread tools/Azure.Mcp.Tools.Deploy/src/Services/Util/IaCRulesTemplateUtil.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Deploy/src/Services/Util/DeploymentPlanTemplateUtil.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Deploy/src/Services/Util/DeploymentPlanTemplateUtil.cs Outdated
@wchigit wchigit requested a review from a team as a code owner March 5, 2026 03:00
@wchigit wchigit requested a review from g2vinay March 5, 2026 09:44
Comment thread AzureMcp.sln Outdated
Comment thread tools/Azure.Mcp.Tools.Quota/src/Services/Util/Usage/SQLUsageChecker.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Deploy/src/Services/Util/IaCRulesTemplateUtil.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Deploy/src/Services/Util/IaCRulesTemplateUtil.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Deploy/src/Services/Util/PipelineGenerationUtil.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Quota/src/Services/Util/Usage/ComputeUsageChecker.cs Outdated
Comment thread servers/Azure.Mcp.Server/docs/azmcp-commands.md
Comment thread tools/Azure.Mcp.Tools.Quota/src/Services/Util/Usage/SQLUsageChecker.cs Outdated
@xfz11 xfz11 merged commit 86c591e into main Mar 11, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server Mar 11, 2026
@xfz11 xfz11 deleted the wc/c2c-tool-parity' branch March 11, 2026 22:05
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Mar 11, 2026
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Apr 20, 2026
…1663)

* pipeline update

* fix pipeline tests

* plan get update

* iac rules

* region

* quota dep

* quota

* quota fix

* update prompt

* whitespaces

* unit test

* live test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants