Skip to main content
Glama

run-azure-code

Execute Azure-specific JavaScript code directly within the Azure MCP Server environment using provided SDK clients, ensuring efficient resource management, subscription handling, and error-free operations with structured JSON outputs.

Instructions

Run Azure code

Input Schema

NameRequiredDescriptionDefault
codeYesYour job is to answer questions about Azure environment by writing Javascript code using Azure SDK. The code must adhere to a few rules: - Use the provided client instances: 'resourceClient' for ResourceManagementClient, 'subscriptionClient' for SubscriptionClient, and 'authorizationClient' for AuthorizationManagementClient - DO NOT create new client instances or import Azure SDK packages - Use async/await and promises - Think step-by-step before writing the code - Avoid hardcoded values like Resource IDs - Handle errors gracefully - Handle pagination correctly using for-await-of loops - Data returned must be JSON containing only the minimal amount of data needed - Code MUST "return" a value: string, number, boolean or JSON object
reasoningYesThe reasoning behind the code
subscriptionIdNoAzure Subscription ID
tenantIdNoAzure Tenant ID

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "Your job is to answer questions about Azure environment by writing Javascript code using Azure SDK. The code must adhere to a few rules:\n- Use the provided client instances: 'resourceClient' for ResourceManagementClient, 'subscriptionClient' for SubscriptionClient, and 'authorizationClient' for AuthorizationManagementClient\n- DO NOT create new client instances or import Azure SDK packages\n- Use async/await and promises\n- Think step-by-step before writing the code\n- Avoid hardcoded values like Resource IDs\n- Handle errors gracefully\n- Handle pagination correctly using for-await-of loops\n- Data returned must be JSON containing only the minimal amount of data needed\n- Code MUST \"return\" a value: string, number, boolean or JSON object", "type": "string" }, "reasoning": { "description": "The reasoning behind the code", "type": "string" }, "subscriptionId": { "description": "Azure Subscription ID", "type": "string" }, "tenantId": { "description": "Azure Tenant ID", "type": "string" } }, "required": [ "reasoning", "code" ], "type": "object" }

Other Tools from Azure MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kalivaraprasad-gonapa/azure-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server