Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Azure MCP Server allows you to manage Azure Monitor resources, including querying Log Analytics workspaces for operational insights natural language prompts. You can query Log Analytics workspaces, analyze operational data, and gain insights into your Azure resources without needing to know complex KQL syntax.
Azure Monitor helps you maximize the availability and performance of your applications and services. It delivers a comprehensive solution for collecting, analyzing, and acting on telemetry from your cloud and on-premises environments.
Note
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.
List workspaces
The Azure MCP Server can list all Log Analytics workspaces in a subscription. This provides an overview of your monitoring resources.
Example prompts include:
- List workspaces: "Show me all Log Analytics workspaces in my subscription."
- View workspaces: "What Log Analytics workspaces do I have?"
- Find workspaces: "List my monitoring workspaces"
- Query workspaces: "Show all Log Analytics workspaces"
- Check workspaces: "Get all monitoring workspaces in subscription abc123"
Parameter | Required or optional | Description |
---|---|---|
Subscription | Required | The Azure subscription ID or name. |
List tables
The Azure MCP Server can list all tables in a Log Analytics workspace. This helps you understand the data available for querying.
Example prompts include:
- List tables: "Show me all tables in my 'centralmonitoring' Log Analytics workspace."
- View tables: "What tables do I have in Log Analytics workspace 'app-monitoring'?"
- Find tables: "List all tables in my workspace 'security-logs'"
- Query tables: "Show available tables in my Log Analytics workspace"
- Check tables: "Get all log tables in my 'operations' workspace"
Parameter | Required or optional | Description |
---|---|---|
Subscription | Required | The Azure subscription ID or name. |
Workspace | Required | The Log Analytics workspace ID or name. |
Resource group | Required | The name of the Azure resource group. |
Query logs
The Azure MCP Server can execute Kusto Query Language (KQL) queries against a Log Analytics workspace. This powerful feature allows you to analyze your operational data.
Example prompts include:
- Simple query: "Query all error events from the last hour in my 'centralmonitoring' workspace"
- Filter query: "Find all failed login attempts in the SecurityEvent table"
- Complex query: "Show me the CPU usage trend for my web servers over the last 24 hours"
- Join query: "Query errors and correlate them with performance metrics"
- Aggregation query: "Count errors by application in my monitoring workspace"
Parameter | Required or optional | Description |
---|---|---|
Subscription | Required | The Azure subscription ID or name. |
Workspace | Required | The Log Analytics workspace ID or name. |
Table name | Required | The name of the table to query. |
Query | Required | The KQL query to execute against the Log Analytics workspace. |
Hours | Optional | The number of hours to query back from now. |
Limit | Optional | The maximum number of results to return. |