Is there an existing issue for this?
Documentation of azurerm_function_app_flex_consumption (https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/function_app_flex_consumption) states that the parameter https_only can be configured. However, when doing so, using the latest provider version (4.22.0 at this time) shows an error.
When applying it without the parameter, then changing it manually in the portal and making a plan again shows a no-change plan.
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Terraform Version
1.11.1
AzureRM Provider Version
4.22.0
Affected Resource(s)/Data Source(s)
azurerm_function_app_flex_consumption
Terraform Configuration Files
resource "azurerm_function_app_flex_consumption" "this" {
name = local.function_name
resource_group_name = azurerm_resource_group.this.name
location = var.region
service_plan_id = azurerm_service_plan.this.id
runtime_name = "powershell"
runtime_version = "7.4"
storage_container_type = "blobContainer"
storage_container_endpoint = "${azurerm_storage_account.this.primary_blob_endpoint}${azurerm_storage_container.this.name}"
storage_authentication_type = "StorageAccountConnectionString"
storage_access_key = azurerm_storage_account.this.primary_access_key
webdeploy_publish_basic_authentication_enabled = true
https_only = true
site_config {
minimum_tls_version = "1.3"
cors {
allowed_origins = ["https://portal.azure.com"]
}
}
tags = var.default_tags
}
Debug Output/Panic Output
Initializing plugins and modules...
╷
│ Error: Unsupported argument
│
│ on function.tf line 50, in resource "azurerm_function_app_flex_consumption" "this":
│ 50: https_only = true
│
│ An argument named "https_only" is not expected here.
Expected Behaviour
Deploying the function with HTTPS only feature
Actual Behaviour
Failing at plan stage
Steps to Reproduce
No response
Important Factoids
No response
References
No response
Is there an existing issue for this?
Documentation of azurerm_function_app_flex_consumption (https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/function_app_flex_consumption) states that the parameter
https_onlycan be configured. However, when doing so, using the latest provider version (4.22.0 at this time) shows an error.When applying it without the parameter, then changing it manually in the portal and making a plan again shows a no-change plan.
Community Note
Terraform Version
1.11.1
AzureRM Provider Version
4.22.0
Affected Resource(s)/Data Source(s)
azurerm_function_app_flex_consumption
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Deploying the function with HTTPS only feature
Actual Behaviour
Failing at plan stage
Steps to Reproduce
No response
Important Factoids
No response
References
No response