generate_aztfexport_resources_by_query_command
Generate an aztfexport command that exports Azure resources matching an Azure Resource Graph query into Terraform configuration for local execution.
Instructions
Generate an aztfexport command to export Azure resources matching an Azure Resource Graph query to Terraform configuration. The command is returned for the agent to execute locally.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "generate_aztfexport_resources_by_query_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Azure Resource Graph query (WHERE clause) | |
| dryRun | No | Perform a dry run without creating files | |
| provider | No | Terraform provider to use | azurerm |
| namePattern | No | Pattern for resource naming in Terraform | |
| parallelism | No | Number of parallel operations | |
| typePattern | No | Pattern for resource type filtering | |
| continueOnError | No | Continue export even if some resources fail | |
| outputFolderName | No | Output folder name (created under workspace root) | |
| includeRoleAssignment | No | Include role assignments in export |