github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/azure/appservice/AVD-AZU-0004/Terraform.md (about) 1 2 You can redirect all HTTP requests to the HTTPS port. 3 4 ```hcl 5 resource "azurerm_function_app" "good_example" { 6 name = "test-azure-functions" 7 location = azurerm_resource_group.example.location 8 resource_group_name = azurerm_resource_group.example.name 9 app_service_plan_id = azurerm_app_service_plan.example.id 10 storage_account_name = azurerm_storage_account.example.name 11 storage_account_access_key = azurerm_storage_account.example.primary_access_key 12 os_type = "linux" 13 https_only = true 14 } 15 16 ``` 17 18 #### Remediation Links 19 - https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/function_app#https_only 20