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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Behavior with Azure Container Environment Provisioning" #25967

Open
1 task done
mohamedcabdiweli opened this issue May 14, 2024 · 0 comments
Open
1 task done

Comments

@mohamedcabdiweli
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 and review the contribution guide to help.

Terraform Version

1.0.0

AzureRM Provider Version

3.103.1

Affected Resource(s)/Data Source(s)

azurerm_container_app_environment

Terraform Configuration Files

provider "azurerm" {
  features {}
  version = "=3.103.1"
}

resource "azurerm_container_app_environment" "acae" {
   name                              = ("acaenv-mgmt-controller-${local.settings.region_abr}-${local.settings.org}-${local.settings.env}-01")
    infrastructure_subnet_id         = azurerm_subnet.pe.id
    location                         = var.region
   resource_group_name               = azurerm_resource_group.mgmt.name
    log_analytics_workspace_id       = azurerm_log_analytics_workspace.la.id
   internal_load_balancer_enabled    = true
}
resource "azurerm_container_app" "aca" {
  name                         = ("aca-mgmt-mgmt-${local.settings.region_abr}-${local.settings.org}-${local.settings.env}-01")
  container_app_environment_id = azurerm_container_app_environment.aca.id
  resource_group_name          = azurerm_resource_group.mgmt.name
  revision_mode                = "Single"

  template {
    container {
      name   = ("aca-mgmt-mgmt-${local.settings.region_abr}-${local.settings.org}-${local.settings.env}-01")
      image  = "mcr.microsoft.com/azuredocs/containerapps-helloworld:latest"
      cpu    = 0.25
      memory = "0.5Gi"
    }
  }
}

Debug Output/Panic Output

2024-05-14T10:08:42.690Z [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2024-05-14T10:08:42.698Z [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/azurerm/3.103.1/linux_amd64/terraform-provider-azurerm_v3.103.1_x5 pid=2887
2024-05-14T10:08:42.698Z [DEBUG] plugin: plugin exited

Expected Behaviour

The Azure Container Environment should be captured in the state file after deployment and managed by Terraform without errors.

Actual Behaviour

The container environment is deployed but not captured in the Terraform state file. Additionally, there's an error indicating a provider version mismatch, even though no newer provider features are utilized.

Steps to Reproduce

terraform init
terraform plan
terraform apply

Important Factoids

No response

References

na

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

No branches or pull requests

1 participant