Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function App - Missing dotnet 8.0 for both Windows and Linux #23637

Closed
1 task done
AdamCoulterOz opened this issue Oct 22, 2023 · 2 comments · Fixed by #23638
Closed
1 task done

Function App - Missing dotnet 8.0 for both Windows and Linux #23637

AdamCoulterOz opened this issue Oct 22, 2023 · 2 comments · Fixed by #23638

Comments

@AdamCoulterOz
Copy link
Contributor

AdamCoulterOz commented Oct 22, 2023

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 "+1" or "me too" comments, 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.6.2

AzureRM Provider Version

3.77.0

Affected Resource(s)/Data Source(s)

azurerm_linux_function_app, azurerm_windows_function_app

Terraform Configuration Files

provider "azurerm" {
  features {}
}

resource "azurerm_linux_function_app" "linux-example" {
  name                = "xxxx"
  resource_group_name = "xxxx"
  location            = "xxxx"

  storage_account_name       = "xxxx"
  storage_account_access_key = "xxxx"
  service_plan_id            = azurerm_service_plan.linux-example

  site_config {
    application_stack {
      dotnet_version              = "8.0" # currently only allows 3.1, 6.0, 7.0
    }
  }
}

resource "azurerm_windows_function_app" "windows-example" {
  name                = "dotnet8-example-windows-function-app"
  resource_group_name = "example-resources"
  location            = "Australia East"

  storage_account_name       = "xxxx"
  storage_account_access_key = "xxxx"
  service_plan_id            = azurerm_service_plan.windows-example

  site_config {
    application_stack {
      dotnet_version              = "v8.0" # currently only allows v3.0, v4.0, v6.0 and v7.0
      use_dotnet_isolated_runtime = true
    }
  }
}

resource "azurerm_service_plan" "windows-example" {
  name                = "example-windows-app-service-plan"
  resource_group_name = "xxxx"
  location            = "xxxx"
  os_type             = "Windows"
  sku_name            = "Y1"
}

resource "azurerm_service_plan" "linux-example" {
  name                = "example-linux-app-service-plan"
  resource_group_name = "xxxx"
  location            = "xxxx"
  os_type             = "Linux"
  sku_name            = "Y1"
}

Debug Output/Panic Output

N/A

Expected Behaviour

Deploy with (Windows|Linux)FxVersion = "dotnet|8.0"

Actual Behaviour

Error, as 8.0 (Linux) or v8.0 (Windows) is not an allowed value currently.

Steps to Reproduce

terraform plan

Error: expected site_config.0.application_stack.0.dotnet_version to be one of ["3.1" "6.0" "7.0"], got 8.0
Error: expected site_config.0.application_stack.0.dotnet_version to be one of ["v3.0" "v4.0" "v6.0" "v7.0"], got 8.0

Important Factoids

No response

References

https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-csharp#tabpanel_2_v4_isolated-process

@MathBouma
Copy link

Given .NET 8 was just released today this is now a GA feature (No longer preview)

@github-actions github-actions bot added this to the v3.82.0 milestone Nov 17, 2023
Copy link

github-actions bot commented May 1, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants