Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
The Azure MCP Server provides comprehensive support for Azure CLI operations, including finding commands, generating command syntax, and providing installation instructions. Perform virtually any Azure resource management operation without needing to remember specific command syntax, parameters, or formatting.
Azure Command-Line Interface (CLI) is a cross-platform command-line tool to connect to Azure and execute administrative commands on Azure resources. It allows the execution of commands through a terminal using interactive command-line prompts or a script. For a complete list of Azure CLI commands this tool executes, see the Azure CLI reference 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 here. Other parameters are global and shared by all tools. For more information, see Tool parameters.
Generate Azure CLI commands
Example CLI command
azmcp extension cli generate \
--intent <intent> \
--cli-type <cli-type>
| Parameter | Type | Required | Description |
|---|---|---|---|
intent |
string | Yes | The user intent of the task to solve by using the CLI tool. This user intent generates the appropriate CLI command to accomplish the goal. |
cli-type |
string | Yes | The type of CLI tool to use. Supported values are az for Azure CLI. |
| Destructive | Idempotent | Open World | Read Only | Secret | Local Required |
|---|---|---|---|---|---|
| ❌ | ✅ | ❌ | ✅ | ❌ | ❌ |
Get CLI installation instructions
Example CLI command
azmcp extension cli install \
--cli-type <cli-type>
| Parameter | Type | Required | Description |
|---|---|---|---|
cli-type |
string | Yes | The type of CLI tool to use. Supported values are az for Azure CLI, azd for Azure Developer CLI, and func for Azure Functions Core Tools CLI. |
| Destructive | Idempotent | Open World | Read Only | Secret | Local Required |
|---|---|---|---|---|---|
| ❌ | ✅ | ❌ | ✅ | ❌ | ✅ |