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

Application Insights application_type doesn't set type to Java Web #1871

Closed
frvi opened this issue Sep 5, 2018 · 5 comments · Fixed by #5817
Closed

Application Insights application_type doesn't set type to Java Web #1871

frvi opened this issue Sep 5, 2018 · 5 comments · Fixed by #5817

Comments

@frvi
Copy link

frvi commented Sep 5, 2018

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

Terraform Version

  • Terraform v0.11.8
  • provider.azurerm v1.13.0
  • provider.random v2.0.0

Affected Resource(s)

  • azurerm_application_insights

Terraform Configuration Files

resource "azurerm_application_insights" "insights" {
    name = "some-insights"
    location = "westeurope"
    resource_group_name = "resourcegroup"
    application_type = "java"
}

Expected Behavior

Application Insights -> Configure -> Properties
Type should be Java web (it is if created from dashboard, and select Java as type)

Actual Behavior

Application Insights -> Configure -> Properties
Type is ASP.NET

@sawyerh
Copy link

sawyerh commented Oct 23, 2018

This also happens when setting application_type to web

@tombuildsstuff
Copy link
Contributor

hi @frvi @sawyerh

Thanks for opening this issue :)

Taking a look into this this is because the field application_type is case insensitive in Terraform whereas the API requires that the casing matches exactly. As a part of the next major version of the AzureRM Provider (2.0) we're planning on making the provider case-sensitive for the fields which are currently case insensitive to match the behaviour of other Terraform Providers - as such this'll be rolled up as a part of this work.

In the interim it should be possible to work around this by using Title Case (e.g. Web, Java, Other). Would you be able to take a look and see if that works for you?

Thanks!

@sawyerh
Copy link

sawyerh commented Oct 26, 2018

@tombuildsstuff Just looked at my scripts and I had Web in title case, which resulted in the Type being set to ASP.NET.

@ghost
Copy link

ghost commented Feb 24, 2020

This has been released in version 2.0.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.0.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Mar 28, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants