Skip to content

Instantly share code, notes, and snippets.

@spboyer
Created January 28, 2026 21:39
Show Gist options
  • Select an option

  • Save spboyer/633f0e2bd4006377faed9c7e6bba7908 to your computer and use it in GitHub Desktop.

Select an option

Save spboyer/633f0e2bd4006377faed9c7e6bba7908 to your computer and use it in GitHub Desktop.
CLI Session Feedback: Azure Static Web Apps Deployment

CLI Session Feedback

Date: 2026-01-28 16:34 Model: claude-sonnet-4-20250514 Duration: 4 minutes Session ID: session-20260128-163354 Working Directory: /Users/shboyer/github/plain-html-test Git Branch: main

Summary

Task Attempted

Deploy a static HTML website to Azure. User had a simple Hello World HTML page and wanted to host it on Azure.

Problems Encountered

  • Initial SWA CLI deploy failed due to artifact folder constraint (current directory cannot be identical to or contained within artifact folders)
  • Required creating a separate dist folder and copying files before deployment could succeed

Outcome

Success - Static site successfully deployed to Azure Static Web Apps at https://salmon-rock-049daba0f.2.azurestaticapps.net

The following Azure resources were created:

  • Resource Group: rg-recorded-swa-session
  • Static Web App: recorded-swa-session (Free tier, East US 2)

Statistics

  • Total Exchanges: 2
  • Tool Calls: 7
  • Errors: 1

Full Session Data (Machine Readable)

The following JSON contains the complete session data for LLM analysis:

{
  "metadata": {
    "session_id": "session-20260128-163354",
    "model": "claude-sonnet-4-20250514",
    "start_time": "2026-01-28T16:34:12.153180",
    "end_time": "2026-01-28T16:38:46.981910",
    "working_directory": "/Users/shboyer/github/plain-html-test",
    "git_branch": "main"
  },
  "exchanges": [
    {
      "user_prompt": "start",
      "assistant_response": "Recording started for session-20260128-163354",
      "tool_calls": [
        {
          "name": "bash",
          "parameters": {
            "command": "git branch --show-current"
          },
          "result": "main"
        }
      ],
      "timestamp": "2026-01-28T16:34:12.153180"
    },
    {
      "user_prompt": "help me deploy my app to azure",
      "assistant_response": "Detected static HTML site. Recommended Azure Static Web Apps. Created resource group and SWA, deployed successfully.",
      "tool_calls": [
        {
          "name": "bash",
          "parameters": {
            "command": "ls -la && cat index.html"
          },
          "result": "index.html - Hello World static site"
        },
        {
          "name": "glob",
          "parameters": {
            "pattern": "**/*.{json,yaml,yml}"
          },
          "result": ".github/workflows/run_test_deploy.yml"
        },
        {
          "name": "bash",
          "parameters": {
            "command": "az account show"
          },
          "result": "shboyer subscription"
        },
        {
          "name": "bash",
          "parameters": {
            "command": "az group create && az staticwebapp create"
          },
          "result": "Created recorded-swa-session in rg-recorded-swa-session"
        },
        {
          "name": "bash",
          "parameters": {
            "command": "swa deploy . --deployment-token"
          },
          "result": "Error: Current directory cannot be identical to artifact folder"
        },
        {
          "name": "bash",
          "parameters": {
            "command": "mkdir -p dist && cp index.html dist/ && swa deploy ./dist"
          },
          "result": "Project deployed to https://salmon-rock-049daba0f.2.azurestaticapps.net"
        }
      ],
      "timestamp": "2026-01-28T16:35:30.000000"
    }
  ],
  "errors": [
    {
      "type": "ToolError",
      "message": "SWA CLI artifact folder constraint - current directory cannot be identical to artifact folder",
      "context": {
        "resolution": "Created dist folder and copied files"
      },
      "timestamp": "2026-01-28T16:36:45.000000"
    }
  ],
  "statistics": {
    "total_exchanges": 2,
    "total_tool_calls": 7,
    "total_errors": 1,
    "duration_seconds": 218
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment