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_environment - log_analytics_workspace_id - incorrect case match for attribute validation #26327

Open
1 task done
camilosantana opened this issue Jun 13, 2024 · 1 comment

Comments

@camilosantana
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 comments along the lines of "+1", "me too" or "any updates", 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.8.5

AzureRM Provider Version

3.103.1

Affected Resource(s)/Data Source(s)

azurerm_container_app_environment

Terraform Configuration Files

data calls and copy/paste from the console will give you an id that `azurerm_container_app_environment` won't accept.

error:


│ The parsed Resource ID was missing a value for the segment at position 2
│ (which should be the literal value "resourceGroups").


Example config

```hcl
data "azurerm_log_analytics_workspace" "ace" {
  name                = "a_workspace"
  resource_group_name = "a_resource_group"
}
resource "azurerm_container_app_environment" "a" {
  name                           = "example"
  location                       = "eastus"
  resource_group_name            = "a_resource_group"
  infrastructure_subnet_id       = azurerm_subnet.a[0].id
  internal_load_balancer_enabled = true
  # log_analytics_workspace_id     = data.azurerm_log_analytics_workspace.ace.id # this tries to force replacement as of azrm 3.103.1
  workload_profile {
    maximum_count         = 3
    minimum_count         = 1
    name                  = "basic"
    workload_profile_type = "D4"
  }
}

Debug Output/Panic Output

│ The parsed Resource ID was missing a value for the segment at position 2
│ (which should be the literal value "resourceGroups").

Expected Behaviour

accept the input as valid

Actual Behaviour

input is rejected

Steps to Reproduce

run the above terraform
you'll have to finagle the subnet because of race condition with delegation (that's another issue altogether)

Important Factoids

No response

References

No response

@jiaweitao001
Copy link
Contributor

Hi @camilosantana , thanks for opening the issue. Could you please provide an example TF config here so we can try to reproduce this error? Thanks.

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

2 participants