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_application_insights app_id refreshing/pulling incorrect value with 3.98 #25519

Closed
1 task done
drdamour opened this issue Apr 5, 2024 · 3 comments · Fixed by #25520
Closed
1 task done

azurerm_application_insights app_id refreshing/pulling incorrect value with 3.98 #25519

drdamour opened this issue Apr 5, 2024 · 3 comments · Fixed by #25520

Comments

@drdamour
Copy link
Contributor

drdamour commented Apr 5, 2024

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.7.0

AzureRM Provider Version

3.98.0

Affected Resource(s)/Data Source(s)

azurerm_application_insights

Terraform Configuration Files

resource "azurerm_resource_group" "example" {
  name     = "tf-test"
  location = "West Europe"
}

resource "azurerm_application_insights" "example" {
  name                = "tf-test-appinsights"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  application_type    = "web"
}

output "instrumentation_key" {
  value = azurerm_application_insights.example.instrumentation_key
}

output "app_id" {
  value = azurerm_application_insights.example.app_id
}

Debug Output/Panic Output

n/a

Expected Behaviour

app_id should not be showing a change when moving to 3.98.0 from 3.97.0

Actual Behaviour

when planning applying terraform spits out about values changing outside terraform...that haven't actually changed for the app_id of the app_insights resource. it seems to now be pulling the resource name of the app insights instance as app_id instead of the guid value.

image

Steps to Reproduce

run an apply in 3.98.0 for any app insights resource you had clean with 3.97.1

Important Factoids

No response

References

No response

@stephybun
Copy link
Member

Thanks for raising this @drdamour. It looks like I introduced this when updating the resource to use our SDK hashicorp/go-azure-sdk. I'll get a fix for this in to the next week's release.

@drdamour
Copy link
Contributor Author

drdamour commented Apr 5, 2024

Is this hotfix worthy? It ended up breaking a bots logging because we ref this attribute for the botkits insights_app_id field

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
2 participants