{
    "version": "2.0.0",
    "tasks": [
        {
            // Check all required prerequisites.
            // See https://aka.ms/teamsfx-tasks/check-prerequisites to know the details and how to customize the args.
            "label": "Validate prerequisites (Microsoft 365 Agents Playground)",
            "type": "teamsfx",
            "command": "debug-check-prerequisites",
            "args": {
                "prerequisites": [
                    "nodejs", // Check if Node.js is installed and the version is >= 12.
                    "portOccupancy" // Validate available ports to ensure those debug ones are not occupied.
                ],
                "portOccupancy": [
                    3978, // app service port
                    56150, // Microsoft 365 Agents Playground port
                ]
            }
        },
        {
            // Build project.
            // See https://aka.ms/teamsfx-tasks/deploy to know the details and how to customize the args.
            "label": "Deploy (Microsoft 365 Agents Playground)",
            "dependsOn": [
                "Validate prerequisites (Microsoft 365 Agents Playground)"
            ],
            "type": "teamsfx",
            "command": "deploy",
            "args": {
                "env": "playground"
            }
        },
    ]
}