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

azurerm_container_app - Ingress type TCP support #21133

Open
1 task done
chollamuthunarayanan opened this issue Mar 27, 2023 · 6 comments
Open
1 task done

azurerm_container_app - Ingress type TCP support #21133

chollamuthunarayanan opened this issue Mar 27, 2023 · 6 comments

Comments

@chollamuthunarayanan
Copy link

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

Description

I would like to host a TCP based application in Azure container app. With the current provider, unable to make the ingress type as "TCP". Do not have option to change. It is by default comes with HTTP.

resource "azurerm_container_app" "ucps" {
  name                           = "${var.resource_prefix}-cont-apps"
  container_app_environment_id   = azurerm_container_app_environment.ucps.id
  resource_group_name            = azurerm_resource_group.upr_rg.name
  revision_mode                  = "Single"
  ingress {
    external_enabled = true
    target_port      = 80
    transport        = "auto"
    traffic_weight {
      percentage     = 100
      latest_revision= true
    }
  }

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

azurerm_v3.43.0

Potential Terraform Configuration

resource "azurerm_container_app" "ucps" {
  name                           = "${var.resource_prefix}-cont-apps"
  container_app_environment_id   = azurerm_container_app_environment.ucps.id
  resource_group_name            = azurerm_resource_group.upr_rg.name
  revision_mode                  = "Single"
  ingress {
    external_enabled = true
    target_port      = 80
    transport        = "auto"
    => Expecting an option here to make the ingress type as "TCP"
    traffic_weight {
      percentage     = 100
      latest_revision= true
    }
  }

References

No response

@christoe
Copy link

Looks as if API version 2022-10-01 adds another transport type (tcp) that enables this: https://learn.microsoft.com/en-us/azure/templates/microsoft.app/2022-10-01/containerapps?pivots=deployment-language-arm-template#ingress-1 but current implementation seem to be using API version 2022-03-01.

@chollamuthunarayanan
Copy link
Author

Thank you for the update @christoe . Now I have switched to azapi provider and able to create the resource with tcp port.
https://learn.microsoft.com/en-us/azure/templates/microsoft.app/containerapps?pivots=deployment-language-terraform

@SamuelHaleMN
Copy link

SamuelHaleMN commented Jul 7, 2023

+1 to this issue being a blocker for us w/ ACA + Azure Application Gateway.

@Alfonsoaz01
Copy link

I face the same problem, any updates here? Azapi and Azure CLI are working fine...

@SpartakusMd
Copy link
Contributor

SpartakusMd commented Nov 3, 2023

Fixed in #23752. Could you confirm it's working?

@Alfonsoaz01
Copy link

I have also checked and it is working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants