App Service
Sites
Microsoft.Web/sites
- Control plane
- Supported
- Data plane
- Partial
- API versions
- 12 11 stable
- Ships in
- Plugin Microsoft.Web 2026.11
- Plan
- Standard and above
Data as of 2026-11-20
API versions
The API versions Locally supports for Microsoft.Web/sites.
| API version | Status | Control plane | Data plane |
|---|---|---|---|
| 2026-08-01 | stable | Supported | Partial |
| 2026-07-15 | stable | Supported | Partial |
| 2026-03-15 | stable | Supported | Partial |
| 2026-03-01-preview | preview | Supported | Partial |
| 2025-05-01 | stable | Supported | Partial |
| 2025-03-01 | stable | Supported | Partial |
| 2024-11-01 | stable | Supported | Partial |
| 2024-04-01 | stable | Supported | Partial |
| 2023-12-01 | stable | Supported | Partial |
| 2023-01-01 | stable | Supported | Partial |
| 2021-02-01 | stable | Supported | Partial |
| 2020-12-01 | stable | Supported | Partial |
Note: This is generated from the latest version of the plugin (2026.11) as of 2026-11-20, and may differ in older versions. We aim to keep this information accurate and up to date; if you find something we're missing, then please let us know.
Nested resource types
The resource types nested under Microsoft.Web/sites. Click one to see more information.
Features
- Code deployments built with Oryx and served from a container: Node, .NET, Python, PHP, Java and Ruby.
- Custom containers with
DOCKER|<image>, on port 80 orWEBSITES_PORT. - Sidecars: a
SITECONTAINERSapp runs its main container and sidecars together. - Function Apps, with triggers fired by Locally's Storage, Service Bus, Event Hubs, Cosmos DB and Event Grid emulators.
- Durable Functions, with the task hub in the app's Storage Account, an Azure SQL database or a Durable Task Scheduler (Standard).
- Function keys: HTTP triggers enforce
authLevelwith?code=orx-functions-key. - Kudu: zip deploy, OneDeploy, git push, deployment status and logs, the VFS and command APIs, and log stream.
- Remote build when
SCM_DO_BUILD_DURING_DEPLOYMENTis true. - Stop, start and restart: a stopped app answers 403 and its triggers stop firing.
- Managed identity, system-assigned and user-assigned, including identity-based binding connections.
- App Service Authentication: the
/.authendpoints,X-MS-CLIENT-PRINCIPALheaders, the token store andAuthorization: Bearer. - Health check on
healthCheckPathfor Web Apps. - WebJobs, triggered (on demand or on a schedule) and continuous.
- Startup command from
appCommandLine. - Application Insights: a linked app gets
APPLICATIONINSIGHTS_CONNECTION_STRING. - Event Grid events:
Microsoft.Web.AppUpdatedon restart, stop and app settings changes. - Chaos Engineering can fail, throttle, slow down or cut requests, restart, freeze or kill the app, force a cold start, and delay, drop or duplicate trigger deliveries. Team
Limitations
Sites
- A
WEBSITE_RUN_FROM_PACKAGEapp's files stay writable at this time, where Azure mounts the package read-only. - App Service Authentication only signs in with Microsoft Entra at this time. Google, GitHub, Facebook, Apple and Twitter show a form for entering claims instead.
- Application logs, audit logs and IP security audit logs aren't sent through diagnostic settings at this time.
- Each app runs as a single instance at this time, with no scale-out.
- Function App remote builds use the language runtimes on your machine rather than Azure's build image, and nothing is built for .NET or Java packages at this time.
- Function Apps don't run WebJobs at this time.
- Functions run as processes on your machine using the language runtimes you have installed, rather than in a sandbox.
- Git push only deploys the
mainandmasterbranches at this time. - Health check doesn't ping Function Apps at this time.
- In-process .NET Function Apps (
FUNCTIONS_WORKER_RUNTIME=dotnet) aren't supported. Use the isolated worker model. - Kudu site extensions aren't available at this time.
- On Apple Silicon, Oryx builds run under emulation and some can crash. Build the package first and deploy it with
SCM_DO_BUILD_DURING_DEPLOYMENT=false. - The Functions host doesn't record invocations in Application Insights at this time, so only telemetry your code sends arrives.
- VNet integration isn't supported at this time.
Config
alwaysOnhas no effect, because Locally never idles an app.authsettingsandauthsettingsV2aren't translated into each other at this time. Each reads back as it was written, and whichever was written last is enforced.- Storage mounts (
azureStorageAccounts) only reach custom containers, not code apps, at this time. AnAzureBlobmount is backed by an emulated file share rather than the blob container.
Functions
- A function using a SignalR, SQL, Redis, Kafka or RabbitMQ binding is marked as in error and doesn't run at this time.
Host Name Bindings
- Custom domains aren't served at this time. An app answers on its Locally host name only.
Site Virtual Network Connections
- VNet integration isn't supported at this time, so a connection doesn't change how the app reaches the network.
Slots
- Auto-swap isn't supported at this time.
Microsoft.Web.AppUpdatedevents are raised for the production site only at this time, not for a slot.- Traffic can't be routed between slots at this time, so
x-ms-routing-namehas no effect.
Examples
Runnable examples from the examples library.
Deploying a multiplayer game to App Service
Deploy a Go web game to App Service with Terraform, pulling its image from Container Registry and saving results to a Storage Account, with logs sent to Log Analytics.
Deploying an App Configuration-backed app to App Service
Deploy a C# key-value editor to App Service with Terraform, reading and writing its settings in App Configuration with a managed identity instead of a connection string.
Deploying a .NET Aspire app to App Service
Deploy a .NET Aspire guestbook to App Service using the Bicep that Aspire generates, or run it on your machine with aspire run, with its entries in Blob Storage, a moderation queue in Queue Storage and its output cache in Azure Managed Redis.
Deploying a Cosmos DB-backed app to App Service
Deploy a TypeScript Tasks app to App Service with Terraform, storing its data in Cosmos DB and connecting to it with a managed identity.
Deploying a PostgreSQL-backed app to App Service
Build a TypeScript Notes app into Container Registry and deploy it to App Service with Terraform, connecting to PostgreSQL Flexible Server with a managed identity's Entra token instead of a password.
Deploying a MySQL-backed Python app to App Service
Build a Python (FastAPI) Notes app into Container Registry and deploy it to App Service with Terraform, connecting to MySQL Flexible Server with a managed identity's Entra token instead of a password.
Running WordPress on App Service with MySQL
Deploy WordPress to App Service with Terraform, backed by a MySQL Flexible Server.
Deploying a SAML application to App Service
Deploy a SAML-authenticated CRM to App Service with Terraform, pulling its image from Container Registry, and sign in to it as users from the Directory emulator with different app roles.
Running a MassTransit saga on App Service with Service Bus and Redis
Deploy two .NET apps to App Service with Terraform that talk through MassTransit over Service Bus, keeping the order saga's state in Azure Cache for Redis and signing in to both with managed identities.
Testing regional failover with App Service, Blob Storage and Service Bus
Deploy a .NET orders API to App Service with Terraform, with a Storage Account and a Service Bus namespace in two regions, then take the primary region offline with Chaos Engineering to see whether the app fails over.
Triggering a Function App from Event Grid
Deploy a Node.js Function App with Terraform that an Event Grid system topic triggers on every resource deployment in the subscription, recording each one in PostgreSQL.
Running Durable Functions on a Durable Task Scheduler
Deploy a .NET Durable Functions app with Terraform that uses a Durable Task Scheduler as its backend, connecting with a managed identity, with orchestration versioning and extended sessions turned on.
Reading Key Vault secrets from App Service
Deploy a TypeScript app to App Service with Terraform that reads a Key Vault secret two ways, through a Key Vault reference and directly with the SDK, using a managed identity, then rotate the secret to see when each one picks up the new version.
Signing in to App Service with App Service Authentication
Deploy a Python app to App Service with Terraform behind App Service Authentication (EasyAuth), using an app registration in the Directory emulator, and see the identity and tokens App Service passes to the app.
Blue/green deployments with App Service deployment slots
Deploy two releases of a TypeScript app to a web app and its staging slot with Terraform, then swap them to see which app settings move with the release and which stay with the slot.
Passing messages from App Service through Service Bus into Table Storage
Deploy a producer and a consumer to App Service with Terraform that pass messages through a Service Bus queue into Table Storage, each with its own managed identity and only the roles it needs.
Passing messages from a Function App through Service Bus into Table Storage
Deploy a Node.js Function App with Terraform that sends messages to a Service Bus queue, picks them up with a Service Bus trigger and stores them in Table Storage, with every binding connecting through a managed identity.
Streaming telemetry from App Service through Event Hubs
Deploy a producer and a consumer to App Service with Terraform that stream device readings through a partitioned Event Hub, with the consumer keeping its checkpoints in Blob Storage so it picks up where it left off after a restart.
Firing an Azure Monitor alert from an App Service app
Deploy a TypeScript app to App Service with Terraform that sends its telemetry to Application Insights, where a log search alert rule counts its failed requests and an Action Group posts the alert to a webhook on a second app.
Running a URL shortener on a Function App and App Service with PostgreSQL
Deploy a .NET URL shortener with Terraform: a Function App serves the links and an admin site on App Service signs admins in with App Service Authentication, both using PostgreSQL and Application Insights through a managed identity.
Fronting two Function Apps with API Management
Deploy two Node.js Function Apps behind one API Management gateway with Terraform, which checks a single subscription key, applies a rate limit and adds each app's function key so callers can't go around it.
Deploy a Function App to Locally using an ARM Template
Provisions a Storage Account, a Linux App Service Plan and a Linux Function App, into a Resource Group of your choosing.
Deploy a Linux Web App to Locally using an ARM Template
Provisions a Linux App Service Plan and a Linux Web App, into a Resource Group of your choosing.
Deploy a Function App to Locally using a Bicep Template
Provisions a Storage Account, a Linux App Service Plan and a Linux Function App, into a Resource Group of your choosing.
Deploy a Linux Web App to Locally using a Bicep Template
Provisions a Linux App Service Plan and a Linux Web App, into a Resource Group of your choosing.
Deploy a Function App to Locally using Terraform and the Azure/azapi provider
Provisions a Resource Group containing a Storage Account, a Linux App Service Plan and a Linux Function App.
Deploy a Linux Web App to Locally using Terraform and the Azure/azapi provider
Provisions a Resource Group containing a Linux App Service Plan and a Linux Web App.
Deploy a Function App to Locally using Terraform and the hashicorp/azurerm provider
Provisions a Resource Group containing a Storage Account, a Linux App Service Plan and a Linux Function App.
Deploy a Linux Web App to Locally using Terraform and the hashicorp/azurerm provider
Provisions a Resource Group containing a Linux App Service Plan and a Linux Web App.
Deploy a Function App to Locally using OpenTofu and the Azure/azapi provider
Provisions a Resource Group containing a Storage Account, a Linux App Service Plan and a Linux Function App.
Deploy a Linux Web App to Locally using OpenTofu and the Azure/azapi provider
Provisions a Resource Group containing a Linux App Service Plan and a Linux Web App.
Deploy a Function App to Locally using OpenTofu and the opentofu/azurerm provider
Provisions a Resource Group containing a Storage Account, a Linux App Service Plan and a Linux Function App.
Deploy a Linux Web App to Locally using OpenTofu and the opentofu/azurerm provider
Provisions a Resource Group containing a Linux App Service Plan and a Linux Web App.