Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/app-service/README.md
1# Azure App Service23Hosting patterns and best practices for Azure App Service.45## When to Use67- Traditional web applications8- REST APIs without containerization9- .NET, Node.js, Python, Java, PHP applications10- When Docker is not required/desired11- When built-in deployment slots are needed1213## Service Type in azure.yaml1415```yaml16services:17my-web:18host: appservice19project: ./src/my-web20```2122## Required Supporting Resources2324| Resource | Purpose |25|----------|---------|26| App Service Plan | Compute hosting |27| Application Insights | Monitoring |28| Key Vault | Secrets (optional) |2930## Runtime Stacks3132> 💡 **Tip:** Prefer Linux App Service Plans for Node.js, Python, and Java. Use Windows only when explicitly required (e.g. .NET Framework). See [Bicep Patterns](bicep.md) for Linux vs Windows configuration.3334### Linux (recommended)3536| Language | linuxFxVersion |37|----------|----------------|38| Node.js 18 | `NODE\|18-lts` |39| Node.js 20 | `NODE\|20-lts` |40| Python 3.11 | `PYTHON\|3.11` |41| .NET 8 | `DOTNETCORE\|8.0` |42| Java 17 | `JAVA\|17-java17` |4344### Windows4546| Language | Setting |47|----------|---------|48| Node.js | `WEBSITE_NODE_DEFAULT_VERSION: '~20'` (app setting) |49| .NET 8 | Built-in (no extra config) |5051## SKU Selection5253| SKU | Use Case |54|-----|----------|55| F1/D1 | Development/testing (free/shared) |56| B1-B3 | Small production, basic features |57| S1-S3 | Production with auto-scale, slots |58| P1v3-P3v3 | High-performance production |5960## Health Checks6162Always configure health check path:6364```bicep65siteConfig: {66healthCheckPath: '/health'67}68```6970Endpoint should return 200 OK when healthy.7172## Templates7374For App Service templates with composable recipes (SQL, Cosmos DB, Auth, Redis), see [Template Selection](templates/selection.md).7576## Common Data Backends7778When pairing App Service with a data layer, load the corresponding service references:7980| Data Service | Reference |81| ------------ | ----------------------------------------- |82| Azure SQL | [SQL Database](../sql-database/README.md) |83| Cosmos DB | [Cosmos DB](../cosmos-db/README.md) |8485## References8687- [Bicep Patterns](bicep.md)88- [Deployment Slots](deployment-slots.md)89- [Auto-Scaling](scaling.md)90- [Networking](networking.md)91- [SKU Selection](sku-selection.md)92- [Custom Domains](custom-domains.md)93