Skip to main content
Glama
cleanup-lab.sh1.57 kB
#!/bin/bash # Lab Cleanup Script for Azure AI MCP Server # Simplified cleanup for lab environments (int, e2e, prod) set -e echo "🧹 Azure AI MCP Server Lab Cleanup" echo "==================================" # Check Azure CLI if ! command -v az &> /dev/null; then echo "❌ Azure CLI not found. Please install it first." exit 1 fi if ! az account show &> /dev/null; then echo "❌ Not logged into Azure. Run 'az login' first." exit 1 fi echo "✅ Azure CLI ready" # List lab resource groups echo -e "\n📋 Lab Resource Groups:" az group list --query "[?contains(name, 'azure-ai-mcp-server')].{Name:name, Location:location}" -o table echo -e "\n⚠️ This will delete ALL lab resources (int, e2e, prod environments)" read -p "Type 'DELETE' to confirm: " confirmation if [ "$confirmation" != "DELETE" ]; then echo "❌ Cleanup cancelled" exit 0 fi # Delete resource groups echo -e "\n🗑️ Deleting lab environments..." for env in int e2e prod; do rg_name="rg-azure-ai-mcp-server-$env" if az group show --name "$rg_name" &>/dev/null; then echo "Deleting $env environment ($rg_name)..." az group delete --name "$rg_name" --yes --no-wait else echo "$env environment not found" fi done # Clean local files echo -e "\n📁 Cleaning local files..." rm -rf build/ node_modules/ logs/ .terraform/ *.tfstate* 2>/dev/null || true echo -e "\n✅ Lab cleanup initiated!" echo "💡 Resource deletion continues in background (5-10 minutes)" echo "💰 All Azure resources will be deleted to stop billing"

Latest Blog Posts

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/caiotk/nexguideai-azure-ai-mcp-server'

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