avm-res-web-site

Azure/avm-res-web-site/azurerm

Terraform Module HCL AZURERM ✓ Verified

Terraform Azure Verified Resource Module for Web/Function App

Install
module "avm-res-web-site" {
source = "Azure/avm-res-web-site/azurerm"
version = "0.21.0"
}
plain text: /constructs/tfmod-azure-avm-res-web-site-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (50)
NameTypeDescriptionDefault
namestringThe name which should be used for the App Service. required
service_plan_resource_idstringThe resource ID of the App Service Plan to deploy the App Service in. required
locationstringAzure region where the resource should be deployed. required
dapr_configobject({ app_id (Optional) Dapr configuration for the App Service. Only applicable to apps hostenull
client_certificate_modestringThe client certificate mode for the App Service. Possible values are `Required`,"Required"
diagnostic_settingsmap(object({ name = option A map of diagnostic settings to create on the App Service Environment (ASE). T{}
enabledboolIs the App Service enabled? Defaults to `true`.true
fc1_runtime_namestringThe Runtime of the Flex Consumption Function App. Possible values are `node`, `dnull
ip_modestring(Optional) Specifies the IP mode of the app. Possible values are `IPv4`, `IPv4Annull
resource_configobject({ cpu = optional(Optional) Function app resource requirements for Container App environment hostnull
functions_extension_versionstringThe version of the Azure Functions runtime to use. Defaults to `~4`."~4"
https_onlyboolShould the App Service only be accessible over HTTPS? Defaults to `true`.true
key_vault_reference_identitystringThe identity to use for Key Vault references.null
public_network_access_enabledboolShould the App Service be accessible from the public network? Defaults to `falsefalse
site_configobject({ always_on An object that configures the App Service's site configuration. These map to the{}
ssh_enabledbool(Optional) Should SSH be enabled for the App Service?null
storage_container_endpointstringThe backend storage container endpoint for Flex Consumption Function Apps.null
bundle_versionstringThe version of the extension bundle to use. Defaults to `[1.*, 2.0.0)`. (Logic A"[1.*, 2.0.0)"
enable_telemetryboolThis variable controls whether or not telemetry is enabled for the module. For mtrue
slots_storage_shares_to_mount_sensitive_valuesmap(string)A map of sensitive values (Storage Access Key) for the Storage Account SMB file {}
storage_uses_managed_identityboolShould the Storage Account use a Managed Identity? Defaults to `false`.false
lockobject({ kind = string The lock level to apply. - `kind` - (Required) The type of lock. Possible valuenull
maximum_instance_countnumberThe number of workers this function app can scale out to.null
… and 10 more inputs
Outputs (16)
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 valu
system_assigned_mi_principal_id — The system-assigned managed identity principal ID.
Resources (4)
azapi_resourceazapi_resource_actionmodtm_telemetryrandom_uuid
Details
FrameworkTerraform Module
LanguageHCL
Version0.21.0
Cloud AZURERM
★ Stars28
Forks35
Total downloads344.2k
Inputs50
Outputs16
Resources4
Examples21
Submodules13
LicenseMIT
NamespaceAzure
Updated