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 - data source log_analytics_workspace_name output is wrong #23265

Closed
1 task done
thormode opened this issue Sep 14, 2023 · 2 comments · Fixed by #23298
Closed
1 task done

Comments

@thormode
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.4.0

AzureRM Provider Version

3.69.0

Affected Resource(s)/Data Source(s)

log_analytics_workspace_name

Terraform Configuration Files

data "azurerm_container_app_environment" "this" {
  name                = "name"
  resource_group_name = "rg_name"
}

data "azurerm_log_analytics_workspace" "this" {
  name                = data.azurerm_container_app_environment.this.log_analytics_workspace_name
  resource_group_name = data.azurerm_container_app_environment.this.resource_group_name
}

Debug Output/Panic Output

Error: log analytics workspaces "**24c9da-****-4948-a0ac-110b51d190e5" (Resource Group "rg_name") was not found

Expected Behaviour

Output should be log analytics workspace name

Actual Behaviour

Output is customerId

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@ziyeqf
Copy link
Contributor

ziyeqf commented Sep 18, 2023

Hi @thormode, thanks for reporting.

Have submitted a PR (#23298) to make it read the workspace name. While I'm sorry we can not get the name for now. It could only get the customer id.

For any other questions please leave comments.
Thanks.

@github-actions github-actions bot added this to the v3.74.0 milestone Sep 19, 2023
Copy link

github-actions bot commented May 6, 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 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants