Edit

Azure Advisor tools for the Azure MCP Server overview

The Azure MCP Server lets you manage resource optimization, cost recommendations, and performance improvements with natural language prompts.

Azure Advisor is a service that gives you actionable insights to help you optimize your Azure resources and improve performance. For more about Advisor, see Azure Advisor documentation.

Note

Tool parameters: The Azure MCP Server tools define parameters for data they need to complete tasks. Some of these parameters are specific to each tool and are documented below. Other parameters are global and shared by all tools. For more information, see Tool parameters.

Apply recommendations

Apply Azure Advisor recommendations to infrastructure-as-code (IaC) files, such as ARM templates or Terraform configurations. This tool returns the rules that you can apply to a given Azure resource to bring it in line with Advisor guidance. Use it to review and incorporate Advisor suggestions directly into your IaC workflows.

Example prompts include:

  • "Apply Advisor recommendations to my ARM template for virtual machines."

  • "Apply Advisor recommendations to all IaC files in my workspace."

Parameter Required or optional Description
Resource type Required The Azure resource type for which to return applicable Advisor recommendation rules. Available options include: aad_domainservices, apimanagement_service, cognitiveservices_accounts, compute_virtualmachines, compute_virtualmachinescalesets, containerregistry_registries, containerservice_managedclusters, dbforpostgresql_flexibleservers, documentdb_databaseaccounts, keyvault_vaults, kubernetes_connectedclusters, kubernetesconfiguration_extensions, netapp_volumes, network_applicationgatewaywebapplicationfirewallpolicies, network_expressrouteports, network_frontdoorwebapplicationfirewallpolicies, sql_managedinstances, storage_storageaccounts, web_serverfarms, web_staticsites.

Tool annotation hints:

Destructive: ❌ | Idempotent: ✅ | Open World: ❌ | Read Only: ✅ | Secret: ❌ | Local Required: ❌

List recommendations

List Azure Advisor recommendations in a subscription. Use this tool to view actionable insights for optimizing cost, performance, reliability, security, and operational excellence across your Azure resources.

Example prompts include:

  • "Show Azure Advisor recommendations for my subscription."

  • "What are the current Advisor recommendations for my subscription?"

  • "Show me all Azure Advisor recommendations."

Tool annotation hints:

Destructive: ❌ | Idempotent: ✅ | Open World: ❌ | Read Only: ✅ | Secret: ❌ | Local Required: ❌