Skip to content

Add App Service IaC template with Linux and Windows variants#24

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-05212f45-eaf7-496b-834a-082d67e40898
Draft

Add App Service IaC template with Linux and Windows variants#24
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-05212f45-eaf7-496b-834a-082d67e40898

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Aug 26, 2025

This PR adds a new Infrastructure as Code (IaC) template for deploying Azure App Service using Azure Verified Modules (AVM). The template provides a simpler alternative to the existing App Service Environment (ASE) template for scenarios that don't require advanced networking and isolation features.

New Template Features

The new appservice/ directory contains a complete template suite with two variants:

Linux App Service (Default)

  • Runtime: Node.js 18 LTS on Linux containers
  • Files: main.bicep + appservice.bicep
  • App Service Plan: Linux B1 SKU for cost-effective hosting

Windows App Service

  • Runtime: .NET 8.0 on Windows
  • Files: main-windows.bicep + appservice-windows.bicep
  • App Service Plan: Windows B1 SKU

Both variants include:

  • HTTPS-only configuration
  • System-assigned managed identity
  • Ready-to-deploy templates with minimal configuration
  • Cost-effective B1 tier suitable for development and demo scenarios

Template Structure

Following the established repository patterns:

appservice/
├── main.bicep                    # Linux variant entry point
├── appservice.bicep             # Linux App Service resources
├── main-windows.bicep           # Windows variant entry point
├── appservice-windows.bicep     # Windows App Service resources
├── README.md                    # Comprehensive documentation
└── .cheatsheet                  # Quick deployment commands

Use Cases

This template is ideal for:

  • Simple web application hosting
  • Development and testing environments
  • Proof of concepts and learning scenarios
  • Cost-effective application deployment

For production workloads requiring network isolation and advanced features, users should continue using the existing ASE template.

Deployment

Both templates deploy at subscription level and create their own resource groups:

# Linux (Node.js)
az deployment sub create --location swedencentral --template-file main.bicep

# Windows (.NET)
az deployment sub create --location swedencentral --template-file main-windows.bicep

The templates use the latest stable versions of Azure Verified Modules and follow all established naming and tagging conventions from other templates in the repository.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: bicep build ase.bicep --stdout (dns block)
    • Triggering command: bicep lint main.bicep (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits August 26, 2025 12:40
Co-authored-by: h2floh <29010283+h2floh@users.noreply.github.com>
Co-authored-by: h2floh <29010283+h2floh@users.noreply.github.com>
Copilot AI changed the title [WIP] Hey please add another IaC template for deploying App Service Add App Service IaC template with Linux and Windows variants Aug 26, 2025
Copilot AI requested a review from h2floh August 26, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants