hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.46k stars 4.54k forks source link

Support for Azure function Apps to run in a container app environment #23470

Open Phiph opened 9 months ago

Phiph commented 9 months ago

Is there an existing issue for this?

Community Note

Description

Hi there!

With the new https://github.com/Azure/azure-functions-dapr-extension I'd like to be able to deploy an azure function container to be able to target a container app environment.

The current implementation is in preview, but sounds very promising for those using the Dapr Runtime.

see https://github.com/Azure/azure-functions-dapr-extension/pull/165/files for bicep examples of how the AzureRm handles this at the moment.

New or Affected Resource(s)/Data Source(s)

azurerm_linux_function_app

Potential Terraform Configuration

resource "azurerm_linux_function_app" "example" {
  name                = "example-linux-function-app"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location

  storage_account_name       = azurerm_storage_account.example.name
  storage_account_access_key = azurerm_storage_account.example.primary_access_key
  container_app_environment            = azurerm_container_app_environment.example.id

  site_config {}
}

References

https://github.com/Azure/azure-functions-dapr-extension/pull/165/

xiaxyi commented 6 months ago

Thanks @Phiph for raising this issue, I'm working on this task, will update the progress once the PR is ready.

nathanblair commented 4 months ago

Is this PR related? #25072

TechnicallyJoe commented 3 months ago

Thanks @Phiph for raising this issue, I'm working on this task, will update the progress once the PR is ready.

Any news here? This is actively keeping us from using container app environments

xiaxyi commented 3 months ago

@TechnicallyJoe Currently, the api team is working on updating their api, once the updates are merged, I can continue to get the work done.

leolorenzoluis commented 2 months ago

@xiaxyi Any ETA?

xiaxyi commented 2 months ago

@leolorenzoluis The Terraform progress is still being blocked by the api issue, I'll let you know once TF is unblocked.

codylittle commented 1 month ago

Hey @xiaxyi, is there anywhere we can follow the API team's progress? Given Functions on ACA team is releasing a number of API changes soon and around MS build, I'd have to assume they'd be approaching some kind of stable release.

oniskanen commented 1 month ago

@xiaxyi, note that Azure Functions on Azure Container Apps went GA 2 weeks ago: https://azure.microsoft.com/en-us/updates/generally-available-azure-functions-can-now-run-on-azure-container-apps/

Terraform support missing is not good for wider adoption.