title: How do you set the java version while creating Azure Function App using Terraform?
body: <p>In the Azure Portal I can set the Java Version like follows:
  <a href="https://i.stack.imgur.com/f5p6o.png" rel="nofollow noreferrer">portal image</a></p>
  <p>In the terraform config file I can only set the Azure Function version using:</p>
  <pre><code>resource &quot;azurerm_function_app&quot; &quot;function-app&quot; {
    name                       = &quot;test&quot;
    location                   = azurerm_resource_group.resource-group.location
    resource_group_name        = azurerm_resource_group.resource-group.name
    app_service_plan_id        = azurerm_app_service_plan.service-plan.id
    storage_account_name       = azurerm_storage_account.storage-account.name
    storage_account_access_key = azurerm_storage_account.storage-account.primary_access_key
    app_settings = {
      FUNCTION_APP_EDIT_MODE         = &quot;readOnly&quot;
      WEBSITE_RUN_FROM_PACKAGE       = 1
      FUNCTIONS_EXTENSION_VERSION    = 2
      FUNCTIONS_WORKER_RUNTIME       = &quot;java&quot;
      SCM_DO_BUILD_DURING_DEPLOYMENT = false
    }
  }
  </code></pre>
  <p>When deploying the above configuration only the Runtime is set to java, but since the version is not set, my deployments are not working.</p>
  <p>The result in portal looks as follows:
  <a href="https://i.stack.imgur.com/Bzghg.png" rel="nofollow noreferrer">java stack settings</a></p>