---
type: resource-type
title: AppService
description: azure resource type Microsoft.Web/sites
name: AppService
lexicon: azure
resource_type: Microsoft.Web/sites
---
`Microsoft.Web/sites`, a resource type of the azure lexicon.

## Properties

- `name` (`string`, required): Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter.
- `properties` (`WebApp_SiteProperties`, required): Site resource specific properties
- `extendedLocation` (`WebApp_ExtendedLocation`, optional): Extended Location.
- `identity` (`WebApp_ManagedServiceIdentity`, optional): Managed service identity.
- `kind` (`string`, optional): Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.
- `location` (`string`, optional): Resource Location.
- `resources` (`any[]`, optional)
- `tags` (`Record<string, unknown>`, optional): Resource tags.

## Attributes

- `defaultHostName`
- `id`
- `provisioningState`

## Governed by

- [AZR020](/rules/AZR020.md): App Service missing managed identity — enable SystemAssigned or UserAssigned identity
- [AZR021](/rules/AZR021.md): App Service missing HTTPS-only — set httpsOnly to true to enforce encrypted traffic
- [AZR022](/rules/AZR022.md): App Service missing minimum TLS 1.2 — set minTlsVersion in siteConfig to enforce TLS 1.2+
