github avatar

Azure Static Web Apps

This handles the full Azure Static Web Apps workflow from local development to production deployment. It properly emphasizes using `swa init` to generate the CLI config rather than manually creating it, then walks through the local emulator, Azure Functions integration, and GitHub Actions setup. The command reference is solid with practical examples for each major scenario. What I like is how it distinguishes between the two config files and their purposes. The framework auto-detection and deployment token handling make this genuinely useful for getting static sites with serverless APIs running on Azure without getting lost in the configuration details.

skills.sh installs
8.9K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill azure-static-web-apps --agent claude-code

Installs into .claude/skills of the current project.

Files

Overview

Azure Static Web Apps (SWA) hosts static frontends with optional serverless API backends. The SWA CLI (swa) provides local development emulation and deployment capabilities.

Key features:

  • Local emulator with API proxy and auth simulation
  • Framework auto-detection and configuration
  • Direct deployment to Azure
  • Database connections support

Config files:

  • swa-cli.config.json - CLI settings, created by swa init (never create manually)
  • staticwebapp.config.json - Runtime config (routes, auth, headers, API runtime) - can be created manually

General Instructions

Installation

npm install -D @azure/static-web-apps-cli

Verify: npx swa --version

Quick Start Workflow

IMPORTANT: Always use swa init to create configuration files. Never manually create swa-cli.config.json.

  1. swa init - Required first step - auto-detects framework and creates swa-cli.config.json
  2. swa start - Run local emulator at http://localhost:4280
  3. swa login - Authenticate with Azure
  4. swa deploy - Deploy to Azure

Configuration Files

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
DevOps & CI/CD, Git & Pull Requests, AI & Agent Building, Release Management, Cloud & Infrastructure, CLI & Terminal

More from github/awesome-copilot

All 318
1affaan-m avatarvideo-editingaffaan-m/eccAI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, E8.6Kskills.sh installs
2imbad0202 avatardeep-researchimbad0202/academic-research-skillsUniversal deep research agent team. 13-agent pipeline for rigorous academic research on any topic. 8 modes: full research, quick brief, paper review, lit-review8Kskills.sh installs
3google avataragent-platform-alert-configurationgoogle/skillsConfigures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics. Use when analyzing, writing, or deploying alerting policies to moni7.8Kskills.sh installs
4agents365-ai avatardrawio-skillagents365-ai/drawio-skillUse when the user requests diagrams, flowcharts, architecture diagrams, ER diagrams, UML / sequence / class diagrams, SysML / MBSE diagrams (block definition, i7.4Kskills.sh installs
5aws avatarsecuring-s3-bucketsaws/agent-toolkit-for-awsCreate and secure S3 buckets following AWS best practices for access control, encryption, monitoring, and remediation of misconfigurations. Use when the user wa7.4Kskills.sh installs
6google avatargoogle-agents-cli-onboardinggoogle/skillsOnboarding entrypoint for agents-cli in Agent Platform. It should be used when the user wants to "create a new agent", "develop an agent", "build an agent using7.3Kskills.sh installs