Skip to content

azurerm_function_app_flex_consumption docs have incorrect case for storage_authentication_type #28971

Closed
@dvasdekis

Description

@dvasdekis

Is there an existing issue for this?

  • I have searched the existing issues

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.10.5

AzureRM Provider Version

4.21.1

Affected Resource(s)/Data Source(s)

azurerm_function_app_flex_consumption

Terraform Configuration Files

resource "azurerm_function_app_flex_consumption" "fcfuncapp-c" {
  name                          = "myapp"
  resource_group_name = azurerm_service_plan.flexconsumptionasp-c.resource_group_name
  location            = azurerm_service_plan.flexconsumptionasp-c.location
  storage_container_type      = "blobContainer"
  storage_container_endpoint  = azurerm_storage_data_lake_gen2_filesystem.flexfuncappdata-c.id
  storage_authentication_type = "systemassignedidentity"
  runtime_name                = "python"
  runtime_version             = var.python_version
  maximum_instance_count      = var.maximum_instance_count
  instance_memory_in_mb       = 2048
  service_plan_id     = azurerm_service_plan.flexconsumptionasp-c.id
  site_config {}
  identity {
    type = "SystemAssigned"
  }
}

Debug Output/Panic Output

│ Error: expected storage_authentication_type to be one of ["SystemAssignedIdentity" "StorageAccountConnectionString" "UserAssignedIdentity"], got systemassignedidentity
│ 
│   with azurerm_function_app_flex_consumption.fcfuncapp-c,
│   on ..\..\patterns\components\function_app\resources_fcfa.tf line 87, in resource "azurerm_function_app_flex_consumption" "fcfuncapp-c":
│   87:   storage_authentication_type = "systemassignedidentity"
│ 
╵

Description for storage_authentication_type says possible values are storageaccountconnectionstring, systemassignedidentity, and userassignedidentity. However, running the Terraform, error says storage_authentication_type to be one of ["SystemAssignedIdentity" "StorageAccountConnectionString" "UserAssignedIdentity"]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions