app-service

claranet/app-service/azurerm

Terraform Module HCL AZURERM

Terraform module composition (feature) for Azure App Service (Service Plan + WebApp)

Install
module "app-service" {
source = "claranet/app-service/azurerm"
version = "8.6.0"
}
plain text: /constructs/tfmod-claranet-app-service-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure App Service Web (Linux or Windows) ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![OpenTofu Registry](https://search.opentofu.org/module/claranet/app-service/azurerm/latest) This Terraform module creates an Azure Service Plan using our dedicated Terraform module and creates an Azure App Service Web (Linux or Windows) associated with an Application Insights component and activated Diagnostics Logs. Limitations Diagnostics logs only works fine for Windows for now. Untested with App Service slots. Using a single certificate file on multiple domains with the custom_domains variable is not supported. Use a Key Vault certificate instead. Global versioning rule for Claranet Azure modules | Module version | Terraform version | OpenTofu version | AzureRM version |

Inputs (50)
NameTypeDescriptionDefault
os_typestringThe O/S type for the App Services to be hosted in this plan. Possible values inc required
location_shortstringShort string for Azure location. required
environmentstringProject environment. required
logs_destinations_idslist(string)List of destination resources IDs for logs diagnostic destination. Can be `Stora required
stackstringProject stack name. required
sku_namestringThe SKU for the plan. Possible values include B1, B2, B3, D1, F1, I1, I2, I3, I1 required
resource_group_namestringResource group name. required
client_namestringClient name/account used in naming. required
backup_enabledbool`true` to enable App Service backup.false
backup_storage_account_containerstringName of the container in the Storage Account if App Service backup is enabled."webapps"
public_network_access_enabledboolWhether enable public access for the App Service.false
scm_allowed_service_tagslist(string)SCM Service Tags restriction for App Service. See [documentation](https://www.te[]
client_affinity_enabledboolClient affinity activation for App Service. See [documentation](https://www.terrfalse
maximum_elastic_worker_countnumberThe maximum number of workers to use in an Elastic SKU Plan. Cannot be set unlesnull
site_configanySite config for App Service. See [documentation](https://www.terraform.io/docs/p{}
backup_retention_period_in_daysnumberRetention in days for the App Service backup.30
sticky_settingsobject({ app_setting_namesLists of connection strings and app settings to prevent from swapping between slnull
scm_allowed_cidrslist(string)SCM IPs restriction for App Service. See [documentation](https://www.terraform.i[]
scm_allowed_subnet_idslist(string)SCM subnets restriction for App Service. See [documentation](https://www.terrafo[]
staging_slot_enabledboolCreate a staging slot alongside the App Service for blue/green deployment purpostrue
backup_keep_at_least_one_backupboolShould the service keep at least one backup, regardless of age of backup.true
default_tags_enabledboolOption to enable or disable default tags.true
app_settingsmap(string)Application settings for App Service. See [documentation](https://www.terraform.{}
staging_slot_mount_pointslist(object({ name Storage Account mount points for staging slot. Name is generated if not set and []
docker_imageobject({ registry Docker image to use for this App Service.null
staging_slot_site_configanyStaging slot site config for App Service. See [documentation](https://www.terraf{}
extra_tagsmap(string)Extra tags to add.{}
backup_storage_account_idstringStorage account ID to use if App Service backup is enabled.null
… and 10 more inputs
Outputs (4)
module_service_plan — Service Plan output object. Please refer to [module documentation](https://github.com/claranet/terra
module_container — App Service Container (Container WebApp) output object if Container is choosen. Please refer to `./m
module_linux — App Service Linux (Linux WebApp) output object if Linux is choosen. Please refer to `./modules/linux
module_windows — App Service Windows (Windows WebApp) output object if Windows is choosen. Please refer to `./modules
Resources (1)
null_resource
Details
FrameworkTerraform Module
LanguageHCL
Version8.6.0
Cloud AZURERM
★ Stars16
Forks11
Total downloads74.6k
Inputs50
Outputs4
Resources1
Examples5
Submodules4
LicenseApache-2.0
Namespaceclaranet
Updated