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

resouce/app_insights: Allow different application_type deployments #1563

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Jul 13, 2018

Fixes: #822

This follows the work in the API to allow types like web, other, java,
store, phone and ios

▶ acctests azurerm TestAccAzureRMApplicationInsights_
=== RUN   TestAccAzureRMApplicationInsights_importBasicWeb
--- PASS: TestAccAzureRMApplicationInsights_importBasicWeb (99.07s)
=== RUN   TestAccAzureRMApplicationInsights_importBasicOther
--- PASS: TestAccAzureRMApplicationInsights_importBasicOther (96.48s)
=== RUN   TestAccAzureRMApplicationInsights_basicWeb
--- PASS: TestAccAzureRMApplicationInsights_basicWeb (84.27s)
=== RUN   TestAccAzureRMApplicationInsights_basicJava
--- PASS: TestAccAzureRMApplicationInsights_basicJava (79.28s)
=== RUN   TestAccAzureRMApplicationInsights_basicOther
--- PASS: TestAccAzureRMApplicationInsights_basicOther (73.29s)
=== RUN   TestAccAzureRMApplicationInsights_basicPhone
--- PASS: TestAccAzureRMApplicationInsights_basicPhone (73.88s)
=== RUN   TestAccAzureRMApplicationInsights_basicStore
--- PASS: TestAccAzureRMApplicationInsights_basicStore (68.69s)
=== RUN   TestAccAzureRMApplicationInsights_basiciOS
--- PASS: TestAccAzureRMApplicationInsights_basiciOS (76.30s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	651.307s

Fixes: hashicorp#822

This follows the work in the API to allow types like web, other, java,
store, phone and ios

```
▶ acctests azurerm TestAccAzureRMApplicationInsights_
=== RUN   TestAccAzureRMApplicationInsights_importBasicWeb
--- PASS: TestAccAzureRMApplicationInsights_importBasicWeb (99.07s)
=== RUN   TestAccAzureRMApplicationInsights_importBasicOther
--- PASS: TestAccAzureRMApplicationInsights_importBasicOther (96.48s)
=== RUN   TestAccAzureRMApplicationInsights_basicWeb
--- PASS: TestAccAzureRMApplicationInsights_basicWeb (84.27s)
=== RUN   TestAccAzureRMApplicationInsights_basicJava
--- PASS: TestAccAzureRMApplicationInsights_basicJava (79.28s)
=== RUN   TestAccAzureRMApplicationInsights_basicOther
--- PASS: TestAccAzureRMApplicationInsights_basicOther (73.29s)
=== RUN   TestAccAzureRMApplicationInsights_basicPhone
--- PASS: TestAccAzureRMApplicationInsights_basicPhone (73.88s)
=== RUN   TestAccAzureRMApplicationInsights_basicStore
--- PASS: TestAccAzureRMApplicationInsights_basicStore (68.69s)
=== RUN   TestAccAzureRMApplicationInsights_basiciOS
--- PASS: TestAccAzureRMApplicationInsights_basiciOS (76.30s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	651.307s
```
@stack72
Copy link
Contributor Author

stack72 commented Jul 13, 2018

FYI, this PR uses the Kind attribute allowed values from this API doc https://docs.microsoft.com/en-us/rest/api/application-insights/components/createorupdate#applicationinsightscomponent

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@tombuildsstuff tombuildsstuff added this to the 1.10.0 milestone Jul 13, 2018
@tombuildsstuff tombuildsstuff merged commit d5deb91 into hashicorp:master Jul 13, 2018
tombuildsstuff added a commit that referenced this pull request Jul 13, 2018
torresdal added a commit to torresdal/terraform-provider-azurerm that referenced this pull request Jul 14, 2018
* master:
  Updating to include hashicorp#1565
  resource/servicebus_subscription_rule: Fix the correlation_filter optional values (hashicorp#1565)
  Updating to include hashicorp#1563
  resouce/app_insights: Allow different application_type deployments (hashicorp#1563)
  VMSS: changed sku property from a set to list
@tombuildsstuff
Copy link
Contributor

hi @stack72

Just to let you know that is now available in [v1.10 of the AzureRM Provider(https://github.com/terraform-providers/terraform-provider-azurerm/blob/v1.10.0/CHANGELOG.md#1100-july-21-2018) - which you can update to this version by specifying it in the Provider block, like so:

provider "azurerm" {
  version = "=1.10.0"
}

Thanks!

torresdal added a commit to torresdal/terraform-provider-azurerm that referenced this pull request Aug 25, 2018
* api-management:
  Updating to include hashicorp#1565
  resource/servicebus_subscription_rule: Fix the correlation_filter optional values (hashicorp#1565)
  Updating to include hashicorp#1563
  resouce/app_insights: Allow different application_type deployments (hashicorp#1563)
  VMSS: changed sku property from a set to list
  Update CHANGELOG.md to include hashicorp#1552
  Renamed azurerm_azuread_application.html.markdown to azuread_application.html.markdown
  New Data Source: `azurerm_azuread_application`
  VMSS: Updating the code samples to be valid. Fixes hashicorp#1539 (hashicorp#1549)
  Creation Data -> Creation Date (hashicorp#1548)
  Updating to include hashicorp#1546
  Workaround upstream issue in creating azureEndpoints in traffic manager (hashicorp#1546)
  Cleanup after v1.9.0 release
  v1.9.0
  Updating to include hashicorp#1269
  New Resource: `azurerm_azuread_application` (hashicorp#1269)
  Remove tags validate in preConfig of TestAccAzureRMKeyVault_update (hashicorp#1534)
  Updating to include hashicorp#1535
  `azurerm_key_vault_key` - handling the parent Key Vault being deleted (hashicorp#1535)
@ghost
Copy link

ghost commented Mar 30, 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 👉 [email protected]. Thanks!

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

Successfully merging this pull request may close these issues.

Application Insights provider ignores application_type - always sets to "ASP.Net"
2 participants