terraform-provider-azurerm icon indicating copy to clipboard operation
terraform-provider-azurerm copied to clipboard

Not able to create application insights with workspace resource mode instead of classic

Open onenessboy opened this issue 3 years ago • 6 comments
trafficstars

Is there an existing issue for this?

  • [X] I have searched the existing issues

Community Note

  • Please vote on this issue by adding a :thumbsup: 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

1.2.1

AzureRM Provider Version

3.21.1

Affected Resource(s)/Data Source(s)

azurerm_application_insights

Terraform Configuration Files

resource "azurerm_application_insights" "ai" {
  name                = "ai-insights"
  location            = azurerm_resource_group.rg[0].location
  resource_group_name = azurerm_resource_group.rg[0].name
  application_type    = "web"
  workspace_id        = azurerm_log_analytics_workspace.logws.id
  tags     = local.common_tags
}

Debug Output/Panic Output

It does not create application insights with workspace mode.

Expected Behaviour

Created application insights with workspace mode

Actual Behaviour

It created with classic mode

Steps to Reproduce

terraform apply

Important Factoids

No response

References

https://github.com/hashicorp/terraform-provider-azurerm/issues/8575 , but in this dont know exactly how to use syntax for creating it in workspace mode

onenessboy avatar Oct 12 '22 05:10 onenessboy