avm-res-web-site
Azure/avm-res-web-site/azurerm
Terraform Azure Verified Resource Module for Web/Function App
Azure Verified Module for App Service (Web Apps, Function Apps, and Logic Apps) This is an Azure Verified Module (AVM) for deploying and managing Azure App Service resources, including Web Apps, Function Apps, and Logic Apps (Standard). It supports Linux and Windows operating systems, deployment slots, custom domains, managed identities, private endpoints, diagnostic settings, Application Insights integration, IP restrictions, auto heal, storage mounts, and Flex Consumption plans. Requirements The following requirements are needed by this module: - terraform (>= 1.9, azapi (~> 2.4) - modtm (~> 0.3) - random (>= 3.5.0, Required Inputs The following input variables are required: location Description: Azure region where the resourc
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | The name which should be used for the App Service. | required |
| service_plan_resource_id | string | The resource ID of the App Service Plan to deploy the App Service in. | required |
| location | string | Azure region where the resource should be deployed. | required |
| dapr_config | object({ app_id | (Optional) Dapr configuration for the App Service. Only applicable to apps hoste | null |
| client_certificate_mode | string | The client certificate mode for the App Service. Possible values are `Required`, | "Required" |
| diagnostic_settings | map(object({ name = option | A map of diagnostic settings to create on the App Service Environment (ASE). T | {} |
| enabled | bool | Is the App Service enabled? Defaults to `true`. | true |
| fc1_runtime_name | string | The Runtime of the Flex Consumption Function App. Possible values are `node`, `d | null |
| ip_mode | string | (Optional) Specifies the IP mode of the app. Possible values are `IPv4`, `IPv4An | null |
| resource_config | object({ cpu = optional | (Optional) Function app resource requirements for Container App environment host | null |
| functions_extension_version | string | The version of the Azure Functions runtime to use. Defaults to `~4`. | "~4" |
| https_only | bool | Should the App Service only be accessible over HTTPS? Defaults to `true`. | true |
| key_vault_reference_identity | string | The identity to use for Key Vault references. | null |
| public_network_access_enabled | bool | Should the App Service be accessible from the public network? Defaults to `false | false |
| site_config | object({ always_on | An object that configures the App Service's site configuration. These map to the | {} |
| ssh_enabled | bool | (Optional) Should SSH be enabled for the App Service? | null |
| storage_container_endpoint | string | The backend storage container endpoint for Flex Consumption Function Apps. | null |
| bundle_version | string | The version of the extension bundle to use. Defaults to `[1.*, 2.0.0)`. (Logic A | "[1.*, 2.0.0)" |
| enable_telemetry | bool | This variable controls whether or not telemetry is enabled for the module. For m | true |
| slots_storage_shares_to_mount_sensitive_values | map(string) | A map of sensitive values (Storage Access Key) for the Storage Account SMB file | {} |
| storage_uses_managed_identity | bool | Should the Storage Account use a Managed Identity? Defaults to `false`. | false |
| lock | object({ kind = string | The lock level to apply. - `kind` - (Required) The type of lock. Possible value | null |
| maximum_instance_count | number | The number of workers this function app can scale out to. | null |
| … and 10 more inputs | |||
resource — This is the full output for the resource.system_assigned_mi_principal_id_slots — Map of system-assigned managed identity principal IDs for deployment slots.kind — The kind of app service.location — The location of the resource.name — The name of the resource.resource_lock — The locks of the resources.deployment_slot_locks — The locks of the deployment slots.identity_principal_id — The system-assigned managed identity principal ID of the resource.private_endpoints — A map of private endpoints. The map key is the supplied input to var.private_endpoints.resource_id — The resource ID of the App Service.resource_uri — The default hostname of the resource.active_slot — The active slot resource ID.deployment_slots — The deployment slots.os_type — The operating system type of the resource.resource_private_endpoints — A map of private endpoints. The map key is the supplied input to var.private_endpoints. The map valusystem_assigned_mi_principal_id — The system-assigned managed identity principal ID.